1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00
Files
glibc/sysdeps/ieee754/dbl-64
Adhemerval Zanella f165e244e4 math: Simplify and optimize modf implementation
Refactor the generic implementation to use math_config.h definitions,
and add an alternative one if the ABI supports truncf instructions
(gated through math-use-builtins-trunc.h).

The generic implementation generates similar code on x86_64, while
the optimization one for aarch64 (where truncf is supported as a
builtin by through frintz), the improvements are:

reciprocal-throughput           master    patch    difference
workload-0_1                    3.0595   3.0698        -0.34%
workload-1_maxint               5.1747   3.0542        40.98%
workload-maxint_maxfloat        3.4391   3.0349        11.75%
workload-integral               3.2732   3.0293         7.45%

latency                         master    patch    difference
workload-0_1                    3.5267   4.7107       -33.57%
workload-1_maxint               6.9074   4.7282        31.55%
workload-maxint_maxfloat        3.7210   4.7506       -27.67%
workload-integral               3.8634   4.8137       -24.60%

Checked on aarch64-linux-gnu and x86_64-linux-gnu.
Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2025-06-18 15:56:40 -03:00
..
2021-09-03 22:06:44 +05:30
2025-03-13 14:30:47 -07:00
2021-09-03 22:06:44 +05:30
2025-06-02 13:32:19 -03:00
2021-01-07 15:26:26 +00:00
2025-03-13 10:55:25 -07:00
2025-06-02 13:32:19 -03:00
2024-11-22 10:52:26 -03:00
2023-08-14 08:14:19 -07:00
2021-09-22 21:25:31 +00:00
2021-09-03 22:06:44 +05:30
2023-08-21 10:44:26 -07:00
2021-01-07 15:26:26 +00:00
2021-01-07 15:26:26 +00:00
2025-03-13 06:20:32 -07:00
2024-01-12 16:02:12 +00:00
2025-06-02 13:32:19 -03:00
2025-06-02 13:32:19 -03:00