[all-commits] [llvm/llvm-project] fd4139: [libc][math] Add float-only option for atan2f. (#1...
lntue via All-commits
all-commits at lists.llvm.org
Tue Feb 11 14:36:46 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fd41393e2e6a32a7fcacdd0779f70964689d01ec
https://github.com/llvm/llvm-project/commit/fd41393e2e6a32a7fcacdd0779f70964689d01ec
Author: lntue <lntue at google.com>
Date: 2025-02-11 (Tue, 11 Feb 2025)
Changed paths:
M libc/src/__support/FPUtil/double_double.h
M libc/src/__support/macros/optimization.h
M libc/src/math/generic/CMakeLists.txt
M libc/src/math/generic/atan2f.cpp
A libc/src/math/generic/atan2f_float.h
M libc/src/math/generic/pow.cpp
M libc/src/math/generic/range_reduction_double_fma.h
M libc/src/math/generic/range_reduction_double_nofma.h
Log Message:
-----------
[libc][math] Add float-only option for atan2f. (#122979)
For targets that have single precision FPU but not double precision FPU
such as Cortex M4, only using float-float in the intermediate
computations might reduce the code size compared to using double. In
this case, when the exact pass is skipped, the float-only option for
atan2f implemented in this PR reduces the code size of this function by
~1 KB compared to the double precision version.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list