diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2015-11-09 23:58:13 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-10 00:11:24 +0100 |
commit | 79211c8ed19c055ca105502c8733800d442a0ae6 (patch) | |
tree | b4adbbf8ca6fde9838a71432f452737883541346 /lib/div64.c | |
parent | kernel.h: make abs() work with 64-bit types (diff) | |
download | linux-79211c8ed19c055ca105502c8733800d442a0ae6.tar.xz linux-79211c8ed19c055ca105502c8733800d442a0ae6.zip |
remove abs64()
Switch everything to the new and more capable implementation of abs().
Mainly to give the new abs() a bit of a workout.
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/div64.c')
-rw-r--r-- | lib/div64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/div64.c b/lib/div64.c index 19ea7ed4b948..62a698a432bc 100644 --- a/lib/div64.c +++ b/lib/div64.c @@ -162,7 +162,7 @@ s64 div64_s64(s64 dividend, s64 divisor) { s64 quot, t; - quot = div64_u64(abs64(dividend), abs64(divisor)); + quot = div64_u64(abs(dividend), abs(divisor)); t = (dividend ^ divisor) >> 63; return (quot ^ t) - t; |