Mac Intel

Mikael Pettersson mikpe@REDACTED
Sun Aug 13 12:43:40 CEST 2006


On Sun, 13 Aug 2006 00:02:19 +0100, Joel Reymont wrote:
>On Aug 12, 2006, at 10:23 PM, Mikael Pettersson wrote:
>
>> The fpe-test.c code embedded in erts/configure.in shows how
>> to enable and catch floating-point exceptions for a number of
>> CPU/OS combinations.
>
>This is obvious in retrospect but it was a pain in the rear and took  
>me a day to find out. The Intel Core Duo processors have SSE2 and  
>these also need to be unmasked for floating-point exceptions to be  
>trapped. Simply unmasking x87 is not enough.

Traditionally 32-bit x86 only used the x87 by default, since
SSE2 is a newish addition. Your comment indicates that Apple
went directly to the modern world (SSE2) when they started
doing x86. Not a problem: just make the existing SSE2 code
unconditional and not restricted to 64-bit builds.



More information about the erlang-questions mailing list