Re: 128 bit integer code needed
- From: jacob navia <jacob@xxxxxxxxxx>
- Date: Tue, 29 Apr 2008 23:00:12 +0200
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
.
- Follow-Ups:
- Re: 128 bit integer code needed
- From: Keith Thompson
- Re: 128 bit integer code needed
- References:
- 128 bit integer code needed
- From: jacob navia
- Re: 128 bit integer code needed
- From: Keith Thompson
- 128 bit integer code needed
- Prev by Date: Re: K&R2 , exercise 7.6
- Next by Date: Re: 128 bit integer code needed
- Previous by thread: Re: 128 bit integer code needed
- Next by thread: Re: 128 bit integer code needed
- Index(es):
Relevant Pages
|