[PATCH v3 0/2] Optimize flt-32/dbl-64 remainder implementation

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu Oct 2 11:55:45 GMT 2025


The commit 34b9f8bc17 provides an optimized fmod implementation; use
the same strategy used for remainderf and implement the double variant
on top of fmod.

Also optimized the flt-32 variant with some micro-optimizations.

Adhemerval Zanella (2):
  math: Optimize dbl-64 remainder implementation
  math: Optimize flt-32 remainder implementation

 sysdeps/ieee754/dbl-64/e_remainder.c  | 200 ++++++++------------------
 sysdeps/ieee754/dbl-64/urem.h         |  45 ------
 sysdeps/ieee754/flt-32/e_remainderf.c | 110 +++++++-------
 3 files changed, 119 insertions(+), 236 deletions(-)
 delete mode 100644 sysdeps/ieee754/dbl-64/urem.h

-- 
2.43.0



More information about the Libc-alpha mailing list