diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2015-11-02 13:02:46 -0500 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2015-11-16 14:42:12 -0500 |
commit | dce1eb93b19b2a1a441708f51c97c4a554054d00 (patch) | |
tree | 584554913e7eae7f3ab7686862fac8c59eaf0394 /include | |
parent | f682b27c57aec2f0ca8927f9bb7c267c6165ad5a (diff) | |
download | op-kernel-dev-dce1eb93b19b2a1a441708f51c97c4a554054d00.zip op-kernel-dev-dce1eb93b19b2a1a441708f51c97c4a554054d00.tar.gz |
__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')
-rw-r--r-- | include/asm-generic/div64.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/div64.h b/include/asm-generic/div64.h index 408856a..163f779 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) |