phobos and 64-bit real, anybody testing?

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 26 12:04:45 PST 2015


Am Mon, 26 Jan 2015 08:49:56 -0800
schrieb Dan Olson <zans.is.for.cans at yahoo.com>:

> A question for the floating point experts.  Do phobos unittests get
> run on any architectures with 64-bit reals?  I would like to know if
> there are known failures.
> 
> I have identified all the phobos unittest failures on ARMv7 iOS and
> commented out failing asserts so that the remainder of the module
> unittests could pass.  An example where there are many failed tests is
> std.internal.math.gammafunction where a nan is produced but a valid
> value is expected.  Other times the computed result is completely
> different from what is expected.  Note that for ARM I am clearing
> "Flush to Zero" and "Default NaN" modes in fpscr which helps pass
> many other tests.  Normally these modes are enabled for iOS.  Also,
> iOS uses float-abi=softfp.
> --
> Dan

I run the tests for GDC on ARM/linux soft and hardfloat 64 bit. All
modules except gammafunction should pass. gammafunction was never
ported to 64bit reals and I asked about it multiple times on the
newsgroup but nobody cared. I also filed a bug report:
https://issues.dlang.org/show_bug.cgi?id=13032
So as far as I'm concerned gammafunction is unmaintained and broken :-(

However, other modules should work (at least with GDC as there's some
GDC-specific inline asm).


More information about the Digitalmars-d mailing list