[libc-commits] [libc] [libc][math] Add float-only option for atan2f. (PR #122979)

via libc-commits libc-commits at lists.llvm.org
Tue Feb 11 13:07:07 PST 2025


================
@@ -20,41 +20,52 @@ namespace fputil {
 
 #define DEFAULT_DOUBLE_SPLIT 27
 
-using DoubleDouble = LIBC_NAMESPACE::NumberPair<double>;
+template <typename T> struct DefaultSplit;
+template <> struct DefaultSplit<float> {
+  static constexpr size_t VALUE = 12;
+};
+template <> struct DefaultSplit<double> {
+  static constexpr size_t VALUE = 27;
----------------
lntue wrote:

Done.

https://github.com/llvm/llvm-project/pull/122979


More information about the libc-commits mailing list