summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2015-11-02 19:02:46 +0100
committerNicolas Pitre <nicolas.pitre@linaro.org>2015-11-16 20:42:12 +0100
commitdce1eb93b19b2a1a441708f51c97c4a554054d00 (patch)
tree584554913e7eae7f3ab7686862fac8c59eaf0394 /include/asm-generic
parent__div64_const32(): abstract out the actual 128-bit cross product code (diff)
downloadlinux-dce1eb93b19b2a1a441708f51c97c4a554054d00.tar.xz
linux-dce1eb93b19b2a1a441708f51c97c4a554054d00.zip
__div64_32(): make it overridable at compile time
Some architectures may want to override the default implementation at compile time to do things inline. For example, ARM uses a non-standard calling convention for better efficiency in this case. Signed-off-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/div64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/div64.h b/include/asm-generic/div64.h
index 408856a9aba1..163f77999ea4 100644
--- a/include/asm-generic/div64.h
+++ b/include/asm-generic/div64.h
@@ -194,7 +194,9 @@ static inline uint64_t __arch_xprod_64(const uint64_t m, uint64_t n, bool bias)
}
#endif
+#ifndef __div64_32
extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
+#endif
/* The unnecessary pointer compare is there
* to check for type safety (n must be 64bit)