|
From: | Chris Hanson |
Subject: | Re: [MIT-Scheme-devel] Fixing non-standard floenv failures |
Date: | Fri, 3 Nov 2017 23:47:32 -0700 |
> Date: Fri, 3 Nov 2017 22:09:27 -0700
> From: Chris Hanson <address@hidden>
Unless you're on some exotic hardware that doesn't actually support>
> I added some support for testing the existence of feenableexcept and
> fedisableexcept, which are not part of C99 and not present in macOS.
>
> I used this to disable tests that depend on their existence, which
> otherwise failed.
>
> Could you please check what I did and confirm that it is correct? I'm not
> sure that I got it right, other than that the tests now pass on macOS.
the traps, there shouldn't be any need to test this at runtime.
There's three possible ways to get them:
1. from GNUish libm, with feenableexcept/fedisableexcept
2. from BSDish libm, with fpgetmask/fpsetmask
3. from x86 mxcsr/x87 cw
All this worked when I last used Apple stuff (which admittedly was
some years ago now). What motivated this -- what's the symptom you're
seeing?
[Prev in Thread] | Current Thread | [Next in Thread] |