Print this page
5261 libm should stop using synonyms.h
5298 fabs is 0-sized, confuses dis(1) and others
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Gordon Ross <gwr@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/i386/src/__reduction.s
          +++ new/usr/src/lib/libm/i386/src/__reduction.s
↓ open down ↓ 31 lines elided ↑ open up ↑
  32   32  /    After argument reduction which returns n:
  33   33  /       n mod 4     sin(x)      cos(x)        tan(x)
  34   34  /     ----------------------------------------------------------
  35   35  /          0          S           C             S/C
  36   36  /          1          C          -S            -C/S
  37   37  /          2         -S          -C             S/C
  38   38  /          3         -C           S            -C/S
  39   39  /     ----------------------------------------------------------
  40   40  
  41   41  #include "libm.h"
  42      -#include "libm_synonyms.h"
  43   42  #include "libm_protos.h"
  44      -#undef fabs
  45   43  
  46   44          ENTRY(__reduction)
  47   45  #ifndef PIC
  48   46          movl    12(%esp),%eax           / load the high part of arg
  49   47  #else
  50   48          movl    16(%esp),%eax           / load the high part of arg
  51   49  #endif
  52   50          andl    $0x7fffffff,%eax        / clear sign
  53   51          cmpl    $0x3fe921fb,%eax        / Is |x| < pi/4 (= 0x3fe921fb54...) ?
  54   52          jbe     .L0
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX