pramodh mallipatna wrote:
>
> Hello,
>
> I am trying to do arithmetic involving a "long long" in the kernel.
> I am unable to compile the code.
>
> Is there some configurable option with which I can get it to compile?
>
> I guess, 8 byte arithmetic should be possible in the kernel as the cpu
> ticks is represented as long long and the time is derived from that.
>
> Thanks,
> Pramodh
GCC needs library functions for some 64-bit operations on 32-bit
crchitectures, which are not present in the kernel. 64-bit division is
a common example of this. If possible, limit your code to using adds
and shifts when working with long longs.
--Brian Gerst
- 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:16 EST