[J3] [BULK] Re: Upcoming gfortran 15 will contain an implementation of unsigned numbers
Johnson, Ted
tedj at hpe.com
Tue Oct 15 15:36:52 UTC 2024
> Fred wrote:
> What happens when two large unsigned numbers are added together?
> An error
> Wrap modulo 2**(number of bits in number); which is what C does
> Saturate to the largest value
> Something else
I believe the answer is "an undetectable wrap modulo 2**N, as in C" - which is why HPE/Bill Long voted against it.
-ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20241015/a3222d8f/attachment.htm>
More information about the J3
mailing list