[libcxx-commits] [libcxx] [libc++][modules] Consolidate modules for math and tuple (PR #107398)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 5 07:24:34 PDT 2024


================
@@ -517,6 +517,26 @@ module std_locale_h [system] {
 }
 module std_math_h [system] {
   header "math.h"
+  module abs                             { header "__math/abs.h" }
+  module copysign                        { header "__math/copysign.h" }
+  module error_functions                 { header "__math/error_functions.h" }
+  module exponential_functions           { header "__math/exponential_functions.h" }
+  module fdim                            { header "__math/fdim.h" }
+  module fma                             { header "__math/fma.h" }
+  module gamma                           { header "__math/gamma.h" }
+  module hyperbolic_functions            { header "__math/hyperbolic_functions.h" }
+  module hypot                           { header "__math/hypot.h" }
+  module inverse_hyperbolic_functions    { header "__math/inverse_hyperbolic_functions.h" }
+  module inverse_trigonometric_functions { header "__math/inverse_trigonometric_functions.h" }
+  module logarithms                      { header "__math/logarithms.h" }
+  module min_max                         { header "__math/min_max.h" }
+  module modulo                          { header "__math/modulo.h" }
+  module remainder                       { header "__math/remainder.h" }
+  module roots                           { header "__math/roots.h" }
+  module rounding_functions              { header "__math/rounding_functions.h" }
+  module special_functions               { header "__math/special_functions.h" }
----------------
ldionne wrote:

I'm a bit confused -- we include all of these headers from `math.h`, don't we?

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


More information about the libcxx-commits mailing list