Does -0.5 fit an unsigned when truncated to an integer?

bodrato at mail.dm.unipi.it bodrato at mail.dm.unipi.it
Tue Mar 19 22:11:31 CET 2013


Ciao,

Il Mar, 19 Marzo 2013 6:39 pm, Torbjorn Granlund ha scritto:
> After some  thought, I support I agree.

>   _fits_uTYPE require the range 0 <= x < uTYPE_MAX + 1
>
> Which deviates.

One we agree, it is simple to obtain the desired range, swaping two
conditions...

-- 
http://bodrato.it/papers/



More information about the gmp-devel mailing list