From: ceriel Date: Thu, 2 Feb 1989 16:15:54 +0000 (+0000) Subject: bitwise operators available now X-Git-Tag: release-5-5~2633 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3b76fbc28459555562516ae521ddbb5555ecedb6;p=ack.git bitwise operators available now --- diff --git a/mach/m68020/ncg/table b/mach/m68020/ncg/table index 86cc3d55c..d2bddc622 100644 --- a/mach/m68020/ncg/table +++ b/mach/m68020/ncg/table @@ -3,7 +3,7 @@ * See the copyright notice in the ACK home directory, in the file "Copyright". */ -rscid = "$Header:" +rscid = "$Header$" /******************************** * * @@ -16,8 +16,8 @@ rscid = "$Header:" #define small(x) ((x)>=1 && (x)<=8) #define nicesize(x) ((x)==1||(x)==2||(x)==4||(x)==8) -#define lowb(x) (((x)<<24)>>24) -#define loww(x) (((x)<<16)>>16) +#define lowb(x) ((x) & 0377) +#define loww(x) ((x) & 0177777) #define in_1(x) ((x)>=0-128 && (x)<128) #define in_2(x) ((x)>=0-32768 && (x)<32768) diff --git a/mach/m68k2/ncg/table b/mach/m68k2/ncg/table index 86cc3d55c..d2bddc622 100644 --- a/mach/m68k2/ncg/table +++ b/mach/m68k2/ncg/table @@ -3,7 +3,7 @@ * See the copyright notice in the ACK home directory, in the file "Copyright". */ -rscid = "$Header:" +rscid = "$Header$" /******************************** * * @@ -16,8 +16,8 @@ rscid = "$Header:" #define small(x) ((x)>=1 && (x)<=8) #define nicesize(x) ((x)==1||(x)==2||(x)==4||(x)==8) -#define lowb(x) (((x)<<24)>>24) -#define loww(x) (((x)<<16)>>16) +#define lowb(x) ((x) & 0377) +#define loww(x) ((x) & 0177777) #define in_1(x) ((x)>=0-128 && (x)<128) #define in_2(x) ((x)>=0-32768 && (x)<32768) diff --git a/mach/m68k4/ncg/table b/mach/m68k4/ncg/table index 86cc3d55c..d2bddc622 100644 --- a/mach/m68k4/ncg/table +++ b/mach/m68k4/ncg/table @@ -3,7 +3,7 @@ * See the copyright notice in the ACK home directory, in the file "Copyright". */ -rscid = "$Header:" +rscid = "$Header$" /******************************** * * @@ -16,8 +16,8 @@ rscid = "$Header:" #define small(x) ((x)>=1 && (x)<=8) #define nicesize(x) ((x)==1||(x)==2||(x)==4||(x)==8) -#define lowb(x) (((x)<<24)>>24) -#define loww(x) (((x)<<16)>>16) +#define lowb(x) ((x) & 0377) +#define loww(x) ((x) & 0177777) #define in_1(x) ((x)>=0-128 && (x)<128) #define in_2(x) ((x)>=0-32768 && (x)<32768) diff --git a/mach/moon3/ncg/table b/mach/moon3/ncg/table index 86cc3d55c..d2bddc622 100644 --- a/mach/moon3/ncg/table +++ b/mach/moon3/ncg/table @@ -3,7 +3,7 @@ * See the copyright notice in the ACK home directory, in the file "Copyright". */ -rscid = "$Header:" +rscid = "$Header$" /******************************** * * @@ -16,8 +16,8 @@ rscid = "$Header:" #define small(x) ((x)>=1 && (x)<=8) #define nicesize(x) ((x)==1||(x)==2||(x)==4||(x)==8) -#define lowb(x) (((x)<<24)>>24) -#define loww(x) (((x)<<16)>>16) +#define lowb(x) ((x) & 0377) +#define loww(x) ((x) & 0177777) #define in_1(x) ((x)>=0-128 && (x)<128) #define in_2(x) ((x)>=0-32768 && (x)<32768)