math: clean up __rem_pio2
authorSzabolcs Nagy <nsz@port70.net>
Sun, 24 Nov 2013 01:06:38 +0000 (01:06 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 24 Nov 2013 01:06:38 +0000 (01:06 +0000)
commit3fdf94ec5101fab63d0e8196d3e557641a0e19e2
treea8684dad2f216505e97263187b768013648146d0
parent10c8b7148b918938d8e681c5801b913dd56cb7e4
math: clean up __rem_pio2

- remove the HAVE_EFFICIENT_IRINT case: fn is an exact integer, so
  it can be converted to int32_t a bit more efficiently than with a
  cast (the rounding mode change can be avoided), but musl does not
  support this case on any arch.
- __rem_pio2: use double_t where possible
- __rem_pio2f: use less assignments to avoid stores on i386
- use unsigned int bit manipulation (and union instead of macros)
- use hexfloat literals instead of named constants
src/math/__rem_pio2.c
src/math/__rem_pio2_large.c
src/math/__rem_pio2f.c