patch-2.3.27 linux/include/asm-alpha/div64.h
Next file: linux/include/asm-alpha/processor.h
Previous file: linux/fs/ufs/util.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon Nov 8 16:01:59 1999
- Orig file:
v2.3.26/linux/include/asm-alpha/div64.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.26/linux/include/asm-alpha/div64.h linux/include/asm-alpha/div64.h
@@ -0,0 +1,14 @@
+#ifndef __ALPHA_DIV64
+#define __ALPHA_DIV64
+
+/*
+ * Hey, we're already 64-bit, no
+ * need to play games..
+ */
+#define do_div(n,base) ({ \
+ int __res; \
+ __res = ((unsigned long) n) % (unsigned) base; \
+ n = ((unsigned long) n) / (unsigned) base; \
+ __res; })
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)