summaryrefslogtreecommitdiffstats
path: root/arch/metag/include/asm/div64.h
diff options
context:
space:
mode:
authorJames Hogan2012-10-05 18:02:09 +0200
committerJames Hogan2013-03-02 21:09:52 +0100
commit086e9dc0e2ca925b1b58caefd04ed2757d14790b (patch)
treecfe182f1d07d40d09d2cae09e337423462250cac /arch/metag/include/asm/div64.h
parentmetag: DMA (diff)
downloadkernel-qcow2-linux-086e9dc0e2ca925b1b58caefd04ed2757d14790b.tar.gz
kernel-qcow2-linux-086e9dc0e2ca925b1b58caefd04ed2757d14790b.tar.xz
kernel-qcow2-linux-086e9dc0e2ca925b1b58caefd04ed2757d14790b.zip
metag: Optimised library functions
Add optimised library functions for metag. Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/metag/include/asm/div64.h')
-rw-r--r--arch/metag/include/asm/div64.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/metag/include/asm/div64.h b/arch/metag/include/asm/div64.h
new file mode 100644
index 000000000000..0fdd11676212
--- /dev/null
+++ b/arch/metag/include/asm/div64.h
@@ -0,0 +1,12 @@
+#ifndef __ASM_DIV64_H__
+#define __ASM_DIV64_H__
+
+#include <asm-generic/div64.h>
+
+extern u64 div_u64(u64 dividend, u64 divisor);
+extern s64 div_s64(s64 dividend, s64 divisor);
+
+#define div_u64 div_u64
+#define div_s64 div_s64
+
+#endif