Using the real target "real" type (cross compiling)

Dan Olson via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Jan 24 21:08:11 PST 2015


Dan Olson <zans.is.for.cans at yahoo.com> writes:
>
> Kai, I got your longdouble2 branch merged into my local repo with iOS
> support.  I did have to make a few additions to the ldc::longdouble
> class, probably due to my build env with different headers (MacOS SDK
> bundled with Xcode).  I'll share the updates once the dust settles.
>
> Good news it that longdouble2 works and I get same unittest results as
> my exiting kludge to hardcode real to double (6 module unittests fail
> due to real value miscompare on my iPad mini).  I think it is time for
> me to look closer at the failures: at least one is even documented that
> it only works for 80-bit reals.

It appears that some others unittests fail because ARM Cortex uses
flush-to-zero mode by default instead of subnormal floats.  Seems many
unittests are on the boundary of normal and subnormal.  I'll stomp these
out one at a time by either disabling or changing the unittest for ARM.


More information about the digitalmars-d-ldc mailing list