summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-05-13 04:26:38 +0000
committerjake <jake@FreeBSD.org>2002-05-13 04:26:38 +0000
commit7cfe89914aa7c30a1f0e2385004add0f4bd8e71f (patch)
tree783aa15690faa4901b276f41d0347d04a909a98b /sys
parentbe9c9528a00a9918312476e169f5c354829faa70 (diff)
downloadFreeBSD-src-7cfe89914aa7c30a1f0e2385004add0f4bd8e71f.zip
FreeBSD-src-7cfe89914aa7c30a1f0e2385004add0f4bd8e71f.tar.gz
Fix IF_SEXT(val, 32). The constants need to have type long to
handle size > 16.
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/include/instr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sparc64/include/instr.h b/sys/sparc64/include/instr.h
index 51f0300..7ac514d 100644
--- a/sys/sparc64/include/instr.h
+++ b/sys/sparc64/include/instr.h
@@ -148,7 +148,8 @@
/* Sign-extend a field of width W */
#define IF_SEXT(x, w) \
- (((x) & (1 << ((w) - 1))) != 0 ? (-1L - ((x) ^ ((1 << (w)) - 1))) : (x))
+ (((x) & (1L << ((w) - 1))) != 0 ? \
+ (-1L - ((x) ^ ((1L << (w)) - 1))) : (x))
#if 0
/*
OpenPOWER on IntegriCloud