2 unsigned_to_double1 (u
)
6 d
= (int) u
; /* convert as from a *signed* integer */
15 unsigned_to_double2 (u
)
19 u
-= 2147483648; /* complement sign bit */
20 d
= (int) u
; /* convert as from a *signed* integer */
21 return d
+ 2147483648.0;
25 double_to_unsigned (d
)
29 return ((int) d
) - 2147483648;