From 3b76fbc28459555562516ae521ddbb5555ecedb6 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 2 Feb 1989 16:15:54 +0000 Subject: [PATCH] bitwise operators available now --- mach/m68020/ncg/table | 6 +++--- mach/m68k2/ncg/table | 6 +++--- mach/m68k4/ncg/table | 6 +++--- mach/moon3/ncg/table | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) 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)