Re: std.math.frexp wrong on ARM

2012-09-27 Thread Johannes Pfau
Am Wed, 26 Sep 2012 17:35:18 +0200 schrieb Don Clugston : > On 26/09/12 17:13, Johannes Pfau wrote: > > The frexp test fails on ARM. I think the mask in line 1491 is > > wrong: > > > > https://github.com/D-Programming-Language/phobos/blob/master/std/math.d#L1491 > > For doubles, the 63 bit is sign

Re: std.math.frexp wrong on ARM

2012-09-26 Thread Don Clugston
On 26/09/12 17:13, Johannes Pfau wrote: The frexp test fails on ARM. I think the mask in line 1491 is wrong: https://github.com/D-Programming-Language/phobos/blob/master/std/math.d#L1491 For doubles, the 63 bit is sign, 62-52 are exponent and 51-0 are mantissa. The mask manipulates the bits 63-4

std.math.frexp wrong on ARM

2012-09-26 Thread Johannes Pfau
The frexp test fails on ARM. I think the mask in line 1491 is wrong: https://github.com/D-Programming-Language/phobos/blob/master/std/math.d#L1491 For doubles, the 63 bit is sign, 62-52 are exponent and 51-0 are mantissa. The mask manipulates the bits 63-48 (ushort, 16bit) 0x8000 is 0b1000