diff options
author | jake <jake@FreeBSD.org> | 2002-05-13 04:26:38 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-05-13 04:26:38 +0000 |
commit | 7cfe89914aa7c30a1f0e2385004add0f4bd8e71f (patch) | |
tree | 783aa15690faa4901b276f41d0347d04a909a98b | |
parent | be9c9528a00a9918312476e169f5c354829faa70 (diff) | |
download | FreeBSD-src-7cfe89914aa7c30a1f0e2385004add0f4bd8e71f.zip FreeBSD-src-7cfe89914aa7c30a1f0e2385004add0f4bd8e71f.tar.gz |
Fix IF_SEXT(val, 32). The constants need to have type long to
handle size > 16.
-rw-r--r-- | sys/sparc64/include/instr.h | 3 |
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 /* |