i686: Use generic cosf implementation for SSE2 version
commitda39afa4ffcc94a97de33222f3cda236daac410e
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 31 May 2022 20:55:27 +0000 (31 17:55 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 1 Jun 2022 13:47:44 +0000 (1 10:47 -0300)
tree954d918b89078214ec5ee6eae4abd795b0e8065f
parentc1176b62a9ffcde7fb4c0252db342fe21fbd524e
i686: Use generic cosf implementation for SSE2 version

Performance seems to be similar (gcc 11.2.1 on a Ryzen 9 5900X):

* s_cosf-sse2.S:
  "cosf": {
   "workload-random": {
    "duration": 3.74987e+09,
    "iterations": 9.616e+07,
    "reciprocal-throughput": 15.8141,
    "latency": 62.1782,
    "max-throughput": 6.32346e+07,
    "min-throughput": 1.60828e+07
   }
  }

* generic s_cosf.c:
  "cosf": {
   "workload-random": {
    "duration": 3.87298e+09,
    "iterations": 1.00968e+08,
    "reciprocal-throughput": 18.3448,
    "latency": 58.3722,
    "max-throughput": 5.45113e+07,
    "min-throughput": 1.71314e+07
   }
  }

Checked on i686-linux-gnu.
sysdeps/i386/i686/fpu/multiarch/Makefile
sysdeps/i386/i686/fpu/multiarch/libm-test-ulps
sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S [deleted file]
sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.c [new file with mode: 0644]
sysdeps/ieee754/flt-32/s_cosf.c