Re: Truncating df to sf (and typo in code)

2011-04-13 Thread Joseph S. Myers
On Wed, 13 Apr 2011, Paulo J. Matos wrote: > I have been looking at the fp-bit code and noticed: > In my port I am having some trouble with the truncation from df to sf. Unless your port is outside the scope of what soft-fp supports (for example, soft-fp probably won't work for systems with 16-

Truncating df to sf (and typo in code)

2011-04-13 Thread Paulo J. Matos
Hi, I have been looking at the fp-bit code and noticed: /* numeric parameters */ /* F_D_BITOFF is the number of bits offset between the MSB of the mantissa of a float and of a double. Assumes there are only two float types. (double::FRAC_BITS+double::NGARDS-(float::FRAC_BITS-float::NGARDS))