• Simon Marlow's avatar
    floating-point fix for x86_64 · 3034a6c8
    Simon Marlow authored
      
    For 32-bit float primtives like sinFloat#, we currently call the
    double versions of the C library functions (sin(), cos() etc.).  It
    seems more correct to call the float versions (sinf(), cosf() etc.).
    This makes a difference on x86_64, I'm not entirely sure why, but this
    way at least generates more consistent results and avoids extra
    promotion/demotion instructions when calling these primitives.
    3034a6c8
PprC.hs 32.1 KB