From: sof Date: Sun, 18 May 1997 04:29:32 +0000 (+0000) Subject: [project @ 1997-05-18 04:29:32 by sof] X-Git-Tag: Approximately_1000_patches_recorded~661 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=a6e433788e0108c1fa2b287c5d20bee09f644c7e;p=ghc-hetmet.git [project @ 1997-05-18 04:29:32 by sof] Added absIntZh (just to be on the safe side) --- diff --git a/ghc/includes/StgMacros.lh b/ghc/includes/StgMacros.lh index 059f44c..c638b6d 100644 --- a/ghc/includes/StgMacros.lh +++ b/ghc/includes/StgMacros.lh @@ -457,6 +457,8 @@ I_ stg_div PROTO((I_ a, I_ b)); #define ZdZh(r,a,b) r=ULTRASAFESTGCALL2(I_,(void *, I_, I_),stg_div,(a),(b)) #define remIntZh(r,a,b) r=(a)%(b) #define negateIntZh(r,a) r=-(a) +/* Ever used ? -- SOF */ +#define absIntZh(a) r=(( (a) >= 0 ) ? (a) : (-(a))) \end{code} %************************************************************************