64 bit maths and privileges

John Tytgat John.Tytgat at aaug.net
Sat Aug 31 06:30:33 PDT 2002


In message <8647a36e4b.peter at moo.chocky.org>
          Peter Naulls <peter at chocky.org> wrote:

> In message <Pine.LNX.4.21.0208311305480.32291-100000 at chiark.greenend.org.uk>
>           Theo Markettos <theo at markettos.org.uk> wrote:
> 
> > Firstly, I need to do some shuffling around with 5 byte times (adds,
> > subtracts and multiplies).  Rather than attempt to do this manually, is
> > there any 64 bit integer support in UnixLib?  I could use 'long long', but
> > that would break Norcroft compatibility.  It would be much easier to do it
> > in assembler, yet it would be nicer if there was a library of such
> > functions, rather than handcrafting them for each case required.  Does
> > such a thing exist, or should I write one?
> 
> There's no such thing in Unixlib.  There are a variety of 64-bit
> libraries out there, but importing one just for that function does seem
> overkill.   I suggest the easiest thing is to use long long, and have
> that not defined for a Norcroft build.  This may or may not be
> desirable.

Norcroft has __int64 but I don't have much experience with it (I don't
fully thrust it).  As Peter suggested, leave it undefined for a Norcroft
build and if someone needs it in a Norcroft build (or just likes to do
it), he can further examine the possibilities.

Jo.
-- 
John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at aaug.net                             ARM powered, RISC OS driven



More information about the gcc mailing list