Re: [PATCH] Prevent the loop in timespec_add_ns() to be optimised away

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Wednesday, February 27, 2008 - 4:43 pm

On Fri, 22 Feb 2008 22:40:45 +0100
Segher Boessenkool <segher@kernel.crashing.org> wrote:


It's pretty sad that we need to turn this into a loop just because of the
__udivdi3() thing.

otoh, it's rarely occurring, and it could be that the number of times it
loops is usually 1 (if it wasn't zero), so perhaps a loop is faster than a
divide anyway.

This code is probably too large to be inlined.

I queued this patch as needed-in-2.6.25, to-be-merged-via-Thomas.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Prevent the loop in timespec_add_ns() to be optimi ..., Segher Boessenkool, (Fri Feb 22, 2:40 pm)
Re: [PATCH] Prevent the loop in timespec_add_ns() to be op ..., Andrew Morton, (Wed Feb 27, 4:43 pm)