comp.lang.c
[Top] [All Lists]

Re: 128 bit integer code needed

Subject: Re: 128 bit integer code needed
From: jacob navia
Date: Tue, 29 Apr 2008 23:00:12 +0200
Newsgroups: comp.lang.c


Keith Thompson wrote:
jacob navia <jacob@xxxxxxxxxx> writes:
I am incorporating 128 Bit integer code into lcc-win and it would be
nice to have some code to test this feature.

Sounds interesting.  Out of curiosity, just how are you defining your
128-bit integer types?

__int128

There is no unsigned as yet. Many other things must be done first:
o printing them with printf. Format "%I128d"
o scanning them with scanf. Same format
o Algebraic simplifications in the compiler

C99 introduced the concept of "extended
integer types" (C99 6.2.5); are you using that?  If not, I encourage
you to do so.  And are you making intmax_t and uintmax_t 128 bits?


Very probably but that is too son. I have to get the basics right first.

In 32 bits I use operator overloading and there is no printf support...
This is different.


--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy