Skip to content
Snippets Groups Projects
Forked from cmucl / cmucl
Source project has a limited visibility.
  • rtoy's avatar
    c63d920e
    Add the trig argument reduction routines from Sun's fdlibm so we can · c63d920e
    rtoy authored
    accurately reduce the arg and therefore compute the value of trig
    functions accurately.
    
    lisp/Config.linux_gencgc:
    o Compile e_rem_pio2.c and k_rem_pio2.c
    
    code/irrat.lisp:
    o Disable %sin, %cos, %tan functions.
    o Implement %sin, %cos, and %tan to call the fdlibm routine
      __ieee754_rem_pio2 to do argument reduction before calling the sin,
      cos, tan vops.
    
    compiler/x86/float.lisp:
    o Disable the vops for %sin, %cos, and %tan, so the Lisp code in
      irrat.lisp is used.
    c63d920e
    History
    Add the trig argument reduction routines from Sun's fdlibm so we can
    rtoy authored
    accurately reduce the arg and therefore compute the value of trig
    functions accurately.
    
    lisp/Config.linux_gencgc:
    o Compile e_rem_pio2.c and k_rem_pio2.c
    
    code/irrat.lisp:
    o Disable %sin, %cos, %tan functions.
    o Implement %sin, %cos, and %tan to call the fdlibm routine
      __ieee754_rem_pio2 to do argument reduction before calling the sin,
      cos, tan vops.
    
    compiler/x86/float.lisp:
    o Disable the vops for %sin, %cos, and %tan, so the Lisp code in
      irrat.lisp is used.