patch-2.4.26 linux-2.4.26/include/asm-ia64/processor.h
Next file: linux-2.4.26/include/asm-ia64/resource.h
Previous file: linux-2.4.26/include/asm-ia64/posix_types.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
2004-04-14 06:05:40.000000000 -0700
- Orig file:
linux-2.4.25/include/asm-ia64/processor.h
- Orig date:
2004-02-18 05:36:32.000000000 -0800
diff -urN linux-2.4.25/include/asm-ia64/processor.h linux-2.4.26/include/asm-ia64/processor.h
@@ -927,24 +927,13 @@
return retval;
}
-/* XXX remove the handcoded version once we have a sufficiently clever compiler... */
-#ifdef SMART_COMPILER
-# define ia64_rotr(w,n) \
- ({ \
- __u64 _w = (w), _n = (n); \
- \
- (_w >> _n) | (_w << (64 - _n)); \
- })
-#else
-# define ia64_rotr(w,n) \
- ({ \
- __u64 result; \
- asm ("shrp %0=%1,%1,%2" : "=r"(result) : "r"(w), "i"(n)); \
- result; \
- })
-#endif
+static inline __u64
+ia64_rotr (__u64 w, __u64 n)
+{
+ return (w >> n) | (w << (64 - n));
+}
-#define ia64_rotl(w,n) ia64_rotr((w),(64)-(n))
+#define ia64_rotl(w,n) ia64_rotr((w), (64) - (n))
static inline __u64
ia64_thash (__u64 addr)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)