Changeset 16201


Ignore:
Timestamp:
Sep 16, 2014, 4:07:33 PM (7 years ago)
Author:
rme
Message:

The exp function in the math library of FreeBSD/x8632 wants the
x87 to be in extended precision mode, and will mask FP exceptions
as a side-effect of switching to that mode.

So, use the same workaround for freebsdx8632-target that we already
use for linux-target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/level-1/l1-numbers.lisp

    r16138 r16201  
    759759    (%setf-double-float TEMP (#_exp n))
    760760    (%df-check-exception-1 'exp n (%ffi-exception-status))
    761     #+linux-target
     761    #+(or linux-target freebsdx8632-target)
    762762    (and (infinity-p TEMP)
    763763         (not (infinity-p n))
     
    775775    (%setf-short-float TEMP (#_expf n))
    776776    (%sf-check-exception-1 'exp n (%ffi-exception-status))
    777     #+linux-target
     777    #+(or linux-target freebsdx8632-target)
    778778    (and (infinity-p TEMP)
    779779         (not (infinity-p n))
Note: See TracChangeset for help on using the changeset viewer.