Re: Long long arithmetic

From: Peter Samuelson (peter@cadcamlab.org)
Date: Fri Jun 09 2000 - 08:56:14 EST


[Richard B. Johnson <root@chaos.analogic.com>]
> I suggest borrowing some long long stuff from the libgcc source and
> putting it into the kernel. We keep getting hit by requests for long
> long division.
>
> This would quiet that and, if the resulting drivers or other code
> eventually get into the kernel it will probably get fixed to not have
> to use the CPU-hog divide.

You really think so? I very much doubt it. For most instances of this
sort of thing it's not obvious just from staring at the code that
there's a long long involved. It either just works, or it just fails
to link, and if the latter, you find it and replace with a shift.

Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:18 EST