aboutsummaryrefslogtreecommitdiff
path: root/libc/src/math
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2024-07-12 09:12:13 +0200
committerGitHub <noreply@github.com>2024-07-12 09:12:13 +0200
commitce9035f5bd3aa09cbd899489cdbc7f6c18acf1e3 (patch)
tree0f22897d7f178d7b3850db2397b4b59698336d26 /libc/src/math
parent37d3f44a58d0a2a2e8782266acd66a6733984842 (diff)
downloadllvm-ce9035f5bd3aa09cbd899489cdbc7f6c18acf1e3.zip
llvm-ce9035f5bd3aa09cbd899489cdbc7f6c18acf1e3.tar.gz
llvm-ce9035f5bd3aa09cbd899489cdbc7f6c18acf1e3.tar.bz2
Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration" (#98593)
Reverts llvm/llvm-project#98075 bots are broken
Diffstat (limited to 'libc/src/math')
-rw-r--r--libc/src/math/aarch64/ceil.cpp5
-rw-r--r--libc/src/math/aarch64/ceilf.cpp5
-rw-r--r--libc/src/math/aarch64/floor.cpp5
-rw-r--r--libc/src/math/aarch64/floorf.cpp5
-rw-r--r--libc/src/math/aarch64/round.cpp5
-rw-r--r--libc/src/math/aarch64/roundf.cpp5
-rw-r--r--libc/src/math/aarch64/trunc.cpp5
-rw-r--r--libc/src/math/aarch64/truncf.cpp5
-rw-r--r--libc/src/math/acos.h6
-rw-r--r--libc/src/math/acosf.h6
-rw-r--r--libc/src/math/acosh.h6
-rw-r--r--libc/src/math/acoshf.h6
-rw-r--r--libc/src/math/amdgpu/acos.cpp5
-rw-r--r--libc/src/math/amdgpu/acosf.cpp5
-rw-r--r--libc/src/math/amdgpu/acosh.cpp5
-rw-r--r--libc/src/math/amdgpu/acoshf.cpp5
-rw-r--r--libc/src/math/amdgpu/asin.cpp5
-rw-r--r--libc/src/math/amdgpu/asinf.cpp5
-rw-r--r--libc/src/math/amdgpu/asinh.cpp5
-rw-r--r--libc/src/math/amdgpu/asinhf.cpp5
-rw-r--r--libc/src/math/amdgpu/atan.cpp5
-rw-r--r--libc/src/math/amdgpu/atan2.cpp5
-rw-r--r--libc/src/math/amdgpu/atan2f.cpp5
-rw-r--r--libc/src/math/amdgpu/atanf.cpp5
-rw-r--r--libc/src/math/amdgpu/atanh.cpp5
-rw-r--r--libc/src/math/amdgpu/atanhf.cpp5
-rw-r--r--libc/src/math/amdgpu/ceil.cpp5
-rw-r--r--libc/src/math/amdgpu/ceilf.cpp5
-rw-r--r--libc/src/math/amdgpu/copysign.cpp5
-rw-r--r--libc/src/math/amdgpu/copysignf.cpp5
-rw-r--r--libc/src/math/amdgpu/cos.cpp5
-rw-r--r--libc/src/math/amdgpu/cosf.cpp5
-rw-r--r--libc/src/math/amdgpu/cosh.cpp5
-rw-r--r--libc/src/math/amdgpu/coshf.cpp5
-rw-r--r--libc/src/math/amdgpu/declarations.h5
-rw-r--r--libc/src/math/amdgpu/erf.cpp5
-rw-r--r--libc/src/math/amdgpu/erff.cpp5
-rw-r--r--libc/src/math/amdgpu/exp.cpp5
-rw-r--r--libc/src/math/amdgpu/exp10.cpp5
-rw-r--r--libc/src/math/amdgpu/exp10f.cpp5
-rw-r--r--libc/src/math/amdgpu/exp2.cpp5
-rw-r--r--libc/src/math/amdgpu/exp2f.cpp5
-rw-r--r--libc/src/math/amdgpu/expf.cpp5
-rw-r--r--libc/src/math/amdgpu/expm1.cpp5
-rw-r--r--libc/src/math/amdgpu/expm1f.cpp5
-rw-r--r--libc/src/math/amdgpu/fabs.cpp5
-rw-r--r--libc/src/math/amdgpu/fabsf.cpp5
-rw-r--r--libc/src/math/amdgpu/fdim.cpp5
-rw-r--r--libc/src/math/amdgpu/fdimf.cpp5
-rw-r--r--libc/src/math/amdgpu/floor.cpp5
-rw-r--r--libc/src/math/amdgpu/floorf.cpp5
-rw-r--r--libc/src/math/amdgpu/fma.cpp5
-rw-r--r--libc/src/math/amdgpu/fmaf.cpp5
-rw-r--r--libc/src/math/amdgpu/fmax.cpp5
-rw-r--r--libc/src/math/amdgpu/fmaxf.cpp5
-rw-r--r--libc/src/math/amdgpu/fmin.cpp5
-rw-r--r--libc/src/math/amdgpu/fminf.cpp5
-rw-r--r--libc/src/math/amdgpu/fmod.cpp5
-rw-r--r--libc/src/math/amdgpu/fmodf.cpp5
-rw-r--r--libc/src/math/amdgpu/frexp.cpp5
-rw-r--r--libc/src/math/amdgpu/frexpf.cpp5
-rw-r--r--libc/src/math/amdgpu/hypot.cpp5
-rw-r--r--libc/src/math/amdgpu/hypotf.cpp5
-rw-r--r--libc/src/math/amdgpu/ilogb.cpp5
-rw-r--r--libc/src/math/amdgpu/ilogbf.cpp5
-rw-r--r--libc/src/math/amdgpu/ldexp.cpp5
-rw-r--r--libc/src/math/amdgpu/ldexpf.cpp5
-rw-r--r--libc/src/math/amdgpu/llrint.cpp5
-rw-r--r--libc/src/math/amdgpu/llrintf.cpp5
-rw-r--r--libc/src/math/amdgpu/log.cpp5
-rw-r--r--libc/src/math/amdgpu/log10.cpp5
-rw-r--r--libc/src/math/amdgpu/log10f.cpp5
-rw-r--r--libc/src/math/amdgpu/log1p.cpp5
-rw-r--r--libc/src/math/amdgpu/log1pf.cpp5
-rw-r--r--libc/src/math/amdgpu/log2.cpp5
-rw-r--r--libc/src/math/amdgpu/log2f.cpp5
-rw-r--r--libc/src/math/amdgpu/logb.cpp5
-rw-r--r--libc/src/math/amdgpu/logbf.cpp5
-rw-r--r--libc/src/math/amdgpu/logf.cpp5
-rw-r--r--libc/src/math/amdgpu/lrint.cpp5
-rw-r--r--libc/src/math/amdgpu/lrintf.cpp5
-rw-r--r--libc/src/math/amdgpu/nearbyint.cpp5
-rw-r--r--libc/src/math/amdgpu/nearbyintf.cpp5
-rw-r--r--libc/src/math/amdgpu/nextafter.cpp5
-rw-r--r--libc/src/math/amdgpu/nextafterf.cpp5
-rw-r--r--libc/src/math/amdgpu/platform.h5
-rw-r--r--libc/src/math/amdgpu/pow.cpp5
-rw-r--r--libc/src/math/amdgpu/powf.cpp5
-rw-r--r--libc/src/math/amdgpu/powi.cpp5
-rw-r--r--libc/src/math/amdgpu/powif.cpp5
-rw-r--r--libc/src/math/amdgpu/remainder.cpp5
-rw-r--r--libc/src/math/amdgpu/remainderf.cpp5
-rw-r--r--libc/src/math/amdgpu/remquo.cpp5
-rw-r--r--libc/src/math/amdgpu/remquof.cpp5
-rw-r--r--libc/src/math/amdgpu/rint.cpp5
-rw-r--r--libc/src/math/amdgpu/rintf.cpp5
-rw-r--r--libc/src/math/amdgpu/round.cpp5
-rw-r--r--libc/src/math/amdgpu/roundf.cpp5
-rw-r--r--libc/src/math/amdgpu/scalbn.cpp5
-rw-r--r--libc/src/math/amdgpu/scalbnf.cpp5
-rw-r--r--libc/src/math/amdgpu/sin.cpp5
-rw-r--r--libc/src/math/amdgpu/sincos.cpp5
-rw-r--r--libc/src/math/amdgpu/sincosf.cpp5
-rw-r--r--libc/src/math/amdgpu/sinf.cpp5
-rw-r--r--libc/src/math/amdgpu/sinh.cpp5
-rw-r--r--libc/src/math/amdgpu/sinhf.cpp5
-rw-r--r--libc/src/math/amdgpu/sqrt.cpp5
-rw-r--r--libc/src/math/amdgpu/sqrtf.cpp5
-rw-r--r--libc/src/math/amdgpu/tan.cpp5
-rw-r--r--libc/src/math/amdgpu/tanf.cpp5
-rw-r--r--libc/src/math/amdgpu/tanh.cpp5
-rw-r--r--libc/src/math/amdgpu/tanhf.cpp5
-rw-r--r--libc/src/math/amdgpu/tgamma.cpp5
-rw-r--r--libc/src/math/amdgpu/tgammaf.cpp5
-rw-r--r--libc/src/math/amdgpu/trunc.cpp5
-rw-r--r--libc/src/math/amdgpu/truncf.cpp5
-rw-r--r--libc/src/math/asin.h6
-rw-r--r--libc/src/math/asinf.h6
-rw-r--r--libc/src/math/asinh.h6
-rw-r--r--libc/src/math/asinhf.h6
-rw-r--r--libc/src/math/atan.h6
-rw-r--r--libc/src/math/atan2.h6
-rw-r--r--libc/src/math/atan2f.h6
-rw-r--r--libc/src/math/atanf.h6
-rw-r--r--libc/src/math/atanh.h6
-rw-r--r--libc/src/math/atanhf.h6
-rw-r--r--libc/src/math/canonicalize.h6
-rw-r--r--libc/src/math/canonicalizef.h6
-rw-r--r--libc/src/math/canonicalizef128.h5
-rw-r--r--libc/src/math/canonicalizef16.h5
-rw-r--r--libc/src/math/canonicalizel.h6
-rw-r--r--libc/src/math/cbrtf.h6
-rw-r--r--libc/src/math/ceil.h6
-rw-r--r--libc/src/math/ceilf.h6
-rw-r--r--libc/src/math/ceilf128.h5
-rw-r--r--libc/src/math/ceilf16.h5
-rw-r--r--libc/src/math/ceill.h6
-rw-r--r--libc/src/math/copysign.h6
-rw-r--r--libc/src/math/copysignf.h6
-rw-r--r--libc/src/math/copysignf128.h5
-rw-r--r--libc/src/math/copysignf16.h5
-rw-r--r--libc/src/math/copysignl.h6
-rw-r--r--libc/src/math/cos.h6
-rw-r--r--libc/src/math/cosf.h6
-rw-r--r--libc/src/math/cosh.h6
-rw-r--r--libc/src/math/coshf.h6
-rw-r--r--libc/src/math/cospif.h6
-rw-r--r--libc/src/math/erf.h6
-rw-r--r--libc/src/math/erff.h6
-rw-r--r--libc/src/math/exp.h6
-rw-r--r--libc/src/math/exp10.h6
-rw-r--r--libc/src/math/exp10f.h6
-rw-r--r--libc/src/math/exp2.h6
-rw-r--r--libc/src/math/exp2f.h6
-rw-r--r--libc/src/math/exp2m1f.h6
-rw-r--r--libc/src/math/expf.h6
-rw-r--r--libc/src/math/expm1.h6
-rw-r--r--libc/src/math/expm1f.h6
-rw-r--r--libc/src/math/f16add.h5
-rw-r--r--libc/src/math/f16addf.h5
-rw-r--r--libc/src/math/f16addf128.h5
-rw-r--r--libc/src/math/f16addl.h5
-rw-r--r--libc/src/math/f16div.h5
-rw-r--r--libc/src/math/f16divf.h5
-rw-r--r--libc/src/math/f16divf128.h5
-rw-r--r--libc/src/math/f16divl.h5
-rw-r--r--libc/src/math/f16fma.h5
-rw-r--r--libc/src/math/f16fmaf.h5
-rw-r--r--libc/src/math/f16fmaf128.h5
-rw-r--r--libc/src/math/f16fmal.h5
-rw-r--r--libc/src/math/f16sqrt.h5
-rw-r--r--libc/src/math/f16sqrtf.h5
-rw-r--r--libc/src/math/f16sqrtf128.h5
-rw-r--r--libc/src/math/f16sqrtl.h5
-rw-r--r--libc/src/math/f16sub.h5
-rw-r--r--libc/src/math/f16subf.h5
-rw-r--r--libc/src/math/f16subf128.h5
-rw-r--r--libc/src/math/f16subl.h5
-rw-r--r--libc/src/math/fabs.h6
-rw-r--r--libc/src/math/fabsf.h6
-rw-r--r--libc/src/math/fabsf128.h5
-rw-r--r--libc/src/math/fabsf16.h5
-rw-r--r--libc/src/math/fabsl.h6
-rw-r--r--libc/src/math/fdim.h6
-rw-r--r--libc/src/math/fdimf.h6
-rw-r--r--libc/src/math/fdimf128.h5
-rw-r--r--libc/src/math/fdimf16.h5
-rw-r--r--libc/src/math/fdiml.h6
-rw-r--r--libc/src/math/floor.h6
-rw-r--r--libc/src/math/floorf.h6
-rw-r--r--libc/src/math/floorf128.h5
-rw-r--r--libc/src/math/floorf16.h5
-rw-r--r--libc/src/math/floorl.h6
-rw-r--r--libc/src/math/fma.h6
-rw-r--r--libc/src/math/fmaf.h6
-rw-r--r--libc/src/math/fmax.h6
-rw-r--r--libc/src/math/fmaxf.h6
-rw-r--r--libc/src/math/fmaxf128.h5
-rw-r--r--libc/src/math/fmaxf16.h5
-rw-r--r--libc/src/math/fmaximum.h6
-rw-r--r--libc/src/math/fmaximum_mag.h6
-rw-r--r--libc/src/math/fmaximum_mag_num.h6
-rw-r--r--libc/src/math/fmaximum_mag_numf.h6
-rw-r--r--libc/src/math/fmaximum_mag_numf128.h5
-rw-r--r--libc/src/math/fmaximum_mag_numf16.h5
-rw-r--r--libc/src/math/fmaximum_mag_numl.h6
-rw-r--r--libc/src/math/fmaximum_magf.h6
-rw-r--r--libc/src/math/fmaximum_magf128.h5
-rw-r--r--libc/src/math/fmaximum_magf16.h5
-rw-r--r--libc/src/math/fmaximum_magl.h6
-rw-r--r--libc/src/math/fmaximum_num.h6
-rw-r--r--libc/src/math/fmaximum_numf.h6
-rw-r--r--libc/src/math/fmaximum_numf128.h5
-rw-r--r--libc/src/math/fmaximum_numf16.h5
-rw-r--r--libc/src/math/fmaximum_numl.h6
-rw-r--r--libc/src/math/fmaximumf.h6
-rw-r--r--libc/src/math/fmaximumf128.h5
-rw-r--r--libc/src/math/fmaximumf16.h5
-rw-r--r--libc/src/math/fmaximuml.h6
-rw-r--r--libc/src/math/fmaxl.h6
-rw-r--r--libc/src/math/fmin.h6
-rw-r--r--libc/src/math/fminf.h6
-rw-r--r--libc/src/math/fminf128.h5
-rw-r--r--libc/src/math/fminf16.h5
-rw-r--r--libc/src/math/fminimum.h6
-rw-r--r--libc/src/math/fminimum_mag.h6
-rw-r--r--libc/src/math/fminimum_mag_num.h6
-rw-r--r--libc/src/math/fminimum_mag_numf.h6
-rw-r--r--libc/src/math/fminimum_mag_numf128.h5
-rw-r--r--libc/src/math/fminimum_mag_numf16.h5
-rw-r--r--libc/src/math/fminimum_mag_numl.h6
-rw-r--r--libc/src/math/fminimum_magf.h6
-rw-r--r--libc/src/math/fminimum_magf128.h5
-rw-r--r--libc/src/math/fminimum_magf16.h5
-rw-r--r--libc/src/math/fminimum_magl.h6
-rw-r--r--libc/src/math/fminimum_num.h6
-rw-r--r--libc/src/math/fminimum_numf.h6
-rw-r--r--libc/src/math/fminimum_numf128.h5
-rw-r--r--libc/src/math/fminimum_numf16.h5
-rw-r--r--libc/src/math/fminimum_numl.h6
-rw-r--r--libc/src/math/fminimumf.h6
-rw-r--r--libc/src/math/fminimumf128.h5
-rw-r--r--libc/src/math/fminimumf16.h5
-rw-r--r--libc/src/math/fminimuml.h6
-rw-r--r--libc/src/math/fminl.h6
-rw-r--r--libc/src/math/fmod.h6
-rw-r--r--libc/src/math/fmodf.h6
-rw-r--r--libc/src/math/fmodf128.h5
-rw-r--r--libc/src/math/fmodf16.h5
-rw-r--r--libc/src/math/fmodl.h6
-rw-r--r--libc/src/math/fmul.h6
-rw-r--r--libc/src/math/frexp.h6
-rw-r--r--libc/src/math/frexpf.h6
-rw-r--r--libc/src/math/frexpf128.h5
-rw-r--r--libc/src/math/frexpf16.h5
-rw-r--r--libc/src/math/frexpl.h6
-rw-r--r--libc/src/math/fromfp.h6
-rw-r--r--libc/src/math/fromfpf.h6
-rw-r--r--libc/src/math/fromfpf128.h5
-rw-r--r--libc/src/math/fromfpf16.h5
-rw-r--r--libc/src/math/fromfpl.h6
-rw-r--r--libc/src/math/fromfpx.h6
-rw-r--r--libc/src/math/fromfpxf.h6
-rw-r--r--libc/src/math/fromfpxf128.h5
-rw-r--r--libc/src/math/fromfpxf16.h5
-rw-r--r--libc/src/math/fromfpxl.h6
-rw-r--r--libc/src/math/generic/acosf.cpp5
-rw-r--r--libc/src/math/generic/acoshf.cpp5
-rw-r--r--libc/src/math/generic/asinf.cpp5
-rw-r--r--libc/src/math/generic/asinhf.cpp5
-rw-r--r--libc/src/math/generic/atan2f.cpp5
-rw-r--r--libc/src/math/generic/atanf.cpp5
-rw-r--r--libc/src/math/generic/atanhf.cpp5
-rw-r--r--libc/src/math/generic/canonicalize.cpp5
-rw-r--r--libc/src/math/generic/canonicalizef.cpp5
-rw-r--r--libc/src/math/generic/canonicalizef128.cpp5
-rw-r--r--libc/src/math/generic/canonicalizef16.cpp5
-rw-r--r--libc/src/math/generic/canonicalizel.cpp5
-rw-r--r--libc/src/math/generic/cbrtf.cpp5
-rw-r--r--libc/src/math/generic/ceil.cpp5
-rw-r--r--libc/src/math/generic/ceilf.cpp5
-rw-r--r--libc/src/math/generic/ceilf128.cpp5
-rw-r--r--libc/src/math/generic/ceilf16.cpp5
-rw-r--r--libc/src/math/generic/ceill.cpp5
-rw-r--r--libc/src/math/generic/common_constants.cpp5
-rw-r--r--libc/src/math/generic/common_constants.h5
-rw-r--r--libc/src/math/generic/copysign.cpp5
-rw-r--r--libc/src/math/generic/copysignf.cpp5
-rw-r--r--libc/src/math/generic/copysignf128.cpp5
-rw-r--r--libc/src/math/generic/copysignf16.cpp5
-rw-r--r--libc/src/math/generic/copysignl.cpp5
-rw-r--r--libc/src/math/generic/cos.cpp5
-rw-r--r--libc/src/math/generic/cosf.cpp5
-rw-r--r--libc/src/math/generic/coshf.cpp5
-rw-r--r--libc/src/math/generic/cospif.cpp5
-rw-r--r--libc/src/math/generic/erff.cpp5
-rw-r--r--libc/src/math/generic/exp.cpp5
-rw-r--r--libc/src/math/generic/exp10.cpp5
-rw-r--r--libc/src/math/generic/exp10f.cpp5
-rw-r--r--libc/src/math/generic/exp10f_impl.h7
-rw-r--r--libc/src/math/generic/exp2.cpp5
-rw-r--r--libc/src/math/generic/exp2f.cpp5
-rw-r--r--libc/src/math/generic/exp2f_impl.h7
-rw-r--r--libc/src/math/generic/exp2m1f.cpp5
-rw-r--r--libc/src/math/generic/exp_utils.cpp5
-rw-r--r--libc/src/math/generic/exp_utils.h5
-rw-r--r--libc/src/math/generic/expf.cpp5
-rw-r--r--libc/src/math/generic/explogxf.cpp5
-rw-r--r--libc/src/math/generic/explogxf.h5
-rw-r--r--libc/src/math/generic/expm1.cpp5
-rw-r--r--libc/src/math/generic/expm1f.cpp5
-rw-r--r--libc/src/math/generic/f16add.cpp5
-rw-r--r--libc/src/math/generic/f16addf.cpp5
-rw-r--r--libc/src/math/generic/f16addf128.cpp5
-rw-r--r--libc/src/math/generic/f16addl.cpp5
-rw-r--r--libc/src/math/generic/f16div.cpp5
-rw-r--r--libc/src/math/generic/f16divf.cpp5
-rw-r--r--libc/src/math/generic/f16divf128.cpp5
-rw-r--r--libc/src/math/generic/f16divl.cpp5
-rw-r--r--libc/src/math/generic/f16fma.cpp5
-rw-r--r--libc/src/math/generic/f16fmaf.cpp5
-rw-r--r--libc/src/math/generic/f16fmaf128.cpp5
-rw-r--r--libc/src/math/generic/f16fmal.cpp5
-rw-r--r--libc/src/math/generic/f16sqrt.cpp5
-rw-r--r--libc/src/math/generic/f16sqrtf.cpp5
-rw-r--r--libc/src/math/generic/f16sqrtf128.cpp5
-rw-r--r--libc/src/math/generic/f16sqrtl.cpp5
-rw-r--r--libc/src/math/generic/f16sub.cpp5
-rw-r--r--libc/src/math/generic/f16subf.cpp5
-rw-r--r--libc/src/math/generic/f16subf128.cpp5
-rw-r--r--libc/src/math/generic/f16subl.cpp5
-rw-r--r--libc/src/math/generic/fabs.cpp5
-rw-r--r--libc/src/math/generic/fabsf.cpp5
-rw-r--r--libc/src/math/generic/fabsf128.cpp5
-rw-r--r--libc/src/math/generic/fabsf16.cpp5
-rw-r--r--libc/src/math/generic/fabsl.cpp5
-rw-r--r--libc/src/math/generic/fdim.cpp5
-rw-r--r--libc/src/math/generic/fdimf.cpp5
-rw-r--r--libc/src/math/generic/fdimf128.cpp5
-rw-r--r--libc/src/math/generic/fdimf16.cpp5
-rw-r--r--libc/src/math/generic/fdiml.cpp5
-rw-r--r--libc/src/math/generic/floor.cpp5
-rw-r--r--libc/src/math/generic/floorf.cpp5
-rw-r--r--libc/src/math/generic/floorf128.cpp5
-rw-r--r--libc/src/math/generic/floorf16.cpp5
-rw-r--r--libc/src/math/generic/floorl.cpp5
-rw-r--r--libc/src/math/generic/fma.cpp5
-rw-r--r--libc/src/math/generic/fmaf.cpp5
-rw-r--r--libc/src/math/generic/fmax.cpp5
-rw-r--r--libc/src/math/generic/fmaxf.cpp5
-rw-r--r--libc/src/math/generic/fmaxf128.cpp5
-rw-r--r--libc/src/math/generic/fmaxf16.cpp5
-rw-r--r--libc/src/math/generic/fmaximum.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_mag.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_mag_num.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_mag_numf.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_mag_numf128.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_mag_numf16.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_mag_numl.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_magf.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_magf128.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_magf16.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_magl.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_num.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_numf.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_numf128.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_numf16.cpp5
-rw-r--r--libc/src/math/generic/fmaximum_numl.cpp5
-rw-r--r--libc/src/math/generic/fmaximumf.cpp5
-rw-r--r--libc/src/math/generic/fmaximumf128.cpp5
-rw-r--r--libc/src/math/generic/fmaximumf16.cpp5
-rw-r--r--libc/src/math/generic/fmaximuml.cpp5
-rw-r--r--libc/src/math/generic/fmaxl.cpp5
-rw-r--r--libc/src/math/generic/fmin.cpp5
-rw-r--r--libc/src/math/generic/fminf.cpp5
-rw-r--r--libc/src/math/generic/fminf128.cpp5
-rw-r--r--libc/src/math/generic/fminf16.cpp5
-rw-r--r--libc/src/math/generic/fminimum.cpp5
-rw-r--r--libc/src/math/generic/fminimum_mag.cpp5
-rw-r--r--libc/src/math/generic/fminimum_mag_num.cpp5
-rw-r--r--libc/src/math/generic/fminimum_mag_numf.cpp5
-rw-r--r--libc/src/math/generic/fminimum_mag_numf128.cpp5
-rw-r--r--libc/src/math/generic/fminimum_mag_numf16.cpp5
-rw-r--r--libc/src/math/generic/fminimum_mag_numl.cpp5
-rw-r--r--libc/src/math/generic/fminimum_magf.cpp5
-rw-r--r--libc/src/math/generic/fminimum_magf128.cpp5
-rw-r--r--libc/src/math/generic/fminimum_magf16.cpp5
-rw-r--r--libc/src/math/generic/fminimum_magl.cpp5
-rw-r--r--libc/src/math/generic/fminimum_num.cpp5
-rw-r--r--libc/src/math/generic/fminimum_numf.cpp5
-rw-r--r--libc/src/math/generic/fminimum_numf128.cpp5
-rw-r--r--libc/src/math/generic/fminimum_numf16.cpp5
-rw-r--r--libc/src/math/generic/fminimum_numl.cpp5
-rw-r--r--libc/src/math/generic/fminimumf.cpp5
-rw-r--r--libc/src/math/generic/fminimumf128.cpp5
-rw-r--r--libc/src/math/generic/fminimumf16.cpp5
-rw-r--r--libc/src/math/generic/fminimuml.cpp5
-rw-r--r--libc/src/math/generic/fminl.cpp5
-rw-r--r--libc/src/math/generic/fmod.cpp5
-rw-r--r--libc/src/math/generic/fmodf.cpp5
-rw-r--r--libc/src/math/generic/fmodf128.cpp5
-rw-r--r--libc/src/math/generic/fmodf16.cpp5
-rw-r--r--libc/src/math/generic/fmodl.cpp5
-rw-r--r--libc/src/math/generic/fmul.cpp5
-rw-r--r--libc/src/math/generic/frexp.cpp5
-rw-r--r--libc/src/math/generic/frexpf.cpp5
-rw-r--r--libc/src/math/generic/frexpf128.cpp5
-rw-r--r--libc/src/math/generic/frexpf16.cpp5
-rw-r--r--libc/src/math/generic/frexpl.cpp5
-rw-r--r--libc/src/math/generic/fromfp.cpp5
-rw-r--r--libc/src/math/generic/fromfpf.cpp5
-rw-r--r--libc/src/math/generic/fromfpf128.cpp5
-rw-r--r--libc/src/math/generic/fromfpf16.cpp5
-rw-r--r--libc/src/math/generic/fromfpl.cpp5
-rw-r--r--libc/src/math/generic/fromfpx.cpp5
-rw-r--r--libc/src/math/generic/fromfpxf.cpp5
-rw-r--r--libc/src/math/generic/fromfpxf128.cpp5
-rw-r--r--libc/src/math/generic/fromfpxf16.cpp5
-rw-r--r--libc/src/math/generic/fromfpxl.cpp5
-rw-r--r--libc/src/math/generic/getpayloadf16.cpp5
-rw-r--r--libc/src/math/generic/hypot.cpp5
-rw-r--r--libc/src/math/generic/hypotf.cpp5
-rw-r--r--libc/src/math/generic/ilogb.cpp5
-rw-r--r--libc/src/math/generic/ilogbf.cpp5
-rw-r--r--libc/src/math/generic/ilogbf128.cpp5
-rw-r--r--libc/src/math/generic/ilogbf16.cpp5
-rw-r--r--libc/src/math/generic/ilogbl.cpp5
-rw-r--r--libc/src/math/generic/inv_trigf_utils.cpp5
-rw-r--r--libc/src/math/generic/inv_trigf_utils.h5
-rw-r--r--libc/src/math/generic/isnan.cpp5
-rw-r--r--libc/src/math/generic/isnanf.cpp5
-rw-r--r--libc/src/math/generic/isnanl.cpp5
-rw-r--r--libc/src/math/generic/ldexp.cpp5
-rw-r--r--libc/src/math/generic/ldexpf.cpp5
-rw-r--r--libc/src/math/generic/ldexpf128.cpp5
-rw-r--r--libc/src/math/generic/ldexpf16.cpp5
-rw-r--r--libc/src/math/generic/ldexpl.cpp5
-rw-r--r--libc/src/math/generic/llogb.cpp5
-rw-r--r--libc/src/math/generic/llogbf.cpp5
-rw-r--r--libc/src/math/generic/llogbf128.cpp5
-rw-r--r--libc/src/math/generic/llogbf16.cpp5
-rw-r--r--libc/src/math/generic/llogbl.cpp5
-rw-r--r--libc/src/math/generic/llrint.cpp5
-rw-r--r--libc/src/math/generic/llrintf.cpp5
-rw-r--r--libc/src/math/generic/llrintf128.cpp5
-rw-r--r--libc/src/math/generic/llrintf16.cpp5
-rw-r--r--libc/src/math/generic/llrintl.cpp5
-rw-r--r--libc/src/math/generic/llround.cpp5
-rw-r--r--libc/src/math/generic/llroundf.cpp5
-rw-r--r--libc/src/math/generic/llroundf128.cpp5
-rw-r--r--libc/src/math/generic/llroundf16.cpp5
-rw-r--r--libc/src/math/generic/llroundl.cpp5
-rw-r--r--libc/src/math/generic/log.cpp5
-rw-r--r--libc/src/math/generic/log10.cpp5
-rw-r--r--libc/src/math/generic/log10f.cpp5
-rw-r--r--libc/src/math/generic/log1p.cpp5
-rw-r--r--libc/src/math/generic/log1pf.cpp5
-rw-r--r--libc/src/math/generic/log2.cpp5
-rw-r--r--libc/src/math/generic/log2f.cpp5
-rw-r--r--libc/src/math/generic/log_range_reduction.h5
-rw-r--r--libc/src/math/generic/logb.cpp5
-rw-r--r--libc/src/math/generic/logbf.cpp5
-rw-r--r--libc/src/math/generic/logbf128.cpp5
-rw-r--r--libc/src/math/generic/logbf16.cpp5
-rw-r--r--libc/src/math/generic/logbl.cpp5
-rw-r--r--libc/src/math/generic/logf.cpp5
-rw-r--r--libc/src/math/generic/lrint.cpp5
-rw-r--r--libc/src/math/generic/lrintf.cpp5
-rw-r--r--libc/src/math/generic/lrintf128.cpp5
-rw-r--r--libc/src/math/generic/lrintf16.cpp5
-rw-r--r--libc/src/math/generic/lrintl.cpp5
-rw-r--r--libc/src/math/generic/lround.cpp5
-rw-r--r--libc/src/math/generic/lroundf.cpp5
-rw-r--r--libc/src/math/generic/lroundf128.cpp5
-rw-r--r--libc/src/math/generic/lroundf16.cpp5
-rw-r--r--libc/src/math/generic/lroundl.cpp5
-rw-r--r--libc/src/math/generic/modf.cpp5
-rw-r--r--libc/src/math/generic/modff.cpp5
-rw-r--r--libc/src/math/generic/modff128.cpp5
-rw-r--r--libc/src/math/generic/modff16.cpp5
-rw-r--r--libc/src/math/generic/modfl.cpp5
-rw-r--r--libc/src/math/generic/nan.cpp5
-rw-r--r--libc/src/math/generic/nanf.cpp5
-rw-r--r--libc/src/math/generic/nanf128.cpp5
-rw-r--r--libc/src/math/generic/nanf16.cpp5
-rw-r--r--libc/src/math/generic/nanl.cpp5
-rw-r--r--libc/src/math/generic/nearbyint.cpp5
-rw-r--r--libc/src/math/generic/nearbyintf.cpp5
-rw-r--r--libc/src/math/generic/nearbyintf128.cpp5
-rw-r--r--libc/src/math/generic/nearbyintf16.cpp5
-rw-r--r--libc/src/math/generic/nearbyintl.cpp5
-rw-r--r--libc/src/math/generic/nextafter.cpp5
-rw-r--r--libc/src/math/generic/nextafterf.cpp5
-rw-r--r--libc/src/math/generic/nextafterf128.cpp5
-rw-r--r--libc/src/math/generic/nextafterf16.cpp5
-rw-r--r--libc/src/math/generic/nextafterl.cpp5
-rw-r--r--libc/src/math/generic/nextdown.cpp5
-rw-r--r--libc/src/math/generic/nextdownf.cpp5
-rw-r--r--libc/src/math/generic/nextdownf128.cpp5
-rw-r--r--libc/src/math/generic/nextdownf16.cpp5
-rw-r--r--libc/src/math/generic/nextdownl.cpp5
-rw-r--r--libc/src/math/generic/nexttoward.cpp5
-rw-r--r--libc/src/math/generic/nexttowardf.cpp5
-rw-r--r--libc/src/math/generic/nexttowardf16.cpp5
-rw-r--r--libc/src/math/generic/nexttowardl.cpp5
-rw-r--r--libc/src/math/generic/nextup.cpp5
-rw-r--r--libc/src/math/generic/nextupf.cpp5
-rw-r--r--libc/src/math/generic/nextupf128.cpp5
-rw-r--r--libc/src/math/generic/nextupf16.cpp5
-rw-r--r--libc/src/math/generic/nextupl.cpp5
-rw-r--r--libc/src/math/generic/powf.cpp5
-rw-r--r--libc/src/math/generic/range_reduction.h5
-rw-r--r--libc/src/math/generic/range_reduction_double_common.h5
-rw-r--r--libc/src/math/generic/range_reduction_double_fma.h5
-rw-r--r--libc/src/math/generic/range_reduction_double_nofma.h5
-rw-r--r--libc/src/math/generic/range_reduction_fma.h5
-rw-r--r--libc/src/math/generic/remainder.cpp5
-rw-r--r--libc/src/math/generic/remainderf.cpp5
-rw-r--r--libc/src/math/generic/remainderf16.cpp5
-rw-r--r--libc/src/math/generic/remainderl.cpp5
-rw-r--r--libc/src/math/generic/remquo.cpp5
-rw-r--r--libc/src/math/generic/remquof.cpp5
-rw-r--r--libc/src/math/generic/remquof128.cpp5
-rw-r--r--libc/src/math/generic/remquof16.cpp5
-rw-r--r--libc/src/math/generic/remquol.cpp5
-rw-r--r--libc/src/math/generic/rint.cpp5
-rw-r--r--libc/src/math/generic/rintf.cpp5
-rw-r--r--libc/src/math/generic/rintf128.cpp5
-rw-r--r--libc/src/math/generic/rintf16.cpp5
-rw-r--r--libc/src/math/generic/rintl.cpp5
-rw-r--r--libc/src/math/generic/round.cpp5
-rw-r--r--libc/src/math/generic/roundeven.cpp5
-rw-r--r--libc/src/math/generic/roundevenf.cpp5
-rw-r--r--libc/src/math/generic/roundevenf128.cpp5
-rw-r--r--libc/src/math/generic/roundevenf16.cpp5
-rw-r--r--libc/src/math/generic/roundevenl.cpp5
-rw-r--r--libc/src/math/generic/roundf.cpp5
-rw-r--r--libc/src/math/generic/roundf128.cpp5
-rw-r--r--libc/src/math/generic/roundf16.cpp5
-rw-r--r--libc/src/math/generic/roundl.cpp5
-rw-r--r--libc/src/math/generic/scalblnf16.cpp5
-rw-r--r--libc/src/math/generic/scalbn.cpp5
-rw-r--r--libc/src/math/generic/scalbnf.cpp5
-rw-r--r--libc/src/math/generic/scalbnf128.cpp5
-rw-r--r--libc/src/math/generic/scalbnf16.cpp5
-rw-r--r--libc/src/math/generic/scalbnl.cpp5
-rw-r--r--libc/src/math/generic/setpayloadf16.cpp5
-rw-r--r--libc/src/math/generic/setpayloadsigf16.cpp5
-rw-r--r--libc/src/math/generic/sin.cpp5
-rw-r--r--libc/src/math/generic/sincos.cpp5
-rw-r--r--libc/src/math/generic/sincos_eval.h5
-rw-r--r--libc/src/math/generic/sincosf.cpp5
-rw-r--r--libc/src/math/generic/sincosf_utils.h5
-rw-r--r--libc/src/math/generic/sinf.cpp5
-rw-r--r--libc/src/math/generic/sinhf.cpp5
-rw-r--r--libc/src/math/generic/sinpif.cpp5
-rw-r--r--libc/src/math/generic/sqrt.cpp5
-rw-r--r--libc/src/math/generic/sqrtf.cpp5
-rw-r--r--libc/src/math/generic/sqrtf128.cpp5
-rw-r--r--libc/src/math/generic/sqrtl.cpp5
-rw-r--r--libc/src/math/generic/tan.cpp5
-rw-r--r--libc/src/math/generic/tanf.cpp5
-rw-r--r--libc/src/math/generic/tanhf.cpp5
-rw-r--r--libc/src/math/generic/totalorderf16.cpp5
-rw-r--r--libc/src/math/generic/totalordermagf16.cpp5
-rw-r--r--libc/src/math/generic/trunc.cpp5
-rw-r--r--libc/src/math/generic/truncf.cpp5
-rw-r--r--libc/src/math/generic/truncf128.cpp5
-rw-r--r--libc/src/math/generic/truncf16.cpp5
-rw-r--r--libc/src/math/generic/truncl.cpp5
-rw-r--r--libc/src/math/generic/ufromfp.cpp5
-rw-r--r--libc/src/math/generic/ufromfpf.cpp5
-rw-r--r--libc/src/math/generic/ufromfpf128.cpp5
-rw-r--r--libc/src/math/generic/ufromfpf16.cpp5
-rw-r--r--libc/src/math/generic/ufromfpl.cpp5
-rw-r--r--libc/src/math/generic/ufromfpx.cpp5
-rw-r--r--libc/src/math/generic/ufromfpxf.cpp5
-rw-r--r--libc/src/math/generic/ufromfpxf128.cpp5
-rw-r--r--libc/src/math/generic/ufromfpxf16.cpp5
-rw-r--r--libc/src/math/generic/ufromfpxl.cpp5
-rw-r--r--libc/src/math/getpayloadf16.h5
-rw-r--r--libc/src/math/hypot.h6
-rw-r--r--libc/src/math/hypotf.h6
-rw-r--r--libc/src/math/ilogb.h6
-rw-r--r--libc/src/math/ilogbf.h6
-rw-r--r--libc/src/math/ilogbf128.h5
-rw-r--r--libc/src/math/ilogbf16.h5
-rw-r--r--libc/src/math/ilogbl.h6
-rw-r--r--libc/src/math/isnan.h6
-rw-r--r--libc/src/math/isnanf.h6
-rw-r--r--libc/src/math/isnanl.h6
-rw-r--r--libc/src/math/ldexp.h6
-rw-r--r--libc/src/math/ldexpf.h6
-rw-r--r--libc/src/math/ldexpf128.h5
-rw-r--r--libc/src/math/ldexpf16.h5
-rw-r--r--libc/src/math/ldexpl.h6
-rw-r--r--libc/src/math/llogb.h5
-rw-r--r--libc/src/math/llogbf.h5
-rw-r--r--libc/src/math/llogbf128.h5
-rw-r--r--libc/src/math/llogbf16.h5
-rw-r--r--libc/src/math/llogbl.h5
-rw-r--r--libc/src/math/llrint.h6
-rw-r--r--libc/src/math/llrintf.h6
-rw-r--r--libc/src/math/llrintf128.h5
-rw-r--r--libc/src/math/llrintf16.h5
-rw-r--r--libc/src/math/llrintl.h6
-rw-r--r--libc/src/math/llround.h6
-rw-r--r--libc/src/math/llroundf.h6
-rw-r--r--libc/src/math/llroundf128.h5
-rw-r--r--libc/src/math/llroundf16.h5
-rw-r--r--libc/src/math/llroundl.h6
-rw-r--r--libc/src/math/log.h6
-rw-r--r--libc/src/math/log10.h6
-rw-r--r--libc/src/math/log10f.h6
-rw-r--r--libc/src/math/log1p.h6
-rw-r--r--libc/src/math/log1pf.h6
-rw-r--r--libc/src/math/log2.h6
-rw-r--r--libc/src/math/log2f.h6
-rw-r--r--libc/src/math/logb.h6
-rw-r--r--libc/src/math/logbf.h6
-rw-r--r--libc/src/math/logbf128.h5
-rw-r--r--libc/src/math/logbf16.h5
-rw-r--r--libc/src/math/logbl.h6
-rw-r--r--libc/src/math/logf.h6
-rw-r--r--libc/src/math/lrint.h6
-rw-r--r--libc/src/math/lrintf.h6
-rw-r--r--libc/src/math/lrintf128.h5
-rw-r--r--libc/src/math/lrintf16.h5
-rw-r--r--libc/src/math/lrintl.h6
-rw-r--r--libc/src/math/lround.h6
-rw-r--r--libc/src/math/lroundf.h6
-rw-r--r--libc/src/math/lroundf128.h5
-rw-r--r--libc/src/math/lroundf16.h5
-rw-r--r--libc/src/math/lroundl.h6
-rw-r--r--libc/src/math/modf.h6
-rw-r--r--libc/src/math/modff.h6
-rw-r--r--libc/src/math/modff128.h5
-rw-r--r--libc/src/math/modff16.h5
-rw-r--r--libc/src/math/modfl.h6
-rw-r--r--libc/src/math/nan.h6
-rw-r--r--libc/src/math/nanf.h6
-rw-r--r--libc/src/math/nanf128.h5
-rw-r--r--libc/src/math/nanf16.h5
-rw-r--r--libc/src/math/nanl.h6
-rw-r--r--libc/src/math/nearbyint.h6
-rw-r--r--libc/src/math/nearbyintf.h6
-rw-r--r--libc/src/math/nearbyintf128.h5
-rw-r--r--libc/src/math/nearbyintf16.h5
-rw-r--r--libc/src/math/nearbyintl.h6
-rw-r--r--libc/src/math/nextafter.h6
-rw-r--r--libc/src/math/nextafterf.h6
-rw-r--r--libc/src/math/nextafterf128.h5
-rw-r--r--libc/src/math/nextafterf16.h5
-rw-r--r--libc/src/math/nextafterl.h6
-rw-r--r--libc/src/math/nextdown.h6
-rw-r--r--libc/src/math/nextdownf.h6
-rw-r--r--libc/src/math/nextdownf128.h5
-rw-r--r--libc/src/math/nextdownf16.h5
-rw-r--r--libc/src/math/nextdownl.h6
-rw-r--r--libc/src/math/nexttoward.h6
-rw-r--r--libc/src/math/nexttowardf.h6
-rw-r--r--libc/src/math/nexttowardf16.h5
-rw-r--r--libc/src/math/nexttowardl.h6
-rw-r--r--libc/src/math/nextup.h6
-rw-r--r--libc/src/math/nextupf.h6
-rw-r--r--libc/src/math/nextupf128.h5
-rw-r--r--libc/src/math/nextupf16.h5
-rw-r--r--libc/src/math/nextupl.h6
-rw-r--r--libc/src/math/nvptx/acos.cpp5
-rw-r--r--libc/src/math/nvptx/acosf.cpp5
-rw-r--r--libc/src/math/nvptx/acosh.cpp5
-rw-r--r--libc/src/math/nvptx/acoshf.cpp5
-rw-r--r--libc/src/math/nvptx/asin.cpp5
-rw-r--r--libc/src/math/nvptx/asinf.cpp5
-rw-r--r--libc/src/math/nvptx/asinh.cpp5
-rw-r--r--libc/src/math/nvptx/asinhf.cpp5
-rw-r--r--libc/src/math/nvptx/atan.cpp5
-rw-r--r--libc/src/math/nvptx/atan2.cpp5
-rw-r--r--libc/src/math/nvptx/atan2f.cpp5
-rw-r--r--libc/src/math/nvptx/atanf.cpp5
-rw-r--r--libc/src/math/nvptx/atanh.cpp5
-rw-r--r--libc/src/math/nvptx/atanhf.cpp5
-rw-r--r--libc/src/math/nvptx/ceil.cpp5
-rw-r--r--libc/src/math/nvptx/ceilf.cpp5
-rw-r--r--libc/src/math/nvptx/copysign.cpp5
-rw-r--r--libc/src/math/nvptx/copysignf.cpp5
-rw-r--r--libc/src/math/nvptx/cos.cpp5
-rw-r--r--libc/src/math/nvptx/cosf.cpp5
-rw-r--r--libc/src/math/nvptx/cosh.cpp5
-rw-r--r--libc/src/math/nvptx/coshf.cpp5
-rw-r--r--libc/src/math/nvptx/declarations.h6
-rw-r--r--libc/src/math/nvptx/erf.cpp5
-rw-r--r--libc/src/math/nvptx/erff.cpp5
-rw-r--r--libc/src/math/nvptx/exp.cpp5
-rw-r--r--libc/src/math/nvptx/exp10.cpp5
-rw-r--r--libc/src/math/nvptx/exp10f.cpp5
-rw-r--r--libc/src/math/nvptx/exp2.cpp5
-rw-r--r--libc/src/math/nvptx/exp2f.cpp5
-rw-r--r--libc/src/math/nvptx/expf.cpp5
-rw-r--r--libc/src/math/nvptx/expm1.cpp5
-rw-r--r--libc/src/math/nvptx/expm1f.cpp5
-rw-r--r--libc/src/math/nvptx/fabs.cpp5
-rw-r--r--libc/src/math/nvptx/fabsf.cpp5
-rw-r--r--libc/src/math/nvptx/fdim.cpp5
-rw-r--r--libc/src/math/nvptx/fdimf.cpp5
-rw-r--r--libc/src/math/nvptx/floor.cpp5
-rw-r--r--libc/src/math/nvptx/floorf.cpp5
-rw-r--r--libc/src/math/nvptx/fma.cpp5
-rw-r--r--libc/src/math/nvptx/fmaf.cpp5
-rw-r--r--libc/src/math/nvptx/fmax.cpp5
-rw-r--r--libc/src/math/nvptx/fmaxf.cpp5
-rw-r--r--libc/src/math/nvptx/fmin.cpp5
-rw-r--r--libc/src/math/nvptx/fminf.cpp5
-rw-r--r--libc/src/math/nvptx/fmod.cpp5
-rw-r--r--libc/src/math/nvptx/fmodf.cpp5
-rw-r--r--libc/src/math/nvptx/frexp.cpp5
-rw-r--r--libc/src/math/nvptx/frexpf.cpp5
-rw-r--r--libc/src/math/nvptx/hypot.cpp5
-rw-r--r--libc/src/math/nvptx/hypotf.cpp5
-rw-r--r--libc/src/math/nvptx/ilogb.cpp5
-rw-r--r--libc/src/math/nvptx/ilogbf.cpp5
-rw-r--r--libc/src/math/nvptx/ldexp.cpp5
-rw-r--r--libc/src/math/nvptx/ldexpf.cpp5
-rw-r--r--libc/src/math/nvptx/llrint.cpp5
-rw-r--r--libc/src/math/nvptx/llrintf.cpp5
-rw-r--r--libc/src/math/nvptx/log.cpp5
-rw-r--r--libc/src/math/nvptx/log10.cpp5
-rw-r--r--libc/src/math/nvptx/log10f.cpp5
-rw-r--r--libc/src/math/nvptx/log1p.cpp5
-rw-r--r--libc/src/math/nvptx/log1pf.cpp5
-rw-r--r--libc/src/math/nvptx/log2.cpp5
-rw-r--r--libc/src/math/nvptx/log2f.cpp5
-rw-r--r--libc/src/math/nvptx/logb.cpp5
-rw-r--r--libc/src/math/nvptx/logbf.cpp5
-rw-r--r--libc/src/math/nvptx/logf.cpp5
-rw-r--r--libc/src/math/nvptx/lrint.cpp5
-rw-r--r--libc/src/math/nvptx/lrintf.cpp5
-rw-r--r--libc/src/math/nvptx/nearbyint.cpp5
-rw-r--r--libc/src/math/nvptx/nearbyintf.cpp5
-rw-r--r--libc/src/math/nvptx/nextafter.cpp5
-rw-r--r--libc/src/math/nvptx/nextafterf.cpp5
-rw-r--r--libc/src/math/nvptx/nvptx.h5
-rw-r--r--libc/src/math/nvptx/pow.cpp5
-rw-r--r--libc/src/math/nvptx/powf.cpp5
-rw-r--r--libc/src/math/nvptx/powi.cpp5
-rw-r--r--libc/src/math/nvptx/powif.cpp5
-rw-r--r--libc/src/math/nvptx/remainder.cpp5
-rw-r--r--libc/src/math/nvptx/remainderf.cpp5
-rw-r--r--libc/src/math/nvptx/remquo.cpp5
-rw-r--r--libc/src/math/nvptx/remquof.cpp5
-rw-r--r--libc/src/math/nvptx/rint.cpp5
-rw-r--r--libc/src/math/nvptx/rintf.cpp5
-rw-r--r--libc/src/math/nvptx/round.cpp5
-rw-r--r--libc/src/math/nvptx/roundf.cpp5
-rw-r--r--libc/src/math/nvptx/scalbn.cpp5
-rw-r--r--libc/src/math/nvptx/scalbnf.cpp5
-rw-r--r--libc/src/math/nvptx/sin.cpp5
-rw-r--r--libc/src/math/nvptx/sincos.cpp5
-rw-r--r--libc/src/math/nvptx/sincosf.cpp5
-rw-r--r--libc/src/math/nvptx/sinf.cpp5
-rw-r--r--libc/src/math/nvptx/sinh.cpp5
-rw-r--r--libc/src/math/nvptx/sinhf.cpp5
-rw-r--r--libc/src/math/nvptx/sqrt.cpp5
-rw-r--r--libc/src/math/nvptx/sqrtf.cpp5
-rw-r--r--libc/src/math/nvptx/tan.cpp5
-rw-r--r--libc/src/math/nvptx/tanf.cpp5
-rw-r--r--libc/src/math/nvptx/tanh.cpp5
-rw-r--r--libc/src/math/nvptx/tanhf.cpp5
-rw-r--r--libc/src/math/nvptx/tgamma.cpp5
-rw-r--r--libc/src/math/nvptx/tgammaf.cpp5
-rw-r--r--libc/src/math/nvptx/trunc.cpp5
-rw-r--r--libc/src/math/nvptx/truncf.cpp5
-rw-r--r--libc/src/math/pow.h6
-rw-r--r--libc/src/math/powf.h6
-rw-r--r--libc/src/math/powi.h6
-rw-r--r--libc/src/math/powif.h6
-rw-r--r--libc/src/math/remainder.h6
-rw-r--r--libc/src/math/remainderf.h6
-rw-r--r--libc/src/math/remainderf16.h5
-rw-r--r--libc/src/math/remainderl.h6
-rw-r--r--libc/src/math/remquo.h6
-rw-r--r--libc/src/math/remquof.h6
-rw-r--r--libc/src/math/remquof128.h5
-rw-r--r--libc/src/math/remquof16.h5
-rw-r--r--libc/src/math/remquol.h6
-rw-r--r--libc/src/math/rint.h6
-rw-r--r--libc/src/math/rintf.h6
-rw-r--r--libc/src/math/rintf128.h5
-rw-r--r--libc/src/math/rintf16.h5
-rw-r--r--libc/src/math/rintl.h6
-rw-r--r--libc/src/math/round.h6
-rw-r--r--libc/src/math/roundeven.h6
-rw-r--r--libc/src/math/roundevenf.h6
-rw-r--r--libc/src/math/roundevenf128.h5
-rw-r--r--libc/src/math/roundevenf16.h5
-rw-r--r--libc/src/math/roundevenl.h6
-rw-r--r--libc/src/math/roundf.h6
-rw-r--r--libc/src/math/roundf128.h5
-rw-r--r--libc/src/math/roundf16.h5
-rw-r--r--libc/src/math/roundl.h6
-rw-r--r--libc/src/math/scalblnf16.h5
-rw-r--r--libc/src/math/scalbn.h6
-rw-r--r--libc/src/math/scalbnf.h6
-rw-r--r--libc/src/math/scalbnf128.h5
-rw-r--r--libc/src/math/scalbnf16.h5
-rw-r--r--libc/src/math/scalbnl.h6
-rw-r--r--libc/src/math/setpayloadf16.h5
-rw-r--r--libc/src/math/setpayloadsigf16.h5
-rw-r--r--libc/src/math/sin.h6
-rw-r--r--libc/src/math/sincos.h6
-rw-r--r--libc/src/math/sincosf.h6
-rw-r--r--libc/src/math/sinf.h6
-rw-r--r--libc/src/math/sinh.h6
-rw-r--r--libc/src/math/sinhf.h6
-rw-r--r--libc/src/math/sinpif.h6
-rw-r--r--libc/src/math/sqrt.h6
-rw-r--r--libc/src/math/sqrtf.h6
-rw-r--r--libc/src/math/sqrtf128.h5
-rw-r--r--libc/src/math/sqrtl.h6
-rw-r--r--libc/src/math/tan.h6
-rw-r--r--libc/src/math/tanf.h6
-rw-r--r--libc/src/math/tanh.h6
-rw-r--r--libc/src/math/tanhf.h6
-rw-r--r--libc/src/math/tgamma.h6
-rw-r--r--libc/src/math/tgammaf.h6
-rw-r--r--libc/src/math/totalorderf16.h5
-rw-r--r--libc/src/math/totalordermagf16.h5
-rw-r--r--libc/src/math/trunc.h6
-rw-r--r--libc/src/math/truncf.h6
-rw-r--r--libc/src/math/truncf128.h5
-rw-r--r--libc/src/math/truncf16.h5
-rw-r--r--libc/src/math/truncl.h6
-rw-r--r--libc/src/math/ufromfp.h6
-rw-r--r--libc/src/math/ufromfpf.h6
-rw-r--r--libc/src/math/ufromfpf128.h5
-rw-r--r--libc/src/math/ufromfpf16.h5
-rw-r--r--libc/src/math/ufromfpl.h6
-rw-r--r--libc/src/math/ufromfpx.h6
-rw-r--r--libc/src/math/ufromfpxf.h6
-rw-r--r--libc/src/math/ufromfpxf128.h5
-rw-r--r--libc/src/math/ufromfpxf16.h5
-rw-r--r--libc/src/math/ufromfpxl.h6
842 files changed, 1684 insertions, 2727 deletions
diff --git a/libc/src/math/aarch64/ceil.cpp b/libc/src/math/aarch64/ceil.cpp
index 5bfd053..81cd950 100644
--- a/libc/src/math/aarch64/ceil.cpp
+++ b/libc/src/math/aarch64/ceil.cpp
@@ -8,9 +8,8 @@
#include "src/math/ceil.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ceil, (double x)) {
double y;
@@ -18,4 +17,4 @@ LLVM_LIBC_FUNCTION(double, ceil, (double x)) {
return y;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/aarch64/ceilf.cpp b/libc/src/math/aarch64/ceilf.cpp
index 2352245..3cbcc1f 100644
--- a/libc/src/math/aarch64/ceilf.cpp
+++ b/libc/src/math/aarch64/ceilf.cpp
@@ -8,9 +8,8 @@
#include "src/math/ceilf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ceilf, (float x)) {
float y;
@@ -18,4 +17,4 @@ LLVM_LIBC_FUNCTION(float, ceilf, (float x)) {
return y;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/aarch64/floor.cpp b/libc/src/math/aarch64/floor.cpp
index f9da52b..0e3d13a 100644
--- a/libc/src/math/aarch64/floor.cpp
+++ b/libc/src/math/aarch64/floor.cpp
@@ -8,9 +8,8 @@
#include "src/math/floor.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, floor, (double x)) {
double y;
@@ -18,4 +17,4 @@ LLVM_LIBC_FUNCTION(double, floor, (double x)) {
return y;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/aarch64/floorf.cpp b/libc/src/math/aarch64/floorf.cpp
index 980b3c5..8942a9e 100644
--- a/libc/src/math/aarch64/floorf.cpp
+++ b/libc/src/math/aarch64/floorf.cpp
@@ -8,9 +8,8 @@
#include "src/math/floorf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, floorf, (float x)) {
float y;
@@ -18,4 +17,4 @@ LLVM_LIBC_FUNCTION(float, floorf, (float x)) {
return y;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/aarch64/round.cpp b/libc/src/math/aarch64/round.cpp
index c85445a..8972c16 100644
--- a/libc/src/math/aarch64/round.cpp
+++ b/libc/src/math/aarch64/round.cpp
@@ -8,9 +8,8 @@
#include "src/math/round.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, round, (double x)) {
double y;
@@ -18,4 +17,4 @@ LLVM_LIBC_FUNCTION(double, round, (double x)) {
return y;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/aarch64/roundf.cpp b/libc/src/math/aarch64/roundf.cpp
index 0c7f764..8b3a9cf 100644
--- a/libc/src/math/aarch64/roundf.cpp
+++ b/libc/src/math/aarch64/roundf.cpp
@@ -8,9 +8,8 @@
#include "src/math/roundf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, roundf, (float x)) {
float y;
@@ -18,4 +17,4 @@ LLVM_LIBC_FUNCTION(float, roundf, (float x)) {
return y;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/aarch64/trunc.cpp b/libc/src/math/aarch64/trunc.cpp
index 1ef26f4..34ffd17 100644
--- a/libc/src/math/aarch64/trunc.cpp
+++ b/libc/src/math/aarch64/trunc.cpp
@@ -8,9 +8,8 @@
#include "src/math/trunc.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, trunc, (double x)) {
double y;
@@ -18,4 +17,4 @@ LLVM_LIBC_FUNCTION(double, trunc, (double x)) {
return y;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/aarch64/truncf.cpp b/libc/src/math/aarch64/truncf.cpp
index 0c64ef6..fc2426f 100644
--- a/libc/src/math/aarch64/truncf.cpp
+++ b/libc/src/math/aarch64/truncf.cpp
@@ -8,9 +8,8 @@
#include "src/math/truncf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, truncf, (float x)) {
float y;
@@ -18,4 +17,4 @@ LLVM_LIBC_FUNCTION(float, truncf, (float x)) {
return y;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/acos.h b/libc/src/math/acos.h
index fed59e2..da89a9d 100644
--- a/libc/src/math/acos.h
+++ b/libc/src/math/acos.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ACOS_H
#define LLVM_LIBC_SRC_MATH_ACOS_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double acos(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ACOS_H
diff --git a/libc/src/math/acosf.h b/libc/src/math/acosf.h
index 839f7df..3221efa 100644
--- a/libc/src/math/acosf.h
+++ b/libc/src/math/acosf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ACOSF_H
#define LLVM_LIBC_SRC_MATH_ACOSF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float acosf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ACOSF_H
diff --git a/libc/src/math/acosh.h b/libc/src/math/acosh.h
index 7d59b6c..a5bbd82 100644
--- a/libc/src/math/acosh.h
+++ b/libc/src/math/acosh.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ACOSH_H
#define LLVM_LIBC_SRC_MATH_ACOSH_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double acosh(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ACOSH_H
diff --git a/libc/src/math/acoshf.h b/libc/src/math/acoshf.h
index a6f08bd..aac43b4 100644
--- a/libc/src/math/acoshf.h
+++ b/libc/src/math/acoshf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ACOSHF_H
#define LLVM_LIBC_SRC_MATH_ACOSHF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float acoshf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ACOSHF_H
diff --git a/libc/src/math/amdgpu/acos.cpp b/libc/src/math/amdgpu/acos.cpp
index de870f2..b1e30fe 100644
--- a/libc/src/math/amdgpu/acos.cpp
+++ b/libc/src/math/amdgpu/acos.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, acos, (double x)) { return __ocml_acos_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/acosf.cpp b/libc/src/math/amdgpu/acosf.cpp
index 0a72a70..4c2dd4b 100644
--- a/libc/src/math/amdgpu/acosf.cpp
+++ b/libc/src/math/amdgpu/acosf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, acosf, (float x)) { return __ocml_acos_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/acosh.cpp b/libc/src/math/amdgpu/acosh.cpp
index 15c9734..dcdeeab 100644
--- a/libc/src/math/amdgpu/acosh.cpp
+++ b/libc/src/math/amdgpu/acosh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, acosh, (double x)) { return __ocml_acosh_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/acoshf.cpp b/libc/src/math/amdgpu/acoshf.cpp
index 79e71b0..52baa2e 100644
--- a/libc/src/math/amdgpu/acoshf.cpp
+++ b/libc/src/math/amdgpu/acoshf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, acoshf, (float x)) { return __ocml_acosh_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/asin.cpp b/libc/src/math/amdgpu/asin.cpp
index a79641e..835c317 100644
--- a/libc/src/math/amdgpu/asin.cpp
+++ b/libc/src/math/amdgpu/asin.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, asin, (double x)) { return __ocml_asin_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/asinf.cpp b/libc/src/math/amdgpu/asinf.cpp
index e70944a..72c45d5 100644
--- a/libc/src/math/amdgpu/asinf.cpp
+++ b/libc/src/math/amdgpu/asinf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, asinf, (float x)) { return __ocml_asin_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/asinh.cpp b/libc/src/math/amdgpu/asinh.cpp
index 64236859..7a9f7ea 100644
--- a/libc/src/math/amdgpu/asinh.cpp
+++ b/libc/src/math/amdgpu/asinh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, asinh, (double x)) { return __ocml_asinh_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/asinhf.cpp b/libc/src/math/amdgpu/asinhf.cpp
index bafa77f..28d6bde 100644
--- a/libc/src/math/amdgpu/asinhf.cpp
+++ b/libc/src/math/amdgpu/asinhf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, asinhf, (float x)) { return __ocml_asinh_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/atan.cpp b/libc/src/math/amdgpu/atan.cpp
index 49941e9..a1fa38b 100644
--- a/libc/src/math/amdgpu/atan.cpp
+++ b/libc/src/math/amdgpu/atan.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, atan, (double x)) { return __ocml_atan_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/atan2.cpp b/libc/src/math/amdgpu/atan2.cpp
index f590750..9cfdba7 100644
--- a/libc/src/math/amdgpu/atan2.cpp
+++ b/libc/src/math/amdgpu/atan2.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, atan2, (double x, double y)) {
return __ocml_atan2_f64(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/atan2f.cpp b/libc/src/math/amdgpu/atan2f.cpp
index 736c77d..ef56293 100644
--- a/libc/src/math/amdgpu/atan2f.cpp
+++ b/libc/src/math/amdgpu/atan2f.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, atan2f, (float x, float y)) {
return __ocml_atan2_f32(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/atanf.cpp b/libc/src/math/amdgpu/atanf.cpp
index ab1837d..bbcceca 100644
--- a/libc/src/math/amdgpu/atanf.cpp
+++ b/libc/src/math/amdgpu/atanf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, atanf, (float x)) { return __ocml_atan_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/atanh.cpp b/libc/src/math/amdgpu/atanh.cpp
index 091c155..ec46258 100644
--- a/libc/src/math/amdgpu/atanh.cpp
+++ b/libc/src/math/amdgpu/atanh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, atanh, (double x)) { return __ocml_atanh_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/atanhf.cpp b/libc/src/math/amdgpu/atanhf.cpp
index fa9cf39..2272693 100644
--- a/libc/src/math/amdgpu/atanhf.cpp
+++ b/libc/src/math/amdgpu/atanhf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, atanhf, (float x)) { return __ocml_atanh_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/ceil.cpp b/libc/src/math/amdgpu/ceil.cpp
index 8834c7b..ad1407d 100644
--- a/libc/src/math/amdgpu/ceil.cpp
+++ b/libc/src/math/amdgpu/ceil.cpp
@@ -8,10 +8,9 @@
#include "src/math/ceil.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ceil, (double x)) { return __builtin_ceil(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/ceilf.cpp b/libc/src/math/amdgpu/ceilf.cpp
index 5d26a30..c4fc58d 100644
--- a/libc/src/math/amdgpu/ceilf.cpp
+++ b/libc/src/math/amdgpu/ceilf.cpp
@@ -8,10 +8,9 @@
#include "src/math/ceilf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ceilf, (float x)) { return __builtin_ceilf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/copysign.cpp b/libc/src/math/amdgpu/copysign.cpp
index 06ef36f..6f804bd 100644
--- a/libc/src/math/amdgpu/copysign.cpp
+++ b/libc/src/math/amdgpu/copysign.cpp
@@ -8,12 +8,11 @@
#include "src/math/copysign.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, copysign, (double x, double y)) {
return __builtin_copysign(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/copysignf.cpp b/libc/src/math/amdgpu/copysignf.cpp
index aea94f3..4d7e132 100644
--- a/libc/src/math/amdgpu/copysignf.cpp
+++ b/libc/src/math/amdgpu/copysignf.cpp
@@ -8,12 +8,11 @@
#include "src/math/copysignf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, copysignf, (float x, float y)) {
return __builtin_copysignf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/cos.cpp b/libc/src/math/amdgpu/cos.cpp
index a4d4c94..68239d9 100644
--- a/libc/src/math/amdgpu/cos.cpp
+++ b/libc/src/math/amdgpu/cos.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, cos, (double x)) { return __ocml_cos_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/cosf.cpp b/libc/src/math/amdgpu/cosf.cpp
index 99ec118..a60e9ea 100644
--- a/libc/src/math/amdgpu/cosf.cpp
+++ b/libc/src/math/amdgpu/cosf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, cosf, (float x)) { return __ocml_cos_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/cosh.cpp b/libc/src/math/amdgpu/cosh.cpp
index d94d7af..b71df0c 100644
--- a/libc/src/math/amdgpu/cosh.cpp
+++ b/libc/src/math/amdgpu/cosh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, cosh, (double x)) { return __ocml_cosh_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/coshf.cpp b/libc/src/math/amdgpu/coshf.cpp
index 5b641be..699fb04 100644
--- a/libc/src/math/amdgpu/coshf.cpp
+++ b/libc/src/math/amdgpu/coshf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, coshf, (float x)) { return __ocml_cosh_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/declarations.h b/libc/src/math/amdgpu/declarations.h
index 98c14ee..81d788d 100644
--- a/libc/src/math/amdgpu/declarations.h
+++ b/libc/src/math/amdgpu/declarations.h
@@ -12,9 +12,8 @@
#include "platform.h"
#include "src/__support/GPU/utils.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
extern "C" {
float __ocml_acos_f32(float);
@@ -84,6 +83,6 @@ double __ocml_tgamma_f64(double);
float __ocml_tgamma_f32(float);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_AMDGPU_DECLARATIONS_H
diff --git a/libc/src/math/amdgpu/erf.cpp b/libc/src/math/amdgpu/erf.cpp
index 07ae268..7a46455 100644
--- a/libc/src/math/amdgpu/erf.cpp
+++ b/libc/src/math/amdgpu/erf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, erf, (double x)) { return __ocml_erf_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/erff.cpp b/libc/src/math/amdgpu/erff.cpp
index a4b7b27..1f77d08 100644
--- a/libc/src/math/amdgpu/erff.cpp
+++ b/libc/src/math/amdgpu/erff.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, erff, (float x)) { return __ocml_erf_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/exp.cpp b/libc/src/math/amdgpu/exp.cpp
index dae79be..d19c73d 100644
--- a/libc/src/math/amdgpu/exp.cpp
+++ b/libc/src/math/amdgpu/exp.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, exp, (double x)) { return __ocml_exp_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/exp10.cpp b/libc/src/math/amdgpu/exp10.cpp
index f13d218..17d8f33 100644
--- a/libc/src/math/amdgpu/exp10.cpp
+++ b/libc/src/math/amdgpu/exp10.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, exp10, (double x)) { return __ocml_exp10_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/exp10f.cpp b/libc/src/math/amdgpu/exp10f.cpp
index 883e734..ddab555 100644
--- a/libc/src/math/amdgpu/exp10f.cpp
+++ b/libc/src/math/amdgpu/exp10f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, exp10f, (float x)) { return __ocml_exp10_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/exp2.cpp b/libc/src/math/amdgpu/exp2.cpp
index fb336cf..dfbb1f8 100644
--- a/libc/src/math/amdgpu/exp2.cpp
+++ b/libc/src/math/amdgpu/exp2.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, exp2, (double x)) { return __ocml_exp2_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/exp2f.cpp b/libc/src/math/amdgpu/exp2f.cpp
index 77b4a9c..016dfe3 100644
--- a/libc/src/math/amdgpu/exp2f.cpp
+++ b/libc/src/math/amdgpu/exp2f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, exp2f, (float x)) { return __ocml_exp2_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/expf.cpp b/libc/src/math/amdgpu/expf.cpp
index 6c44aad..3339307 100644
--- a/libc/src/math/amdgpu/expf.cpp
+++ b/libc/src/math/amdgpu/expf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, expf, (float x)) { return __ocml_exp_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/expm1.cpp b/libc/src/math/amdgpu/expm1.cpp
index df3643f..d2ac28a 100644
--- a/libc/src/math/amdgpu/expm1.cpp
+++ b/libc/src/math/amdgpu/expm1.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, expm1, (double x)) { return __ocml_expm1_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/expm1f.cpp b/libc/src/math/amdgpu/expm1f.cpp
index 2409997..0ffe1a3 100644
--- a/libc/src/math/amdgpu/expm1f.cpp
+++ b/libc/src/math/amdgpu/expm1f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, expm1f, (float x)) { return __ocml_expm1_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fabs.cpp b/libc/src/math/amdgpu/fabs.cpp
index bb37596..c0d063d 100644
--- a/libc/src/math/amdgpu/fabs.cpp
+++ b/libc/src/math/amdgpu/fabs.cpp
@@ -8,10 +8,9 @@
#include "src/math/fabs.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fabs, (double x)) { return __builtin_fabs(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fabsf.cpp b/libc/src/math/amdgpu/fabsf.cpp
index 2698618..398ffd0 100644
--- a/libc/src/math/amdgpu/fabsf.cpp
+++ b/libc/src/math/amdgpu/fabsf.cpp
@@ -8,10 +8,9 @@
#include "src/math/fabsf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fabsf, (float x)) { return __builtin_fabsf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fdim.cpp b/libc/src/math/amdgpu/fdim.cpp
index 8ade0b2..f16942d 100644
--- a/libc/src/math/amdgpu/fdim.cpp
+++ b/libc/src/math/amdgpu/fdim.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fdim, (double x, double y)) {
return __ocml_fdim_f64(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fdimf.cpp b/libc/src/math/amdgpu/fdimf.cpp
index ed3855e..eccb441 100644
--- a/libc/src/math/amdgpu/fdimf.cpp
+++ b/libc/src/math/amdgpu/fdimf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fdimf, (float x, float y)) {
return __ocml_fdim_f32(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/floor.cpp b/libc/src/math/amdgpu/floor.cpp
index 564efa9..eada89c 100644
--- a/libc/src/math/amdgpu/floor.cpp
+++ b/libc/src/math/amdgpu/floor.cpp
@@ -8,10 +8,9 @@
#include "src/math/floor.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, floor, (double x)) { return __builtin_floor(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/floorf.cpp b/libc/src/math/amdgpu/floorf.cpp
index 6717c8f..a5611c5 100644
--- a/libc/src/math/amdgpu/floorf.cpp
+++ b/libc/src/math/amdgpu/floorf.cpp
@@ -8,10 +8,9 @@
#include "src/math/floorf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, floorf, (float x)) { return __builtin_floorf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fma.cpp b/libc/src/math/amdgpu/fma.cpp
index c4a117e..41a6ddf 100644
--- a/libc/src/math/amdgpu/fma.cpp
+++ b/libc/src/math/amdgpu/fma.cpp
@@ -8,12 +8,11 @@
#include "src/math/fma.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fma, (double x, double y, double z)) {
return __builtin_fma(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fmaf.cpp b/libc/src/math/amdgpu/fmaf.cpp
index c088bd5..c948e32 100644
--- a/libc/src/math/amdgpu/fmaf.cpp
+++ b/libc/src/math/amdgpu/fmaf.cpp
@@ -8,12 +8,11 @@
#include "src/math/fmaf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaf, (float x, float y, float z)) {
return __builtin_fmaf(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fmax.cpp b/libc/src/math/amdgpu/fmax.cpp
index 4740197..09f0f94 100644
--- a/libc/src/math/amdgpu/fmax.cpp
+++ b/libc/src/math/amdgpu/fmax.cpp
@@ -10,13 +10,12 @@
#include "src/__support/CPP/bit.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmax, (double x, double y)) {
return __builtin_fmax(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fmaxf.cpp b/libc/src/math/amdgpu/fmaxf.cpp
index 59ee825..5913a85 100644
--- a/libc/src/math/amdgpu/fmaxf.cpp
+++ b/libc/src/math/amdgpu/fmaxf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaxf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaxf, (float x, float y)) {
return __builtin_fmaxf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fmin.cpp b/libc/src/math/amdgpu/fmin.cpp
index 694eb66..0d6f352 100644
--- a/libc/src/math/amdgpu/fmin.cpp
+++ b/libc/src/math/amdgpu/fmin.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmin.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmin, (double x, double y)) {
return __builtin_fmin(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fminf.cpp b/libc/src/math/amdgpu/fminf.cpp
index 2060b71..42744abf 100644
--- a/libc/src/math/amdgpu/fminf.cpp
+++ b/libc/src/math/amdgpu/fminf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fminf, (float x, float y)) {
return __builtin_fminf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fmod.cpp b/libc/src/math/amdgpu/fmod.cpp
index 49d19c4d..0654cdd 100644
--- a/libc/src/math/amdgpu/fmod.cpp
+++ b/libc/src/math/amdgpu/fmod.cpp
@@ -8,12 +8,11 @@
#include "src/math/fmod.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmod, (double x, double y)) {
return __builtin_fmod(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/fmodf.cpp b/libc/src/math/amdgpu/fmodf.cpp
index 8fbcb0c..b689046 100644
--- a/libc/src/math/amdgpu/fmodf.cpp
+++ b/libc/src/math/amdgpu/fmodf.cpp
@@ -8,12 +8,11 @@
#include "src/math/fmodf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmodf, (float x, float y)) {
return __builtin_fmodf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/frexp.cpp b/libc/src/math/amdgpu/frexp.cpp
index 00e5187..0acf973 100644
--- a/libc/src/math/amdgpu/frexp.cpp
+++ b/libc/src/math/amdgpu/frexp.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, frexp, (double x, int *p)) {
return __builtin_frexp(x, p);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/frexpf.cpp b/libc/src/math/amdgpu/frexpf.cpp
index 2799e542..d870bf3 100644
--- a/libc/src/math/amdgpu/frexpf.cpp
+++ b/libc/src/math/amdgpu/frexpf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, frexpf, (float x, int *p)) {
return __builtin_frexpf(x, p);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/hypot.cpp b/libc/src/math/amdgpu/hypot.cpp
index dcf1152..ffc13504 100644
--- a/libc/src/math/amdgpu/hypot.cpp
+++ b/libc/src/math/amdgpu/hypot.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, hypot, (double x, double y)) {
return __ocml_hypot_f64(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/hypotf.cpp b/libc/src/math/amdgpu/hypotf.cpp
index 68ec659..811fc54 100644
--- a/libc/src/math/amdgpu/hypotf.cpp
+++ b/libc/src/math/amdgpu/hypotf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, hypotf, (float x, float y)) {
return __ocml_hypot_f32(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/ilogb.cpp b/libc/src/math/amdgpu/ilogb.cpp
index 37f24df..4479908 100644
--- a/libc/src/math/amdgpu/ilogb.cpp
+++ b/libc/src/math/amdgpu/ilogb.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogb, (double x)) { return __ocml_ilogb_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/ilogbf.cpp b/libc/src/math/amdgpu/ilogbf.cpp
index 56e74e1..cded285 100644
--- a/libc/src/math/amdgpu/ilogbf.cpp
+++ b/libc/src/math/amdgpu/ilogbf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogbf, (float x)) { return __ocml_ilogb_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/ldexp.cpp b/libc/src/math/amdgpu/ldexp.cpp
index 393eabb..70c5b0d 100644
--- a/libc/src/math/amdgpu/ldexp.cpp
+++ b/libc/src/math/amdgpu/ldexp.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ldexp, (double x, int y)) {
return __builtin_ldexp(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/ldexpf.cpp b/libc/src/math/amdgpu/ldexpf.cpp
index 970603d..8dc7c13 100644
--- a/libc/src/math/amdgpu/ldexpf.cpp
+++ b/libc/src/math/amdgpu/ldexpf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ldexpf, (float x, int y)) {
return __builtin_ldexpf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/llrint.cpp b/libc/src/math/amdgpu/llrint.cpp
index 21129fe..307420a 100644
--- a/libc/src/math/amdgpu/llrint.cpp
+++ b/libc/src/math/amdgpu/llrint.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrint, (double x)) {
return static_cast<long long>(__builtin_rint(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/llrintf.cpp b/libc/src/math/amdgpu/llrintf.cpp
index a6f9f43..2340499 100644
--- a/libc/src/math/amdgpu/llrintf.cpp
+++ b/libc/src/math/amdgpu/llrintf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrintf, (float x)) {
return static_cast<long long>(__builtin_rintf(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/log.cpp b/libc/src/math/amdgpu/log.cpp
index bd01adf..3f24895 100644
--- a/libc/src/math/amdgpu/log.cpp
+++ b/libc/src/math/amdgpu/log.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, log, (double x)) { return __ocml_log_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/log10.cpp b/libc/src/math/amdgpu/log10.cpp
index 75957c9..d522d5e 100644
--- a/libc/src/math/amdgpu/log10.cpp
+++ b/libc/src/math/amdgpu/log10.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, log10, (double x)) { return __ocml_log10_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/log10f.cpp b/libc/src/math/amdgpu/log10f.cpp
index 9c12d6b..47b9b16 100644
--- a/libc/src/math/amdgpu/log10f.cpp
+++ b/libc/src/math/amdgpu/log10f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, log10f, (float x)) { return __ocml_log10_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/log1p.cpp b/libc/src/math/amdgpu/log1p.cpp
index fc27519..fae60e4 100644
--- a/libc/src/math/amdgpu/log1p.cpp
+++ b/libc/src/math/amdgpu/log1p.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, log1p, (double x)) { return __ocml_log1p_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/log1pf.cpp b/libc/src/math/amdgpu/log1pf.cpp
index b2d26fb..e7b17721 100644
--- a/libc/src/math/amdgpu/log1pf.cpp
+++ b/libc/src/math/amdgpu/log1pf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, log1pf, (float x)) { return __ocml_log1p_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/log2.cpp b/libc/src/math/amdgpu/log2.cpp
index 73f34b6..9d84f62 100644
--- a/libc/src/math/amdgpu/log2.cpp
+++ b/libc/src/math/amdgpu/log2.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, log2, (double x)) { return __ocml_log2_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/log2f.cpp b/libc/src/math/amdgpu/log2f.cpp
index 3b62eda..7742a61 100644
--- a/libc/src/math/amdgpu/log2f.cpp
+++ b/libc/src/math/amdgpu/log2f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, log2f, (float x)) { return __ocml_log2_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/logb.cpp b/libc/src/math/amdgpu/logb.cpp
index 4b68e28..1344fbb 100644
--- a/libc/src/math/amdgpu/logb.cpp
+++ b/libc/src/math/amdgpu/logb.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, logb, (double x)) { return __ocml_logb_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/logbf.cpp b/libc/src/math/amdgpu/logbf.cpp
index bc7c462..fdb493f 100644
--- a/libc/src/math/amdgpu/logbf.cpp
+++ b/libc/src/math/amdgpu/logbf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, logbf, (float x)) { return __ocml_logb_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/logf.cpp b/libc/src/math/amdgpu/logf.cpp
index 1792567..d4d4b26 100644
--- a/libc/src/math/amdgpu/logf.cpp
+++ b/libc/src/math/amdgpu/logf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, logf, (float x)) { return __ocml_log_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/lrint.cpp b/libc/src/math/amdgpu/lrint.cpp
index 715b552..b335b4f 100644
--- a/libc/src/math/amdgpu/lrint.cpp
+++ b/libc/src/math/amdgpu/lrint.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrint, (double x)) {
return static_cast<long>(__builtin_rint(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/lrintf.cpp b/libc/src/math/amdgpu/lrintf.cpp
index 3870638..7959e76 100644
--- a/libc/src/math/amdgpu/lrintf.cpp
+++ b/libc/src/math/amdgpu/lrintf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrintf, (float x)) {
return static_cast<long>(__builtin_rintf(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/nearbyint.cpp b/libc/src/math/amdgpu/nearbyint.cpp
index 7d78c72..9c7b600 100644
--- a/libc/src/math/amdgpu/nearbyint.cpp
+++ b/libc/src/math/amdgpu/nearbyint.cpp
@@ -8,12 +8,11 @@
#include "src/math/nearbyint.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nearbyint, (double x)) {
return __builtin_nearbyint(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/nearbyintf.cpp b/libc/src/math/amdgpu/nearbyintf.cpp
index 4bd20dc..7fbe9f4 100644
--- a/libc/src/math/amdgpu/nearbyintf.cpp
+++ b/libc/src/math/amdgpu/nearbyintf.cpp
@@ -8,12 +8,11 @@
#include "src/math/nearbyintf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nearbyintf, (float x)) {
return __builtin_nearbyintf(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/nextafter.cpp b/libc/src/math/amdgpu/nextafter.cpp
index 226b8a5..5c74ef1 100644
--- a/libc/src/math/amdgpu/nextafter.cpp
+++ b/libc/src/math/amdgpu/nextafter.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nextafter, (double x, double y)) {
return __ocml_nextafter_f64(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/nextafterf.cpp b/libc/src/math/amdgpu/nextafterf.cpp
index 7bed2c1..a97b990 100644
--- a/libc/src/math/amdgpu/nextafterf.cpp
+++ b/libc/src/math/amdgpu/nextafterf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nextafterf, (float x, float y)) {
return __ocml_nextafter_f32(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/platform.h b/libc/src/math/amdgpu/platform.h
index 472a983..29d6cac 100644
--- a/libc/src/math/amdgpu/platform.h
+++ b/libc/src/math/amdgpu/platform.h
@@ -10,11 +10,10 @@
#define LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
#include "src/__support/macros/attributes.h"
-#include "src/__support/macros/config.h"
#include <stdint.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// The ROCm device library uses control globals to alter codegen for the
// different targets. To avoid needing to link them in manually we simply
@@ -50,6 +49,6 @@ extern const LIBC_INLINE_VAR uint32_t __oclc_ISA_version = 9000;
[[gnu::alias("__oclc_finite_only_opt")]] const uint8_t __oclc_finite_only_opt__;
[[gnu::alias("__oclc_ISA_version")]] const uint32_t __oclc_ISA_version__;
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_AMDGPU_PLATFORM_H
diff --git a/libc/src/math/amdgpu/pow.cpp b/libc/src/math/amdgpu/pow.cpp
index 979ad6c..e5056f6 100644
--- a/libc/src/math/amdgpu/pow.cpp
+++ b/libc/src/math/amdgpu/pow.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, pow, (double x, double y)) {
return __ocml_pow_f64(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/powf.cpp b/libc/src/math/amdgpu/powf.cpp
index 6931934..6114bcc 100644
--- a/libc/src/math/amdgpu/powf.cpp
+++ b/libc/src/math/amdgpu/powf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, powf, (float x, float y)) {
return __ocml_pow_f32(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/powi.cpp b/libc/src/math/amdgpu/powi.cpp
index 6b31b47..b13cb52 100644
--- a/libc/src/math/amdgpu/powi.cpp
+++ b/libc/src/math/amdgpu/powi.cpp
@@ -8,14 +8,13 @@
#include "src/math/powi.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "declarations.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, powi, (double x, int y)) {
return __ocml_pown_f64(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/powif.cpp b/libc/src/math/amdgpu/powif.cpp
index 94f8a91..7682f0e 100644
--- a/libc/src/math/amdgpu/powif.cpp
+++ b/libc/src/math/amdgpu/powif.cpp
@@ -8,14 +8,13 @@
#include "src/math/powif.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "declarations.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, powif, (float x, int y)) {
return __ocml_pown_f32(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/remainder.cpp b/libc/src/math/amdgpu/remainder.cpp
index 9027204..89b235f 100644
--- a/libc/src/math/amdgpu/remainder.cpp
+++ b/libc/src/math/amdgpu/remainder.cpp
@@ -8,12 +8,11 @@
#include "src/math/remainder.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, remainder, (double x, double y)) {
return __builtin_remainder(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/remainderf.cpp b/libc/src/math/amdgpu/remainderf.cpp
index 50df3b2..9fee6f8 100644
--- a/libc/src/math/amdgpu/remainderf.cpp
+++ b/libc/src/math/amdgpu/remainderf.cpp
@@ -8,12 +8,11 @@
#include "src/math/remainderf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, remainderf, (float x, float y)) {
return __builtin_remainderf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/remquo.cpp b/libc/src/math/amdgpu/remquo.cpp
index 42c908e..d8074a9 100644
--- a/libc/src/math/amdgpu/remquo.cpp
+++ b/libc/src/math/amdgpu/remquo.cpp
@@ -10,9 +10,8 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, remquo, (double x, double y, int *quo)) {
int tmp;
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(double, remquo, (double x, double y, int *quo)) {
return r;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/remquof.cpp b/libc/src/math/amdgpu/remquof.cpp
index 854d3bf..b6584df 100644
--- a/libc/src/math/amdgpu/remquof.cpp
+++ b/libc/src/math/amdgpu/remquof.cpp
@@ -10,9 +10,8 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, remquof, (float x, float y, int *quo)) {
int tmp;
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(float, remquof, (float x, float y, int *quo)) {
return r;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/rint.cpp b/libc/src/math/amdgpu/rint.cpp
index ac6837a..44d494a 100644
--- a/libc/src/math/amdgpu/rint.cpp
+++ b/libc/src/math/amdgpu/rint.cpp
@@ -8,10 +8,9 @@
#include "src/math/rint.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, rint, (double x)) { return __builtin_rint(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/rintf.cpp b/libc/src/math/amdgpu/rintf.cpp
index 9409347..daf98d9 100644
--- a/libc/src/math/amdgpu/rintf.cpp
+++ b/libc/src/math/amdgpu/rintf.cpp
@@ -8,10 +8,9 @@
#include "src/math/rintf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, rintf, (float x)) { return __builtin_rintf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/round.cpp b/libc/src/math/amdgpu/round.cpp
index 0d2765f..9d8b558 100644
--- a/libc/src/math/amdgpu/round.cpp
+++ b/libc/src/math/amdgpu/round.cpp
@@ -8,10 +8,9 @@
#include "src/math/round.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, round, (double x)) { return __builtin_round(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/roundf.cpp b/libc/src/math/amdgpu/roundf.cpp
index 86e8ba3..8743e4e 100644
--- a/libc/src/math/amdgpu/roundf.cpp
+++ b/libc/src/math/amdgpu/roundf.cpp
@@ -8,10 +8,9 @@
#include "src/math/roundf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, roundf, (float x)) { return __builtin_roundf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/scalbn.cpp b/libc/src/math/amdgpu/scalbn.cpp
index 05bbbc6..c2a43e0 100644
--- a/libc/src/math/amdgpu/scalbn.cpp
+++ b/libc/src/math/amdgpu/scalbn.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, scalbn, (double x, int y)) {
return __builtin_amdgcn_ldexp(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/scalbnf.cpp b/libc/src/math/amdgpu/scalbnf.cpp
index f0e9e47..63de26c 100644
--- a/libc/src/math/amdgpu/scalbnf.cpp
+++ b/libc/src/math/amdgpu/scalbnf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, scalbnf, (float x, int y)) {
return __builtin_amdgcn_ldexpf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/sin.cpp b/libc/src/math/amdgpu/sin.cpp
index f3d88af..dbc29a7 100644
--- a/libc/src/math/amdgpu/sin.cpp
+++ b/libc/src/math/amdgpu/sin.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, sin, (double x)) { return __ocml_sin_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/sincos.cpp b/libc/src/math/amdgpu/sincos.cpp
index 304ac0c..7cdd0d1 100644
--- a/libc/src/math/amdgpu/sincos.cpp
+++ b/libc/src/math/amdgpu/sincos.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(void, sincos, (double x, double *sinptr, double *cosptr)) {
*sinptr = __ocml_sincos_f64(x, cosptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/sincosf.cpp b/libc/src/math/amdgpu/sincosf.cpp
index 1c4e9c6..37a5e2a 100644
--- a/libc/src/math/amdgpu/sincosf.cpp
+++ b/libc/src/math/amdgpu/sincosf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(void, sincosf, (float x, float *sinptr, float *cosptr)) {
*sinptr = __ocml_sincos_f32(x, cosptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/sinf.cpp b/libc/src/math/amdgpu/sinf.cpp
index c6d64a6..cda2c62 100644
--- a/libc/src/math/amdgpu/sinf.cpp
+++ b/libc/src/math/amdgpu/sinf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sinf, (float x)) { return __ocml_sin_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/sinh.cpp b/libc/src/math/amdgpu/sinh.cpp
index 26314f4..66cacd1 100644
--- a/libc/src/math/amdgpu/sinh.cpp
+++ b/libc/src/math/amdgpu/sinh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, sinh, (double x)) { return __ocml_sinh_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/sinhf.cpp b/libc/src/math/amdgpu/sinhf.cpp
index a4eb8e1..5d3f5ea 100644
--- a/libc/src/math/amdgpu/sinhf.cpp
+++ b/libc/src/math/amdgpu/sinhf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sinhf, (float x)) { return __ocml_sinh_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/sqrt.cpp b/libc/src/math/amdgpu/sqrt.cpp
index ed83b6e..60ca5af 100644
--- a/libc/src/math/amdgpu/sqrt.cpp
+++ b/libc/src/math/amdgpu/sqrt.cpp
@@ -8,10 +8,9 @@
#include "src/math/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, sqrt, (double x)) { return __builtin_sqrt(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/sqrtf.cpp b/libc/src/math/amdgpu/sqrtf.cpp
index 851922c..e17f942 100644
--- a/libc/src/math/amdgpu/sqrtf.cpp
+++ b/libc/src/math/amdgpu/sqrtf.cpp
@@ -8,10 +8,9 @@
#include "src/math/sqrtf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sqrtf, (float x)) { return __builtin_sqrtf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/tan.cpp b/libc/src/math/amdgpu/tan.cpp
index c946dc2..6121a93 100644
--- a/libc/src/math/amdgpu/tan.cpp
+++ b/libc/src/math/amdgpu/tan.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, tan, (double x)) { return __ocml_tan_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/tanf.cpp b/libc/src/math/amdgpu/tanf.cpp
index 8c93fc4..fdd83ee 100644
--- a/libc/src/math/amdgpu/tanf.cpp
+++ b/libc/src/math/amdgpu/tanf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, tanf, (float x)) { return __ocml_tan_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/tanh.cpp b/libc/src/math/amdgpu/tanh.cpp
index 834353e..25a9c29 100644
--- a/libc/src/math/amdgpu/tanh.cpp
+++ b/libc/src/math/amdgpu/tanh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, tanh, (double x)) { return __ocml_tanh_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/tanhf.cpp b/libc/src/math/amdgpu/tanhf.cpp
index 5029596..a4bfd20 100644
--- a/libc/src/math/amdgpu/tanhf.cpp
+++ b/libc/src/math/amdgpu/tanhf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, tanhf, (float x)) { return __ocml_tanh_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/tgamma.cpp b/libc/src/math/amdgpu/tgamma.cpp
index 485a6a3..10f58d5 100644
--- a/libc/src/math/amdgpu/tgamma.cpp
+++ b/libc/src/math/amdgpu/tgamma.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, tgamma, (double x)) { return __ocml_tgamma_f64(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/tgammaf.cpp b/libc/src/math/amdgpu/tgammaf.cpp
index e48a486..e7d2205 100644
--- a/libc/src/math/amdgpu/tgammaf.cpp
+++ b/libc/src/math/amdgpu/tgammaf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, tgammaf, (float x)) { return __ocml_tgamma_f32(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/trunc.cpp b/libc/src/math/amdgpu/trunc.cpp
index f60caa2..773600f 100644
--- a/libc/src/math/amdgpu/trunc.cpp
+++ b/libc/src/math/amdgpu/trunc.cpp
@@ -8,10 +8,9 @@
#include "src/math/trunc.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, trunc, (double x)) { return __builtin_trunc(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/amdgpu/truncf.cpp b/libc/src/math/amdgpu/truncf.cpp
index a6c9b8f..534797a 100644
--- a/libc/src/math/amdgpu/truncf.cpp
+++ b/libc/src/math/amdgpu/truncf.cpp
@@ -8,10 +8,9 @@
#include "src/math/truncf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, truncf, (float x)) { return __builtin_truncf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/asin.h b/libc/src/math/asin.h
index 6516e40..e443776 100644
--- a/libc/src/math/asin.h
+++ b/libc/src/math/asin.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ASIN_H
#define LLVM_LIBC_SRC_MATH_ASIN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double asin(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ASIN_H
diff --git a/libc/src/math/asinf.h b/libc/src/math/asinf.h
index ed0b8ab..227f10b 100644
--- a/libc/src/math/asinf.h
+++ b/libc/src/math/asinf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ASINF_H
#define LLVM_LIBC_SRC_MATH_ASINF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float asinf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ASINF_H
diff --git a/libc/src/math/asinh.h b/libc/src/math/asinh.h
index 45fbc7c..418bf96 100644
--- a/libc/src/math/asinh.h
+++ b/libc/src/math/asinh.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ASINH_H
#define LLVM_LIBC_SRC_MATH_ASINH_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double asinh(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ASINH_H
diff --git a/libc/src/math/asinhf.h b/libc/src/math/asinhf.h
index d5787ee..32a697c 100644
--- a/libc/src/math/asinhf.h
+++ b/libc/src/math/asinhf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ASINHF_H
#define LLVM_LIBC_SRC_MATH_ASINHF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float asinhf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ASINHF_H
diff --git a/libc/src/math/atan.h b/libc/src/math/atan.h
index a9ba28a..bcbc97a 100644
--- a/libc/src/math/atan.h
+++ b/libc/src/math/atan.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ATAN_H
#define LLVM_LIBC_SRC_MATH_ATAN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double atan(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ATAN_H
diff --git a/libc/src/math/atan2.h b/libc/src/math/atan2.h
index 7bb2f96..024bbfb 100644
--- a/libc/src/math/atan2.h
+++ b/libc/src/math/atan2.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ATAN2_H
#define LLVM_LIBC_SRC_MATH_ATAN2_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double atan2(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ATAN2_H
diff --git a/libc/src/math/atan2f.h b/libc/src/math/atan2f.h
index ed60383..25d2de0 100644
--- a/libc/src/math/atan2f.h
+++ b/libc/src/math/atan2f.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ATAN2F_H
#define LLVM_LIBC_SRC_MATH_ATAN2F_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float atan2f(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ATAN2F_H
diff --git a/libc/src/math/atanf.h b/libc/src/math/atanf.h
index 0be32f3..bb4c5a8b 100644
--- a/libc/src/math/atanf.h
+++ b/libc/src/math/atanf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ATANF_H
#define LLVM_LIBC_SRC_MATH_ATANF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float atanf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ATANF_H
diff --git a/libc/src/math/atanh.h b/libc/src/math/atanh.h
index 485c824..dc84d07 100644
--- a/libc/src/math/atanh.h
+++ b/libc/src/math/atanh.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ATANH_H
#define LLVM_LIBC_SRC_MATH_ATANH_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double atanh(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ATANH_H
diff --git a/libc/src/math/atanhf.h b/libc/src/math/atanhf.h
index 0a4d899..589ffd0 100644
--- a/libc/src/math/atanhf.h
+++ b/libc/src/math/atanhf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ATANHF_H
#define LLVM_LIBC_SRC_MATH_ATANHF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float atanhf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ATANHF_H
diff --git a/libc/src/math/canonicalize.h b/libc/src/math/canonicalize.h
index 6b6b1e0..b7b5959 100644
--- a/libc/src/math/canonicalize.h
+++ b/libc/src/math/canonicalize.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_CANONICALIZE_H
#define LLVM_LIBC_SRC_MATH_CANONICALIZE_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int canonicalize(double *cx, const double *x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CANONICALIZE_H
diff --git a/libc/src/math/canonicalizef.h b/libc/src/math/canonicalizef.h
index 94bc48b..556607f 100644
--- a/libc/src/math/canonicalizef.h
+++ b/libc/src/math/canonicalizef.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_CANONICALIZEF_H
#define LLVM_LIBC_SRC_MATH_CANONICALIZEF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int canonicalizef(float *cx, const float *x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CANONICALIZEF_H
diff --git a/libc/src/math/canonicalizef128.h b/libc/src/math/canonicalizef128.h
index eeeb7e3f..6db8009 100644
--- a/libc/src/math/canonicalizef128.h
+++ b/libc/src/math/canonicalizef128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_CANONICALIZEF128_H
#define LLVM_LIBC_SRC_MATH_CANONICALIZEF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int canonicalizef128(float128 *cx, const float128 *x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CANONICALIZEF128_H
diff --git a/libc/src/math/canonicalizef16.h b/libc/src/math/canonicalizef16.h
index c47cec6..102af01 100644
--- a/libc/src/math/canonicalizef16.h
+++ b/libc/src/math/canonicalizef16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_CANONICALIZEF16_H
#define LLVM_LIBC_SRC_MATH_CANONICALIZEF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int canonicalizef16(float16 *cx, const float16 *x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CANONICALIZEF16_H
diff --git a/libc/src/math/canonicalizel.h b/libc/src/math/canonicalizel.h
index 1c6b9e6..1cab29e 100644
--- a/libc/src/math/canonicalizel.h
+++ b/libc/src/math/canonicalizel.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_CANONICALIZEL_H
#define LLVM_LIBC_SRC_MATH_CANONICALIZEL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int canonicalizel(long double *cx, const long double *x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CANONICALIZEL_H
diff --git a/libc/src/math/cbrtf.h b/libc/src/math/cbrtf.h
index 1187efb..7474459 100644
--- a/libc/src/math/cbrtf.h
+++ b/libc/src/math/cbrtf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_CBRTF_H
#define LLVM_LIBC_SRC_MATH_CBRTF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float cbrtf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CBRTF_H
diff --git a/libc/src/math/ceil.h b/libc/src/math/ceil.h
index 4cf262e..c424dee 100644
--- a/libc/src/math/ceil.h
+++ b/libc/src/math/ceil.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_CEIL_H
#define LLVM_LIBC_SRC_MATH_CEIL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double ceil(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CEIL_H
diff --git a/libc/src/math/ceilf.h b/libc/src/math/ceilf.h
index 359465c..0fa3aa8b 100644
--- a/libc/src/math/ceilf.h
+++ b/libc/src/math/ceilf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_CEILF_H
#define LLVM_LIBC_SRC_MATH_CEILF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float ceilf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CEILF_H
diff --git a/libc/src/math/ceilf128.h b/libc/src/math/ceilf128.h
index 211b813..b0c4020 100644
--- a/libc/src/math/ceilf128.h
+++ b/libc/src/math/ceilf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_CEILF128_H
#define LLVM_LIBC_SRC_MATH_CEILF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 ceilf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CEILF128_H
diff --git a/libc/src/math/ceilf16.h b/libc/src/math/ceilf16.h
index b0e988b..36a6bd2 100644
--- a/libc/src/math/ceilf16.h
+++ b/libc/src/math/ceilf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_CEILF16_H
#define LLVM_LIBC_SRC_MATH_CEILF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 ceilf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CEILF16_H
diff --git a/libc/src/math/ceill.h b/libc/src/math/ceill.h
index ce79cb5..fbe6563 100644
--- a/libc/src/math/ceill.h
+++ b/libc/src/math/ceill.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_CEILL_H
#define LLVM_LIBC_SRC_MATH_CEILL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double ceill(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_CEILL_H
diff --git a/libc/src/math/copysign.h b/libc/src/math/copysign.h
index a115f12..004240f 100644
--- a/libc/src/math/copysign.h
+++ b/libc/src/math/copysign.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_COPYSIGN_H
#define LLVM_LIBC_SRC_MATH_COPYSIGN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double copysign(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COPYSIGN_H
diff --git a/libc/src/math/copysignf.h b/libc/src/math/copysignf.h
index 3877f7b..503e7cb 100644
--- a/libc/src/math/copysignf.h
+++ b/libc/src/math/copysignf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_COPYSIGNF_H
#define LLVM_LIBC_SRC_MATH_COPYSIGNF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float copysignf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COPYSIGNF_H
diff --git a/libc/src/math/copysignf128.h b/libc/src/math/copysignf128.h
index b001b8e..06c1949 100644
--- a/libc/src/math/copysignf128.h
+++ b/libc/src/math/copysignf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_COPYSIGNF128_H
#define LLVM_LIBC_SRC_MATH_COPYSIGNF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 copysignf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COPYSIGNF128_H
diff --git a/libc/src/math/copysignf16.h b/libc/src/math/copysignf16.h
index 0b0e486..3ddde9f 100644
--- a/libc/src/math/copysignf16.h
+++ b/libc/src/math/copysignf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_COPYSIGNF16_H
#define LLVM_LIBC_SRC_MATH_COPYSIGNF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 copysignf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COPYSIGNF16_H
diff --git a/libc/src/math/copysignl.h b/libc/src/math/copysignl.h
index 6c5e8fb..8b8b37b 100644
--- a/libc/src/math/copysignl.h
+++ b/libc/src/math/copysignl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_COPYSIGNL_H
#define LLVM_LIBC_SRC_MATH_COPYSIGNL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double copysignl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COPYSIGNL_H
diff --git a/libc/src/math/cos.h b/libc/src/math/cos.h
index 7c1a88f..aa97ccf 100644
--- a/libc/src/math/cos.h
+++ b/libc/src/math/cos.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_COS_H
#define LLVM_LIBC_SRC_MATH_COS_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double cos(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COS_H
diff --git a/libc/src/math/cosf.h b/libc/src/math/cosf.h
index 7942eaf..158f311 100644
--- a/libc/src/math/cosf.h
+++ b/libc/src/math/cosf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_COSF_H
#define LLVM_LIBC_SRC_MATH_COSF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float cosf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COSF_H
diff --git a/libc/src/math/cosh.h b/libc/src/math/cosh.h
index 4a4be4a..f0c8b6b 100644
--- a/libc/src/math/cosh.h
+++ b/libc/src/math/cosh.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_COSH_H
#define LLVM_LIBC_SRC_MATH_COSH_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double cosh(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COSH_H
diff --git a/libc/src/math/coshf.h b/libc/src/math/coshf.h
index 28abada..c470a8c 100644
--- a/libc/src/math/coshf.h
+++ b/libc/src/math/coshf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_COSHF_H
#define LLVM_LIBC_SRC_MATH_COSHF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float coshf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COSHF_H
diff --git a/libc/src/math/cospif.h b/libc/src/math/cospif.h
index fbe011f..50935bc 100644
--- a/libc/src/math/cospif.h
+++ b/libc/src/math/cospif.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_COSPIF_H
#define LLVM_LIBC_SRC_MATH_COSPIF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float cospif(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_COSPIF_H
diff --git a/libc/src/math/erf.h b/libc/src/math/erf.h
index bd16abc..a38c9241 100644
--- a/libc/src/math/erf.h
+++ b/libc/src/math/erf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ERF_H
#define LLVM_LIBC_SRC_MATH_ERF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double erf(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ERF_H
diff --git a/libc/src/math/erff.h b/libc/src/math/erff.h
index 24cfa83..f6c56c7 100644
--- a/libc/src/math/erff.h
+++ b/libc/src/math/erff.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ERFF_H
#define LLVM_LIBC_SRC_MATH_ERFF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float erff(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ERFF_H
diff --git a/libc/src/math/exp.h b/libc/src/math/exp.h
index 1e1e672..6d60a3b 100644
--- a/libc/src/math/exp.h
+++ b/libc/src/math/exp.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXP_H
#define LLVM_LIBC_SRC_MATH_EXP_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double exp(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXP_H
diff --git a/libc/src/math/exp10.h b/libc/src/math/exp10.h
index 06e9be5..081b419 100644
--- a/libc/src/math/exp10.h
+++ b/libc/src/math/exp10.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXP10_H
#define LLVM_LIBC_SRC_MATH_EXP10_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double exp10(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXP10_H
diff --git a/libc/src/math/exp10f.h b/libc/src/math/exp10f.h
index 0e53742..4df5c46 100644
--- a/libc/src/math/exp10f.h
+++ b/libc/src/math/exp10f.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXP10F_H
#define LLVM_LIBC_SRC_MATH_EXP10F_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float exp10f(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXP10F_H
diff --git a/libc/src/math/exp2.h b/libc/src/math/exp2.h
index 50b11ee..2feccf6 100644
--- a/libc/src/math/exp2.h
+++ b/libc/src/math/exp2.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXP2_H
#define LLVM_LIBC_SRC_MATH_EXP2_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double exp2(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXP2_H
diff --git a/libc/src/math/exp2f.h b/libc/src/math/exp2f.h
index 994371c..13af54c 100644
--- a/libc/src/math/exp2f.h
+++ b/libc/src/math/exp2f.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXP2F_H
#define LLVM_LIBC_SRC_MATH_EXP2F_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float exp2f(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXP2F_H
diff --git a/libc/src/math/exp2m1f.h b/libc/src/math/exp2m1f.h
index 71b1588..0eaf6b0 100644
--- a/libc/src/math/exp2m1f.h
+++ b/libc/src/math/exp2m1f.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXP2M1F_H
#define LLVM_LIBC_SRC_MATH_EXP2M1F_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float exp2m1f(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXP2M1F_H
diff --git a/libc/src/math/expf.h b/libc/src/math/expf.h
index e82b762..38837cba 100644
--- a/libc/src/math/expf.h
+++ b/libc/src/math/expf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXPF_H
#define LLVM_LIBC_SRC_MATH_EXPF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float expf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXPF_H
diff --git a/libc/src/math/expm1.h b/libc/src/math/expm1.h
index 216e8b8..5240929 100644
--- a/libc/src/math/expm1.h
+++ b/libc/src/math/expm1.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXPM1_H
#define LLVM_LIBC_SRC_MATH_EXPM1_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double expm1(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXPM1_H
diff --git a/libc/src/math/expm1f.h b/libc/src/math/expm1f.h
index e3539c5..359cbee 100644
--- a/libc/src/math/expm1f.h
+++ b/libc/src/math/expm1f.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_EXPM1F_H
#define LLVM_LIBC_SRC_MATH_EXPM1F_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float expm1f(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_EXPM1F_H
diff --git a/libc/src/math/f16add.h b/libc/src/math/f16add.h
index 1e794fd..763a078 100644
--- a/libc/src/math/f16add.h
+++ b/libc/src/math/f16add.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16ADD_H
#define LLVM_LIBC_SRC_MATH_F16ADD_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16add(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16ADD_H
diff --git a/libc/src/math/f16addf.h b/libc/src/math/f16addf.h
index d9cd0cf..31d0e78 100644
--- a/libc/src/math/f16addf.h
+++ b/libc/src/math/f16addf.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16ADDF_H
#define LLVM_LIBC_SRC_MATH_F16ADDF_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16addf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16ADDF_H
diff --git a/libc/src/math/f16addf128.h b/libc/src/math/f16addf128.h
index aabb5eb..284ce1d 100644
--- a/libc/src/math/f16addf128.h
+++ b/libc/src/math/f16addf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16ADDF128_H
#define LLVM_LIBC_SRC_MATH_F16ADDF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16addf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16ADDF128_H
diff --git a/libc/src/math/f16addl.h b/libc/src/math/f16addl.h
index b39a290..6a7267a 100644
--- a/libc/src/math/f16addl.h
+++ b/libc/src/math/f16addl.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16ADDL_H
#define LLVM_LIBC_SRC_MATH_F16ADDL_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16addl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16ADDL_H
diff --git a/libc/src/math/f16div.h b/libc/src/math/f16div.h
index 4e1724f..3807bc0 100644
--- a/libc/src/math/f16div.h
+++ b/libc/src/math/f16div.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16DIV_H
#define LLVM_LIBC_SRC_MATH_F16DIV_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16div(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16DIV_H
diff --git a/libc/src/math/f16divf.h b/libc/src/math/f16divf.h
index 351cffd..a3359d9 100644
--- a/libc/src/math/f16divf.h
+++ b/libc/src/math/f16divf.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16DIVF_H
#define LLVM_LIBC_SRC_MATH_F16DIVF_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16divf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16DIVF_H
diff --git a/libc/src/math/f16divf128.h b/libc/src/math/f16divf128.h
index b515419..2f63535 100644
--- a/libc/src/math/f16divf128.h
+++ b/libc/src/math/f16divf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16DIVF128_H
#define LLVM_LIBC_SRC_MATH_F16DIVF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16divf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16DIVF128_H
diff --git a/libc/src/math/f16divl.h b/libc/src/math/f16divl.h
index 61a3774..ad99991 100644
--- a/libc/src/math/f16divl.h
+++ b/libc/src/math/f16divl.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16DIVL_H
#define LLVM_LIBC_SRC_MATH_F16DIVL_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16divl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16DIVL_H
diff --git a/libc/src/math/f16fma.h b/libc/src/math/f16fma.h
index d2628e3..d9505f8 100644
--- a/libc/src/math/f16fma.h
+++ b/libc/src/math/f16fma.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16FMA_H
#define LLVM_LIBC_SRC_MATH_F16FMA_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16fma(double x, double y, double z);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16FMA_H
diff --git a/libc/src/math/f16fmaf.h b/libc/src/math/f16fmaf.h
index 627afae..d92cb43 100644
--- a/libc/src/math/f16fmaf.h
+++ b/libc/src/math/f16fmaf.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16FMAF_H
#define LLVM_LIBC_SRC_MATH_F16FMAF_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16fmaf(float x, float y, float z);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16FMAF_H
diff --git a/libc/src/math/f16fmaf128.h b/libc/src/math/f16fmaf128.h
index c8f81d4..9203b4d 100644
--- a/libc/src/math/f16fmaf128.h
+++ b/libc/src/math/f16fmaf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16FMAF128_H
#define LLVM_LIBC_SRC_MATH_F16FMAF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16fmaf128(float128 x, float128 y, float128 z);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16FMAF128_H
diff --git a/libc/src/math/f16fmal.h b/libc/src/math/f16fmal.h
index ff35f63..6f5dd33 100644
--- a/libc/src/math/f16fmal.h
+++ b/libc/src/math/f16fmal.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16FMAL_H
#define LLVM_LIBC_SRC_MATH_F16FMAL_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16fmal(long double x, long double y, long double z);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16FMAL_H
diff --git a/libc/src/math/f16sqrt.h b/libc/src/math/f16sqrt.h
index 27c6f34..f1134ac 100644
--- a/libc/src/math/f16sqrt.h
+++ b/libc/src/math/f16sqrt.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16SQRT_H
#define LLVM_LIBC_SRC_MATH_F16SQRT_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16sqrt(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16SQRT_H
diff --git a/libc/src/math/f16sqrtf.h b/libc/src/math/f16sqrtf.h
index 0471b02..197ebe6 100644
--- a/libc/src/math/f16sqrtf.h
+++ b/libc/src/math/f16sqrtf.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16SQRTF_H
#define LLVM_LIBC_SRC_MATH_F16SQRTF_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16sqrtf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16SQRTF_H
diff --git a/libc/src/math/f16sqrtf128.h b/libc/src/math/f16sqrtf128.h
index 713bbe1..61a6ce9 100644
--- a/libc/src/math/f16sqrtf128.h
+++ b/libc/src/math/f16sqrtf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16SQRTF128_H
#define LLVM_LIBC_SRC_MATH_F16SQRTF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16sqrtf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16SQRTF128_H
diff --git a/libc/src/math/f16sqrtl.h b/libc/src/math/f16sqrtl.h
index 8238f9e..fd3c55f 100644
--- a/libc/src/math/f16sqrtl.h
+++ b/libc/src/math/f16sqrtl.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16SQRTL_H
#define LLVM_LIBC_SRC_MATH_F16SQRTL_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16sqrtl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16SQRTL_H
diff --git a/libc/src/math/f16sub.h b/libc/src/math/f16sub.h
index fbceba8..66f82da 100644
--- a/libc/src/math/f16sub.h
+++ b/libc/src/math/f16sub.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16SUB_H
#define LLVM_LIBC_SRC_MATH_F16SUB_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16sub(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16SUB_H
diff --git a/libc/src/math/f16subf.h b/libc/src/math/f16subf.h
index 255953a..1d04a4c 100644
--- a/libc/src/math/f16subf.h
+++ b/libc/src/math/f16subf.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16SUBF_H
#define LLVM_LIBC_SRC_MATH_F16SUBF_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16subf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16SUBF_H
diff --git a/libc/src/math/f16subf128.h b/libc/src/math/f16subf128.h
index fae3360..eb67429 100644
--- a/libc/src/math/f16subf128.h
+++ b/libc/src/math/f16subf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16SUBF128_H
#define LLVM_LIBC_SRC_MATH_F16SUBF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16subf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16SUBF128_H
diff --git a/libc/src/math/f16subl.h b/libc/src/math/f16subl.h
index b4e3c3c..43b44a5 100644
--- a/libc/src/math/f16subl.h
+++ b/libc/src/math/f16subl.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_F16SUBL_H
#define LLVM_LIBC_SRC_MATH_F16SUBL_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 f16subl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_F16SUBL_H
diff --git a/libc/src/math/fabs.h b/libc/src/math/fabs.h
index c2f179a..0aad5ea 100644
--- a/libc/src/math/fabs.h
+++ b/libc/src/math/fabs.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FABS_H
#define LLVM_LIBC_SRC_MATH_FABS_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fabs(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FABS_H
diff --git a/libc/src/math/fabsf.h b/libc/src/math/fabsf.h
index 52347d9..ca2cc10 100644
--- a/libc/src/math/fabsf.h
+++ b/libc/src/math/fabsf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FABSF_H
#define LLVM_LIBC_SRC_MATH_FABSF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fabsf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FABSF_H
diff --git a/libc/src/math/fabsf128.h b/libc/src/math/fabsf128.h
index 4507e57..0a27502 100644
--- a/libc/src/math/fabsf128.h
+++ b/libc/src/math/fabsf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FABSF128_H
#define LLVM_LIBC_SRC_MATH_FABSF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fabsf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FABSF128_H
diff --git a/libc/src/math/fabsf16.h b/libc/src/math/fabsf16.h
index f48a51f..532662a 100644
--- a/libc/src/math/fabsf16.h
+++ b/libc/src/math/fabsf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FABSF16_H
#define LLVM_LIBC_SRC_MATH_FABSF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fabsf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FABSF16_H
diff --git a/libc/src/math/fabsl.h b/libc/src/math/fabsl.h
index a044460..b3df8bf 100644
--- a/libc/src/math/fabsl.h
+++ b/libc/src/math/fabsl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FABSL_H
#define LLVM_LIBC_SRC_MATH_FABSL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fabsl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FABSL_H
diff --git a/libc/src/math/fdim.h b/libc/src/math/fdim.h
index 19a9e99..457cb47 100644
--- a/libc/src/math/fdim.h
+++ b/libc/src/math/fdim.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FDIM_H
#define LLVM_LIBC_SRC_MATH_FDIM_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fdim(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FDIM_H
diff --git a/libc/src/math/fdimf.h b/libc/src/math/fdimf.h
index b90bb45..01d5a53 100644
--- a/libc/src/math/fdimf.h
+++ b/libc/src/math/fdimf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FDIMF_H
#define LLVM_LIBC_SRC_MATH_FDIMF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fdimf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FDIMF_H
diff --git a/libc/src/math/fdimf128.h b/libc/src/math/fdimf128.h
index a5e1387..f0485ab 100644
--- a/libc/src/math/fdimf128.h
+++ b/libc/src/math/fdimf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FDIMF128_H
#define LLVM_LIBC_SRC_MATH_FDIMF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fdimf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FDIMF128_H
diff --git a/libc/src/math/fdimf16.h b/libc/src/math/fdimf16.h
index e3aac7b..0aa2381 100644
--- a/libc/src/math/fdimf16.h
+++ b/libc/src/math/fdimf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FDIMF16_H
#define LLVM_LIBC_SRC_MATH_FDIMF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fdimf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FDIMF16_H
diff --git a/libc/src/math/fdiml.h b/libc/src/math/fdiml.h
index 2268601..4b18d9a 100644
--- a/libc/src/math/fdiml.h
+++ b/libc/src/math/fdiml.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FDIML_H
#define LLVM_LIBC_SRC_MATH_FDIML_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fdiml(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FDIML_H
diff --git a/libc/src/math/floor.h b/libc/src/math/floor.h
index d6c6195..2920c7a 100644
--- a/libc/src/math/floor.h
+++ b/libc/src/math/floor.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FLOOR_H
#define LLVM_LIBC_SRC_MATH_FLOOR_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double floor(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FLOOR_H
diff --git a/libc/src/math/floorf.h b/libc/src/math/floorf.h
index c9dfcf6..52d6dd7 100644
--- a/libc/src/math/floorf.h
+++ b/libc/src/math/floorf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FLOORF_H
#define LLVM_LIBC_SRC_MATH_FLOORF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float floorf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FLOORF_H
diff --git a/libc/src/math/floorf128.h b/libc/src/math/floorf128.h
index 9af48b2..b97c4b6 100644
--- a/libc/src/math/floorf128.h
+++ b/libc/src/math/floorf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FLOORF128_H
#define LLVM_LIBC_SRC_MATH_FLOORF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 floorf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FLOORF128_H
diff --git a/libc/src/math/floorf16.h b/libc/src/math/floorf16.h
index c9b1f48..4e5e196 100644
--- a/libc/src/math/floorf16.h
+++ b/libc/src/math/floorf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FLOORF16_H
#define LLVM_LIBC_SRC_MATH_FLOORF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 floorf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FLOORF16_H
diff --git a/libc/src/math/floorl.h b/libc/src/math/floorl.h
index 4597b4e..ef53b29 100644
--- a/libc/src/math/floorl.h
+++ b/libc/src/math/floorl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FLOORL_H
#define LLVM_LIBC_SRC_MATH_FLOORL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double floorl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FLOORL_H
diff --git a/libc/src/math/fma.h b/libc/src/math/fma.h
index a705228..7f0608e 100644
--- a/libc/src/math/fma.h
+++ b/libc/src/math/fma.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMA_H
#define LLVM_LIBC_SRC_MATH_FMA_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fma(double x, double y, double z);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMA_H
diff --git a/libc/src/math/fmaf.h b/libc/src/math/fmaf.h
index b7335c4..29e5bdc 100644
--- a/libc/src/math/fmaf.h
+++ b/libc/src/math/fmaf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAF_H
#define LLVM_LIBC_SRC_MATH_FMAF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fmaf(float x, float y, float z);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAF_H
diff --git a/libc/src/math/fmax.h b/libc/src/math/fmax.h
index 0112874..64baa4d 100644
--- a/libc/src/math/fmax.h
+++ b/libc/src/math/fmax.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAX_H
#define LLVM_LIBC_SRC_MATH_FMAX_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fmax(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAX_H
diff --git a/libc/src/math/fmaxf.h b/libc/src/math/fmaxf.h
index af6a0cb..1126323 100644
--- a/libc/src/math/fmaxf.h
+++ b/libc/src/math/fmaxf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXF_H
#define LLVM_LIBC_SRC_MATH_FMAXF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fmaxf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXF_H
diff --git a/libc/src/math/fmaxf128.h b/libc/src/math/fmaxf128.h
index 47bf354..a4407d9 100644
--- a/libc/src/math/fmaxf128.h
+++ b/libc/src/math/fmaxf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXF128_H
#define LLVM_LIBC_SRC_MATH_FMAXF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fmaxf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXF128_H
diff --git a/libc/src/math/fmaxf16.h b/libc/src/math/fmaxf16.h
index 9048160..bf608f8 100644
--- a/libc/src/math/fmaxf16.h
+++ b/libc/src/math/fmaxf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXF16_H
#define LLVM_LIBC_SRC_MATH_FMAXF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fmaxf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXF16_H
diff --git a/libc/src/math/fmaximum.h b/libc/src/math/fmaximum.h
index 818c428..8eac02b 100644
--- a/libc/src/math/fmaximum.h
+++ b/libc/src/math/fmaximum.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fmaximum(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_H
diff --git a/libc/src/math/fmaximum_mag.h b/libc/src/math/fmaximum_mag.h
index d4954e3..31b7c0f 100644
--- a/libc/src/math/fmaximum_mag.h
+++ b/libc/src/math/fmaximum_mag.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fmaximum_mag(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_H
diff --git a/libc/src/math/fmaximum_mag_num.h b/libc/src/math/fmaximum_mag_num.h
index debb017..c4ff243 100644
--- a/libc/src/math/fmaximum_mag_num.h
+++ b/libc/src/math/fmaximum_mag_num.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUM_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUM_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fmaximum_mag_num(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUM_H
diff --git a/libc/src/math/fmaximum_mag_numf.h b/libc/src/math/fmaximum_mag_numf.h
index 0ec05c3..702903a 100644
--- a/libc/src/math/fmaximum_mag_numf.h
+++ b/libc/src/math/fmaximum_mag_numf.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fmaximum_mag_numf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF_H
diff --git a/libc/src/math/fmaximum_mag_numf128.h b/libc/src/math/fmaximum_mag_numf128.h
index a263f98..2afae7f 100644
--- a/libc/src/math/fmaximum_mag_numf128.h
+++ b/libc/src/math/fmaximum_mag_numf128.h
@@ -10,13 +10,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF128_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fmaximum_mag_numf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF128_H
diff --git a/libc/src/math/fmaximum_mag_numf16.h b/libc/src/math/fmaximum_mag_numf16.h
index 1bf2e46..4c963d4 100644
--- a/libc/src/math/fmaximum_mag_numf16.h
+++ b/libc/src/math/fmaximum_mag_numf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF16_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fmaximum_mag_numf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUMF16_H
diff --git a/libc/src/math/fmaximum_mag_numl.h b/libc/src/math/fmaximum_mag_numl.h
index 9fbc638..32f9ae9 100644
--- a/libc/src/math/fmaximum_mag_numl.h
+++ b/libc/src/math/fmaximum_mag_numl.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUML_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUML_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fmaximum_mag_numl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAG_NUML_H
diff --git a/libc/src/math/fmaximum_magf.h b/libc/src/math/fmaximum_magf.h
index 73ffd2e..1bfcc79 100644
--- a/libc/src/math/fmaximum_magf.h
+++ b/libc/src/math/fmaximum_magf.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fmaximum_magf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF_H
diff --git a/libc/src/math/fmaximum_magf128.h b/libc/src/math/fmaximum_magf128.h
index fb68af7..23c466b 100644
--- a/libc/src/math/fmaximum_magf128.h
+++ b/libc/src/math/fmaximum_magf128.h
@@ -10,13 +10,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF128_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fmaximum_magf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF128_H
diff --git a/libc/src/math/fmaximum_magf16.h b/libc/src/math/fmaximum_magf16.h
index 32aee6e..e5f57d3 100644
--- a/libc/src/math/fmaximum_magf16.h
+++ b/libc/src/math/fmaximum_magf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF16_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fmaximum_magf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGF16_H
diff --git a/libc/src/math/fmaximum_magl.h b/libc/src/math/fmaximum_magl.h
index 8745f6a..23b283c 100644
--- a/libc/src/math/fmaximum_magl.h
+++ b/libc/src/math/fmaximum_magl.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGL_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fmaximum_magl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_MAGL_H
diff --git a/libc/src/math/fmaximum_num.h b/libc/src/math/fmaximum_num.h
index df4bfcb..ce3ce12 100644
--- a/libc/src/math/fmaximum_num.h
+++ b/libc/src/math/fmaximum_num.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_NUM_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_NUM_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fmaximum_num(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_NUM_H
diff --git a/libc/src/math/fmaximum_numf.h b/libc/src/math/fmaximum_numf.h
index 6599715..b3243ed 100644
--- a/libc/src/math/fmaximum_numf.h
+++ b/libc/src/math/fmaximum_numf.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fmaximum_numf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF_H
diff --git a/libc/src/math/fmaximum_numf128.h b/libc/src/math/fmaximum_numf128.h
index 1e9bd8d..d55183c 100644
--- a/libc/src/math/fmaximum_numf128.h
+++ b/libc/src/math/fmaximum_numf128.h
@@ -10,13 +10,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF128_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fmaximum_numf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF128_H
diff --git a/libc/src/math/fmaximum_numf16.h b/libc/src/math/fmaximum_numf16.h
index 3a2b230..b450a45 100644
--- a/libc/src/math/fmaximum_numf16.h
+++ b/libc/src/math/fmaximum_numf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF16_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fmaximum_numf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_NUMF16_H
diff --git a/libc/src/math/fmaximum_numl.h b/libc/src/math/fmaximum_numl.h
index fc1d3ca38..f668cbd 100644
--- a/libc/src/math/fmaximum_numl.h
+++ b/libc/src/math/fmaximum_numl.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUM_NUML_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUM_NUML_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fmaximum_numl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUM_NUML_H
diff --git a/libc/src/math/fmaximumf.h b/libc/src/math/fmaximumf.h
index 9c4c544..4eee696 100644
--- a/libc/src/math/fmaximumf.h
+++ b/libc/src/math/fmaximumf.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUMF_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUMF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fmaximumf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUMF_H
diff --git a/libc/src/math/fmaximumf128.h b/libc/src/math/fmaximumf128.h
index 3cc6fa0..4a214ef 100644
--- a/libc/src/math/fmaximumf128.h
+++ b/libc/src/math/fmaximumf128.h
@@ -10,13 +10,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUMF128_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUMF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fmaximumf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUMF128_H
diff --git a/libc/src/math/fmaximumf16.h b/libc/src/math/fmaximumf16.h
index 8a81e81..806339f 100644
--- a/libc/src/math/fmaximumf16.h
+++ b/libc/src/math/fmaximumf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUMF16_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUMF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fmaximumf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUMF16_H
diff --git a/libc/src/math/fmaximuml.h b/libc/src/math/fmaximuml.h
index 71310c2..ba8a8b1 100644
--- a/libc/src/math/fmaximuml.h
+++ b/libc/src/math/fmaximuml.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXIMUML_H
#define LLVM_LIBC_SRC_MATH_FMAXIMUML_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fmaximuml(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXIMUML_H
diff --git a/libc/src/math/fmaxl.h b/libc/src/math/fmaxl.h
index ea5cc4d..a067300 100644
--- a/libc/src/math/fmaxl.h
+++ b/libc/src/math/fmaxl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMAXL_H
#define LLVM_LIBC_SRC_MATH_FMAXL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fmaxl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMAXL_H
diff --git a/libc/src/math/fmin.h b/libc/src/math/fmin.h
index d09ec69..bf011bb 100644
--- a/libc/src/math/fmin.h
+++ b/libc/src/math/fmin.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMIN_H
#define LLVM_LIBC_SRC_MATH_FMIN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fmin(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMIN_H
diff --git a/libc/src/math/fminf.h b/libc/src/math/fminf.h
index 8eeb542..b9c159a6 100644
--- a/libc/src/math/fminf.h
+++ b/libc/src/math/fminf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINF_H
#define LLVM_LIBC_SRC_MATH_FMINF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fminf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINF_H
diff --git a/libc/src/math/fminf128.h b/libc/src/math/fminf128.h
index 7bc393a..d2ed593 100644
--- a/libc/src/math/fminf128.h
+++ b/libc/src/math/fminf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINF128_H
#define LLVM_LIBC_SRC_MATH_FMINF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fminf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINF128_H
diff --git a/libc/src/math/fminf16.h b/libc/src/math/fminf16.h
index a92ff50c..22d4e6c 100644
--- a/libc/src/math/fminf16.h
+++ b/libc/src/math/fminf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINF16_H
#define LLVM_LIBC_SRC_MATH_FMINF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fminf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINF16_H
diff --git a/libc/src/math/fminimum.h b/libc/src/math/fminimum.h
index 53d764e..9d39b1bd 100644
--- a/libc/src/math/fminimum.h
+++ b/libc/src/math/fminimum.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fminimum(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_H
diff --git a/libc/src/math/fminimum_mag.h b/libc/src/math/fminimum_mag.h
index 5ebe3ee..10b242e 100644
--- a/libc/src/math/fminimum_mag.h
+++ b/libc/src/math/fminimum_mag.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fminimum_mag(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_H
diff --git a/libc/src/math/fminimum_mag_num.h b/libc/src/math/fminimum_mag_num.h
index c446434..eb18230 100644
--- a/libc/src/math/fminimum_mag_num.h
+++ b/libc/src/math/fminimum_mag_num.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUM_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUM_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fminimum_mag_num(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMH
diff --git a/libc/src/math/fminimum_mag_numf.h b/libc/src/math/fminimum_mag_numf.h
index 627b5ad..8091990 100644
--- a/libc/src/math/fminimum_mag_numf.h
+++ b/libc/src/math/fminimum_mag_numf.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fminimum_mag_numf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF_H
diff --git a/libc/src/math/fminimum_mag_numf128.h b/libc/src/math/fminimum_mag_numf128.h
index e3e69a7..803c5e6 100644
--- a/libc/src/math/fminimum_mag_numf128.h
+++ b/libc/src/math/fminimum_mag_numf128.h
@@ -10,13 +10,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF128_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fminimum_mag_numf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF128_H
diff --git a/libc/src/math/fminimum_mag_numf16.h b/libc/src/math/fminimum_mag_numf16.h
index 5ceca3a..0fd314b 100644
--- a/libc/src/math/fminimum_mag_numf16.h
+++ b/libc/src/math/fminimum_mag_numf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF16_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fminimum_mag_numf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUMF16_H
diff --git a/libc/src/math/fminimum_mag_numl.h b/libc/src/math/fminimum_mag_numl.h
index 6b14126..fdbb183 100644
--- a/libc/src/math/fminimum_mag_numl.h
+++ b/libc/src/math/fminimum_mag_numl.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUML_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUML_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fminimum_mag_numl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAG_NUML_H
diff --git a/libc/src/math/fminimum_magf.h b/libc/src/math/fminimum_magf.h
index 98c9cc0..6209340 100644
--- a/libc/src/math/fminimum_magf.h
+++ b/libc/src/math/fminimum_magf.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fminimum_magf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF_H
diff --git a/libc/src/math/fminimum_magf128.h b/libc/src/math/fminimum_magf128.h
index 00eee4e..05bd163 100644
--- a/libc/src/math/fminimum_magf128.h
+++ b/libc/src/math/fminimum_magf128.h
@@ -10,13 +10,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF128_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fminimum_magf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF128_H
diff --git a/libc/src/math/fminimum_magf16.h b/libc/src/math/fminimum_magf16.h
index cebc76d..27673555 100644
--- a/libc/src/math/fminimum_magf16.h
+++ b/libc/src/math/fminimum_magf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF16_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fminimum_magf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAGF16_H
diff --git a/libc/src/math/fminimum_magl.h b/libc/src/math/fminimum_magl.h
index 3220e50..bcda35c 100644
--- a/libc/src/math/fminimum_magl.h
+++ b/libc/src/math/fminimum_magl.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_MAGL_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_MAGL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fminimum_magl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_MAGL_H
diff --git a/libc/src/math/fminimum_num.h b/libc/src/math/fminimum_num.h
index 42afb06..4c864cb 100644
--- a/libc/src/math/fminimum_num.h
+++ b/libc/src/math/fminimum_num.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_NUM_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_NUM_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fminimum_num(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_NUM_H
diff --git a/libc/src/math/fminimum_numf.h b/libc/src/math/fminimum_numf.h
index 8252b8f..ac4b08b 100644
--- a/libc/src/math/fminimum_numf.h
+++ b/libc/src/math/fminimum_numf.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fminimum_numf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF_H
diff --git a/libc/src/math/fminimum_numf128.h b/libc/src/math/fminimum_numf128.h
index 1833e9e..00f8960 100644
--- a/libc/src/math/fminimum_numf128.h
+++ b/libc/src/math/fminimum_numf128.h
@@ -10,13 +10,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF128_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fminimum_numf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF128_H
diff --git a/libc/src/math/fminimum_numf16.h b/libc/src/math/fminimum_numf16.h
index 0b01c37..598ff9d 100644
--- a/libc/src/math/fminimum_numf16.h
+++ b/libc/src/math/fminimum_numf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF16_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fminimum_numf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_NUMF16_H
diff --git a/libc/src/math/fminimum_numl.h b/libc/src/math/fminimum_numl.h
index 77d124f..0da204e 100644
--- a/libc/src/math/fminimum_numl.h
+++ b/libc/src/math/fminimum_numl.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUM_NUML_H
#define LLVM_LIBC_SRC_MATH_FMINIMUM_NUML_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fminimum_numl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUM_NUML_H
diff --git a/libc/src/math/fminimumf.h b/libc/src/math/fminimumf.h
index 915e206..424309f 100644
--- a/libc/src/math/fminimumf.h
+++ b/libc/src/math/fminimumf.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUMF_H
#define LLVM_LIBC_SRC_MATH_FMINIMUMF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fminimumf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUMF_H
diff --git a/libc/src/math/fminimumf128.h b/libc/src/math/fminimumf128.h
index d507766..7ff0190 100644
--- a/libc/src/math/fminimumf128.h
+++ b/libc/src/math/fminimumf128.h
@@ -10,13 +10,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUMF128_H
#define LLVM_LIBC_SRC_MATH_FMINIMUMF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fminimumf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUMF128_H
diff --git a/libc/src/math/fminimumf16.h b/libc/src/math/fminimumf16.h
index eaa466a..86dd240 100644
--- a/libc/src/math/fminimumf16.h
+++ b/libc/src/math/fminimumf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUMF16_H
#define LLVM_LIBC_SRC_MATH_FMINIMUMF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fminimumf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUMF16_H
diff --git a/libc/src/math/fminimuml.h b/libc/src/math/fminimuml.h
index 3928806..b9cc321 100644
--- a/libc/src/math/fminimuml.h
+++ b/libc/src/math/fminimuml.h
@@ -10,12 +10,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINIMUML_H
#define LLVM_LIBC_SRC_MATH_FMINIMUML_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fminimuml(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINIMUML_H
diff --git a/libc/src/math/fminl.h b/libc/src/math/fminl.h
index 7b352cb..e111e26 100644
--- a/libc/src/math/fminl.h
+++ b/libc/src/math/fminl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMINL_H
#define LLVM_LIBC_SRC_MATH_FMINL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fminl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMINL_H
diff --git a/libc/src/math/fmod.h b/libc/src/math/fmod.h
index f796930..01b9aa7 100644
--- a/libc/src/math/fmod.h
+++ b/libc/src/math/fmod.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMOD_H
#define LLVM_LIBC_SRC_MATH_FMOD_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fmod(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMOD_H
diff --git a/libc/src/math/fmodf.h b/libc/src/math/fmodf.h
index 01e0868..90d97e6 100644
--- a/libc/src/math/fmodf.h
+++ b/libc/src/math/fmodf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMODF_H
#define LLVM_LIBC_SRC_MATH_FMODF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fmodf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMODF_H
diff --git a/libc/src/math/fmodf128.h b/libc/src/math/fmodf128.h
index 908fc61..b324270 100644
--- a/libc/src/math/fmodf128.h
+++ b/libc/src/math/fmodf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMODF128_H
#define LLVM_LIBC_SRC_MATH_FMODF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fmodf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMODF128_H
diff --git a/libc/src/math/fmodf16.h b/libc/src/math/fmodf16.h
index 1c8cb8a..ab65843 100644
--- a/libc/src/math/fmodf16.h
+++ b/libc/src/math/fmodf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FMODF16_H
#define LLVM_LIBC_SRC_MATH_FMODF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fmodf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMODF16_H
diff --git a/libc/src/math/fmodl.h b/libc/src/math/fmodl.h
index 2ff5c9a..f259ddb 100644
--- a/libc/src/math/fmodl.h
+++ b/libc/src/math/fmodl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMODL_H
#define LLVM_LIBC_SRC_MATH_FMODL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fmodl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMODL_H
diff --git a/libc/src/math/fmul.h b/libc/src/math/fmul.h
index 73ec2ee..fbc1069 100644
--- a/libc/src/math/fmul.h
+++ b/libc/src/math/fmul.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FMUL_H
#define LLVM_LIBC_SRC_MATH_FMUL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fmul(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FMUL_H
diff --git a/libc/src/math/frexp.h b/libc/src/math/frexp.h
index 316f5e0..963ea7b 100644
--- a/libc/src/math/frexp.h
+++ b/libc/src/math/frexp.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FREXP_H
#define LLVM_LIBC_SRC_MATH_FREXP_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double frexp(double x, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FREXP_H
diff --git a/libc/src/math/frexpf.h b/libc/src/math/frexpf.h
index f137073..74eeac2 100644
--- a/libc/src/math/frexpf.h
+++ b/libc/src/math/frexpf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FREXPF_H
#define LLVM_LIBC_SRC_MATH_FREXPF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float frexpf(float x, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FREXPF_H
diff --git a/libc/src/math/frexpf128.h b/libc/src/math/frexpf128.h
index e143e6f..55c4a47 100644
--- a/libc/src/math/frexpf128.h
+++ b/libc/src/math/frexpf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FREXPF128_H
#define LLVM_LIBC_SRC_MATH_FREXPF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 frexpf128(float128 x, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FREXPF128_H
diff --git a/libc/src/math/frexpf16.h b/libc/src/math/frexpf16.h
index 09a9938..dc1898c 100644
--- a/libc/src/math/frexpf16.h
+++ b/libc/src/math/frexpf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FREXPF16_H
#define LLVM_LIBC_SRC_MATH_FREXPF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 frexpf16(float16 x, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FREXPF16_H
diff --git a/libc/src/math/frexpl.h b/libc/src/math/frexpl.h
index a5d8279..818266ed 100644
--- a/libc/src/math/frexpl.h
+++ b/libc/src/math/frexpl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FREXPL_H
#define LLVM_LIBC_SRC_MATH_FREXPL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double frexpl(long double x, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FREXPL_H
diff --git a/libc/src/math/fromfp.h b/libc/src/math/fromfp.h
index 63094bb..d3de2dd3 100644
--- a/libc/src/math/fromfp.h
+++ b/libc/src/math/fromfp.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFP_H
#define LLVM_LIBC_SRC_MATH_FROMFP_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fromfp(double x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFP_H
diff --git a/libc/src/math/fromfpf.h b/libc/src/math/fromfpf.h
index 47e15ff..11d43214 100644
--- a/libc/src/math/fromfpf.h
+++ b/libc/src/math/fromfpf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPF_H
#define LLVM_LIBC_SRC_MATH_FROMFPF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fromfpf(float x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPF_H
diff --git a/libc/src/math/fromfpf128.h b/libc/src/math/fromfpf128.h
index 1600b81..5f85fde 100644
--- a/libc/src/math/fromfpf128.h
+++ b/libc/src/math/fromfpf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPF128_H
#define LLVM_LIBC_SRC_MATH_FROMFPF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fromfpf128(float128 x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPF128_H
diff --git a/libc/src/math/fromfpf16.h b/libc/src/math/fromfpf16.h
index a76a92f..6e37c2d 100644
--- a/libc/src/math/fromfpf16.h
+++ b/libc/src/math/fromfpf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPF16_H
#define LLVM_LIBC_SRC_MATH_FROMFPF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fromfpf16(float16 x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPF16_H
diff --git a/libc/src/math/fromfpl.h b/libc/src/math/fromfpl.h
index dab2006..dd8e1ee 100644
--- a/libc/src/math/fromfpl.h
+++ b/libc/src/math/fromfpl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPL_H
#define LLVM_LIBC_SRC_MATH_FROMFPL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fromfpl(long double x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPL_H
diff --git a/libc/src/math/fromfpx.h b/libc/src/math/fromfpx.h
index e3e36a0..3fc96e1 100644
--- a/libc/src/math/fromfpx.h
+++ b/libc/src/math/fromfpx.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPX_H
#define LLVM_LIBC_SRC_MATH_FROMFPX_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double fromfpx(double x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPX_H
diff --git a/libc/src/math/fromfpxf.h b/libc/src/math/fromfpxf.h
index 5cc75ac..b55bc4c 100644
--- a/libc/src/math/fromfpxf.h
+++ b/libc/src/math/fromfpxf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPXF_H
#define LLVM_LIBC_SRC_MATH_FROMFPXF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float fromfpxf(float x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPXF_H
diff --git a/libc/src/math/fromfpxf128.h b/libc/src/math/fromfpxf128.h
index 32a7729..8893264 100644
--- a/libc/src/math/fromfpxf128.h
+++ b/libc/src/math/fromfpxf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPXF128_H
#define LLVM_LIBC_SRC_MATH_FROMFPXF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 fromfpxf128(float128 x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPXF128_H
diff --git a/libc/src/math/fromfpxf16.h b/libc/src/math/fromfpxf16.h
index 516ef42..f53afbc 100644
--- a/libc/src/math/fromfpxf16.h
+++ b/libc/src/math/fromfpxf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPXF16_H
#define LLVM_LIBC_SRC_MATH_FROMFPXF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 fromfpxf16(float16 x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPXF16_H
diff --git a/libc/src/math/fromfpxl.h b/libc/src/math/fromfpxl.h
index 1940508..5452888 100644
--- a/libc/src/math/fromfpxl.h
+++ b/libc/src/math/fromfpxl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_FROMFPXL_H
#define LLVM_LIBC_SRC_MATH_FROMFPXL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double fromfpxl(long double x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_FROMFPXL_H
diff --git a/libc/src/math/generic/acosf.cpp b/libc/src/math/generic/acosf.cpp
index 95d8bc0..f02edec 100644
--- a/libc/src/math/generic/acosf.cpp
+++ b/libc/src/math/generic/acosf.cpp
@@ -13,14 +13,13 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/sqrt.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include <errno.h>
#include "inv_trigf_utils.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
static constexpr size_t N_EXCEPTS = 4;
@@ -121,4 +120,4 @@ LLVM_LIBC_FUNCTION(float, acosf, (float x)) {
return static_cast<float>(x_sign ? M_MATH_PI - r : r);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/acoshf.cpp b/libc/src/math/generic/acoshf.cpp
index 6158063..9422ec6 100644
--- a/libc/src/math/generic/acoshf.cpp
+++ b/libc/src/math/generic/acoshf.cpp
@@ -12,12 +12,11 @@
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/sqrt.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/math/generic/common_constants.h"
#include "src/math/generic/explogxf.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, acoshf, (float x)) {
using FPBits_t = typename fputil::FPBits<float>;
@@ -71,4 +70,4 @@ LLVM_LIBC_FUNCTION(float, acoshf, (float x)) {
x_d + fputil::sqrt<double>(fputil::multiply_add(x_d, x_d, -1.0))));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/asinf.cpp b/libc/src/math/generic/asinf.cpp
index d6acc3a..c4afca4 100644
--- a/libc/src/math/generic/asinf.cpp
+++ b/libc/src/math/generic/asinf.cpp
@@ -13,7 +13,6 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/sqrt.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
@@ -21,7 +20,7 @@
#include "inv_trigf_utils.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
static constexpr size_t N_EXCEPTS = 2;
@@ -153,4 +152,4 @@ LLVM_LIBC_FUNCTION(float, asinf, (float x)) {
return static_cast<float>(fputil::multiply_add(c3, r, c2));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/asinhf.cpp b/libc/src/math/generic/asinhf.cpp
index 1d68ac9..82dc2a3 100644
--- a/libc/src/math/generic/asinhf.cpp
+++ b/libc/src/math/generic/asinhf.cpp
@@ -11,12 +11,11 @@
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/sqrt.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/math/generic/common_constants.h"
#include "src/math/generic/explogxf.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, asinhf, (float x)) {
using FPBits_t = typename fputil::FPBits<float>;
@@ -103,4 +102,4 @@ LLVM_LIBC_FUNCTION(float, asinhf, (float x)) {
fputil::sqrt<double>(fputil::multiply_add(x_d, x_d, 1.0)))));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/atan2f.cpp b/libc/src/math/generic/atan2f.cpp
index e4b297c..b79410d 100644
--- a/libc/src/math/generic/atan2f.cpp
+++ b/libc/src/math/generic/atan2f.cpp
@@ -14,10 +14,9 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/FPUtil/rounding_mode.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace {
@@ -304,4 +303,4 @@ LLVM_LIBC_FUNCTION(float, atan2f, (float y, float x)) {
const_term);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/atanf.cpp b/libc/src/math/generic/atanf.cpp
index 5e0788e..9fa1a33 100644
--- a/libc/src/math/generic/atanf.cpp
+++ b/libc/src/math/generic/atanf.cpp
@@ -14,10 +14,9 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/FPUtil/rounding_mode.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, atanf, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -118,4 +117,4 @@ LLVM_LIBC_FUNCTION(float, atanf, (float x)) {
return static_cast<float>(r);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/atanhf.cpp b/libc/src/math/generic/atanhf.cpp
index a2051bd..97fd1b2 100644
--- a/libc/src/math/generic/atanhf.cpp
+++ b/libc/src/math/generic/atanhf.cpp
@@ -8,11 +8,10 @@
#include "src/math/atanhf.h"
#include "src/__support/FPUtil/FPBits.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/math/generic/explogxf.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, atanhf, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -59,4 +58,4 @@ LLVM_LIBC_FUNCTION(float, atanhf, (float x)) {
return static_cast<float>(0.5 * log_eval((xdbl + 1.0) / (xdbl - 1.0)));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/canonicalize.cpp b/libc/src/math/generic/canonicalize.cpp
index d93501d..f38ca01 100644
--- a/libc/src/math/generic/canonicalize.cpp
+++ b/libc/src/math/generic/canonicalize.cpp
@@ -9,12 +9,11 @@
#include "src/math/canonicalize.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, canonicalize, (double *cx, const double *x)) {
return fputil::canonicalize(*cx, *x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/canonicalizef.cpp b/libc/src/math/generic/canonicalizef.cpp
index 437cf87..dce601d 100644
--- a/libc/src/math/generic/canonicalizef.cpp
+++ b/libc/src/math/generic/canonicalizef.cpp
@@ -9,12 +9,11 @@
#include "src/math/canonicalizef.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, canonicalizef, (float *cx, const float *x)) {
return fputil::canonicalize(*cx, *x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/canonicalizef128.cpp b/libc/src/math/generic/canonicalizef128.cpp
index 477d9c7..0078b47 100644
--- a/libc/src/math/generic/canonicalizef128.cpp
+++ b/libc/src/math/generic/canonicalizef128.cpp
@@ -9,12 +9,11 @@
#include "src/math/canonicalizef128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, canonicalizef128, (float128 * cx, const float128 *x)) {
return fputil::canonicalize(*cx, *x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/canonicalizef16.cpp b/libc/src/math/generic/canonicalizef16.cpp
index ff32c91..232e84f7 100644
--- a/libc/src/math/generic/canonicalizef16.cpp
+++ b/libc/src/math/generic/canonicalizef16.cpp
@@ -9,12 +9,11 @@
#include "src/math/canonicalizef16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, canonicalizef16, (float16 * cx, const float16 *x)) {
return fputil::canonicalize(*cx, *x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/canonicalizel.cpp b/libc/src/math/generic/canonicalizel.cpp
index fa2b846..5310a31 100644
--- a/libc/src/math/generic/canonicalizel.cpp
+++ b/libc/src/math/generic/canonicalizel.cpp
@@ -9,13 +9,12 @@
#include "src/math/canonicalizel.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, canonicalizel,
(long double *cx, const long double *x)) {
return fputil::canonicalize(*cx, *x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/cbrtf.cpp b/libc/src/math/generic/cbrtf.cpp
index 313961b..a1eb58d 100644
--- a/libc/src/math/generic/cbrtf.cpp
+++ b/libc/src/math/generic/cbrtf.cpp
@@ -12,10 +12,9 @@
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace {
@@ -155,4 +154,4 @@ LLVM_LIBC_FUNCTION(float, cbrtf, (float x)) {
return static_cast<float>(DoubleBits(r_bits).get_val());
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ceil.cpp b/libc/src/math/generic/ceil.cpp
index a5ac1348..efd0f24 100644
--- a/libc/src/math/generic/ceil.cpp
+++ b/libc/src/math/generic/ceil.cpp
@@ -9,10 +9,9 @@
#include "src/math/ceil.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ceil, (double x)) { return fputil::ceil(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ceilf.cpp b/libc/src/math/generic/ceilf.cpp
index 0fd5436..d49b342 100644
--- a/libc/src/math/generic/ceilf.cpp
+++ b/libc/src/math/generic/ceilf.cpp
@@ -9,10 +9,9 @@
#include "src/math/ceilf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ceilf, (float x)) { return fputil::ceil(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ceilf128.cpp b/libc/src/math/generic/ceilf128.cpp
index 5d0cf46..af980429 100644
--- a/libc/src/math/generic/ceilf128.cpp
+++ b/libc/src/math/generic/ceilf128.cpp
@@ -9,10 +9,9 @@
#include "src/math/ceilf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, ceilf128, (float128 x)) { return fputil::ceil(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ceilf16.cpp b/libc/src/math/generic/ceilf16.cpp
index 1d17daf..205d742 100644
--- a/libc/src/math/generic/ceilf16.cpp
+++ b/libc/src/math/generic/ceilf16.cpp
@@ -9,10 +9,9 @@
#include "src/math/ceilf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, ceilf16, (float16 x)) { return fputil::ceil(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ceill.cpp b/libc/src/math/generic/ceill.cpp
index bce9d55..7c3b680 100644
--- a/libc/src/math/generic/ceill.cpp
+++ b/libc/src/math/generic/ceill.cpp
@@ -9,12 +9,11 @@
#include "src/math/ceill.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, ceill, (long double x)) {
return fputil::ceil(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/common_constants.cpp b/libc/src/math/generic/common_constants.cpp
index e29c083..1a23d00 100644
--- a/libc/src/math/generic/common_constants.cpp
+++ b/libc/src/math/generic/common_constants.cpp
@@ -8,10 +8,9 @@
#include "common_constants.h"
#include "src/__support/FPUtil/triple_double.h"
-#include "src/__support/macros/config.h"
#include "src/__support/number_pair.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Lookup table for (1/f) where f = 1 + n*2^(-7), n = 0..127.
const double ONE_OVER_F[128] = {
@@ -806,4 +805,4 @@ const fputil::TripleDouble EXP2_MID2[64] = {
{0x1.6ae7d36d7c1f7p-109, 0x1.e47120223467fp-54, 0x1.02be6e199c811p0},
};
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/common_constants.h b/libc/src/math/generic/common_constants.h
index dc1a90c..13fc8d75 100644
--- a/libc/src/math/generic/common_constants.h
+++ b/libc/src/math/generic/common_constants.h
@@ -10,10 +10,9 @@
#define LLVM_LIBC_SRC_MATH_GENERIC_COMMON_CONSTANTS_H
#include "src/__support/FPUtil/triple_double.h"
-#include "src/__support/macros/config.h"
#include "src/__support/number_pair.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Lookup table for (1/f) where f = 1 + n*2^(-7), n = 0..127.
extern const double ONE_OVER_F[128];
@@ -78,6 +77,6 @@ extern const fputil::TripleDouble EXP2_MID1[64];
// Lookup table for 2^(k * 2^-12) with k = 0..63.
extern const fputil::TripleDouble EXP2_MID2[64];
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_COMMON_CONSTANTS_H
diff --git a/libc/src/math/generic/copysign.cpp b/libc/src/math/generic/copysign.cpp
index 149d725..c5ad414 100644
--- a/libc/src/math/generic/copysign.cpp
+++ b/libc/src/math/generic/copysign.cpp
@@ -9,12 +9,11 @@
#include "src/math/copysign.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, copysign, (double x, double y)) {
return fputil::copysign(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/copysignf.cpp b/libc/src/math/generic/copysignf.cpp
index 17cd70d3..077e1ce 100644
--- a/libc/src/math/generic/copysignf.cpp
+++ b/libc/src/math/generic/copysignf.cpp
@@ -9,12 +9,11 @@
#include "src/math/copysignf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, copysignf, (float x, float y)) {
return fputil::copysign(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/copysignf128.cpp b/libc/src/math/generic/copysignf128.cpp
index 9a51c8d..2fe36d5 100644
--- a/libc/src/math/generic/copysignf128.cpp
+++ b/libc/src/math/generic/copysignf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/copysignf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, copysignf128, (float128 x, float128 y)) {
return fputil::copysign(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/copysignf16.cpp b/libc/src/math/generic/copysignf16.cpp
index 42695b3..435c7e4 100644
--- a/libc/src/math/generic/copysignf16.cpp
+++ b/libc/src/math/generic/copysignf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/copysignf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, copysignf16, (float16 x, float16 y)) {
return fputil::copysign(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/copysignl.cpp b/libc/src/math/generic/copysignl.cpp
index 73c47bb..b74393c 100644
--- a/libc/src/math/generic/copysignl.cpp
+++ b/libc/src/math/generic/copysignl.cpp
@@ -9,12 +9,11 @@
#include "src/math/copysignl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, copysignl, (long double x, long double y)) {
return fputil::copysign(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/cos.cpp b/libc/src/math/generic/cos.cpp
index dbfeec7..0eb6d9d 100644
--- a/libc/src/math/generic/cos.cpp
+++ b/libc/src/math/generic/cos.cpp
@@ -14,7 +14,6 @@
#include "src/__support/FPUtil/dyadic_float.h"
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#include "src/math/generic/sincos_eval.h"
@@ -49,7 +48,7 @@ LIBC_INLINE constexpr bool NO_FMA = true;
#define LIBC_MATH_COS_SKIP_ACCURATE_PASS
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using DoubleDouble = fputil::DoubleDouble;
using Float128 = typename fputil::DyadicFloat<128>;
@@ -195,4 +194,4 @@ LLVM_LIBC_FUNCTION(double, cos, (double x)) {
#endif // !LIBC_MATH_COS_SKIP_ACCURATE_PASS
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/cosf.cpp b/libc/src/math/generic/cosf.cpp
index 6a59b37..180a44e 100644
--- a/libc/src/math/generic/cosf.cpp
+++ b/libc/src/math/generic/cosf.cpp
@@ -14,13 +14,12 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Exceptional cases for cosf.
static constexpr size_t N_EXCEPTS = 6;
@@ -135,4 +134,4 @@ LLVM_LIBC_FUNCTION(float, cosf, (float x)) {
sin_y, -sin_k, fputil::multiply_add(cosm1_y, cos_k, cos_k)));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/coshf.cpp b/libc/src/math/generic/coshf.cpp
index c869f7d..a8ea324 100644
--- a/libc/src/math/generic/coshf.cpp
+++ b/libc/src/math/generic/coshf.cpp
@@ -10,11 +10,10 @@
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/rounding_mode.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/math/generic/explogxf.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, coshf, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -53,4 +52,4 @@ LLVM_LIBC_FUNCTION(float, coshf, (float x)) {
return static_cast<float>(exp_pm_eval</*is_sinh*/ false>(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/cospif.cpp b/libc/src/math/generic/cospif.cpp
index 4ef1539..d364681 100644
--- a/libc/src/math/generic/cospif.cpp
+++ b/libc/src/math/generic/cospif.cpp
@@ -12,11 +12,10 @@
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, cospif, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -93,4 +92,4 @@ LLVM_LIBC_FUNCTION(float, cospif, (float x)) {
sin_y, -sin_k, fputil::multiply_add(cosm1_y, cos_k, cos_k)));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/erff.cpp b/libc/src/math/generic/erff.cpp
index 1535745..aa7baff 100644
--- a/libc/src/math/generic/erff.cpp
+++ b/libc/src/math/generic/erff.cpp
@@ -12,10 +12,9 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Polynomials approximating erf(x)/x on ( k/8, (k + 1)/8 ) generated by Sollya
// with:
@@ -177,4 +176,4 @@ LLVM_LIBC_FUNCTION(float, erff, (float x)) {
return static_cast<float>(xd * fputil::multiply_add(x8, p1, p0));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/exp.cpp b/libc/src/math/generic/exp.cpp
index df0c2ea..3d060bc 100644
--- a/libc/src/math/generic/exp.cpp
+++ b/libc/src/math/generic/exp.cpp
@@ -22,12 +22,11 @@
#include "src/__support/FPUtil/triple_double.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using fputil::DoubleDouble;
using fputil::TripleDouble;
@@ -417,4 +416,4 @@ LLVM_LIBC_FUNCTION(double, exp, (double x)) {
return static_cast<double>(r_f128);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/exp10.cpp b/libc/src/math/generic/exp10.cpp
index d01bbd8..a4ae414 100644
--- a/libc/src/math/generic/exp10.cpp
+++ b/libc/src/math/generic/exp10.cpp
@@ -22,12 +22,11 @@
#include "src/__support/FPUtil/triple_double.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using fputil::DoubleDouble;
using fputil::TripleDouble;
@@ -477,4 +476,4 @@ LLVM_LIBC_FUNCTION(double, exp10, (double x)) {
return static_cast<double>(r_f128);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/exp10f.cpp b/libc/src/math/generic/exp10f.cpp
index 5284c38..273b583 100644
--- a/libc/src/math/generic/exp10f.cpp
+++ b/libc/src/math/generic/exp10f.cpp
@@ -8,11 +8,10 @@
#include "src/math/exp10f.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/math/generic/exp10f_impl.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, exp10f, (float x)) { return generic::exp10f(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/exp10f_impl.h b/libc/src/math/generic/exp10f_impl.h
index fe2195c..ff4c1c3 100644
--- a/libc/src/math/generic/exp10f_impl.h
+++ b/libc/src/math/generic/exp10f_impl.h
@@ -18,13 +18,11 @@
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
-namespace generic {
+namespace LIBC_NAMESPACE::generic {
LIBC_INLINE float exp10f(float x) {
using FPBits = typename fputil::FPBits<float>;
@@ -137,7 +135,6 @@ LIBC_INLINE float exp10f(float x) {
return static_cast<float>(multiply_add(p, lo2 * rr.mh, c0 * rr.mh));
}
-} // namespace generic
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE::generic
#endif // LLVM_LIBC_SRC_MATH_GENERIC_EXP10F_IMPL_H
diff --git a/libc/src/math/generic/exp2.cpp b/libc/src/math/generic/exp2.cpp
index fbabb62..1a2fa3f 100644
--- a/libc/src/math/generic/exp2.cpp
+++ b/libc/src/math/generic/exp2.cpp
@@ -22,12 +22,11 @@
#include "src/__support/FPUtil/triple_double.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using fputil::DoubleDouble;
using fputil::TripleDouble;
@@ -391,4 +390,4 @@ LLVM_LIBC_FUNCTION(double, exp2, (double x)) {
return static_cast<double>(r_f128);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/exp2f.cpp b/libc/src/math/generic/exp2f.cpp
index 60d6510..e6cb938 100644
--- a/libc/src/math/generic/exp2f.cpp
+++ b/libc/src/math/generic/exp2f.cpp
@@ -8,11 +8,10 @@
#include "src/math/exp2f.h"
#include "src/__support/common.h" // for LLVM_LIBC_FUNCTION
-#include "src/__support/macros/config.h"
#include "src/math/generic/exp2f_impl.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, exp2f, (float x)) { return generic::exp2f(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/exp2f_impl.h b/libc/src/math/generic/exp2f_impl.h
index 3f1c5ee..d2342e2 100644
--- a/libc/src/math/generic/exp2f_impl.h
+++ b/libc/src/math/generic/exp2f_impl.h
@@ -17,7 +17,6 @@
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h"
@@ -25,8 +24,7 @@
#include "explogxf.h"
-namespace LIBC_NAMESPACE_DECL {
-namespace generic {
+namespace LIBC_NAMESPACE::generic {
LIBC_INLINE float exp2f(float x) {
constexpr uint32_t EXVAL1 = 0x3b42'9d37U;
@@ -162,7 +160,6 @@ LIBC_INLINE float exp2f(float x) {
return static_cast<float>(fputil::multiply_add(p, dx_sq * mh, c1 * mh));
}
-} // namespace generic
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE::generic
#endif // LLVM_LIBC_SRC_MATH_GENERIC_EXP2F_IMPL_H
diff --git a/libc/src/math/generic/exp2m1f.cpp b/libc/src/math/generic/exp2m1f.cpp
index 2060dc3..c60930d 100644
--- a/libc/src/math/generic/exp2m1f.cpp
+++ b/libc/src/math/generic/exp2m1f.cpp
@@ -14,14 +14,13 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h"
#include "src/__support/macros/properties/cpu_features.h"
#include "src/errno/libc_errno.h"
#include "explogxf.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
static constexpr size_t N_EXCEPTS_LO = 8;
@@ -181,4 +180,4 @@ LLVM_LIBC_FUNCTION(float, exp2m1f, (float x)) {
return static_cast<float>(fputil::multiply_add(exp2_lo, mh, -1.0));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/exp_utils.cpp b/libc/src/math/generic/exp_utils.cpp
index cc21637..ad13919 100644
--- a/libc/src/math/generic/exp_utils.cpp
+++ b/libc/src/math/generic/exp_utils.cpp
@@ -7,9 +7,8 @@
//===----------------------------------------------------------------------===//
#include "exp_utils.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
const Exp2fDataTable exp2f_data = {
// :tab[i] = uint(2^(i/N)) - (i << 52-BITS)
@@ -125,4 +124,4 @@ const Exp2fDataTable exp2f_data = {
},
};
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/exp_utils.h b/libc/src/math/generic/exp_utils.h
index dca9eb7..405678c 100644
--- a/libc/src/math/generic/exp_utils.h
+++ b/libc/src/math/generic/exp_utils.h
@@ -9,14 +9,13 @@
#ifndef LLVM_LIBC_SRC_MATH_GENERIC_EXP_UTILS_H
#define LLVM_LIBC_SRC_MATH_GENERIC_EXP_UTILS_H
-#include "src/__support/macros/config.h"
#include <stdint.h>
#define EXP2F_TABLE_BITS 5
#define EXP2F_POLY_ORDER 3
#define N (1 << EXP2F_TABLE_BITS)
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
struct Exp2fDataTable {
uint64_t tab[1 << EXP2F_TABLE_BITS];
@@ -29,6 +28,6 @@ struct Exp2fDataTable {
extern const Exp2fDataTable exp2f_data;
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_EXP_UTILS_H
diff --git a/libc/src/math/generic/expf.cpp b/libc/src/math/generic/expf.cpp
index 1d7c047..c7ab974 100644
--- a/libc/src/math/generic/expf.cpp
+++ b/libc/src/math/generic/expf.cpp
@@ -16,12 +16,11 @@
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, expf, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -106,4 +105,4 @@ LLVM_LIBC_FUNCTION(float, expf, (float x)) {
return static_cast<float>(exp_hi * exp_mid * exp_lo);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/explogxf.cpp b/libc/src/math/generic/explogxf.cpp
index 9e945ec..87ee578 100644
--- a/libc/src/math/generic/explogxf.cpp
+++ b/libc/src/math/generic/explogxf.cpp
@@ -7,9 +7,8 @@
//===----------------------------------------------------------------------===//
#include "explogxf.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// N[Table[Log[2, 1 + x], {x, 0/64, 63/64, 1/64}], 40]
alignas(64) const double LOG_P1_LOG2[LOG_P1_SIZE] = {
@@ -72,4 +71,4 @@ alignas(64) const
double K_LOG2_EVEN[4] = {-0x1.71547652b82fep-1, -0x1.71547652b82fep-2,
-0x1.ec709dc3a03fdp-3, -0x1.2776c50ef9bfep-3};
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/explogxf.h b/libc/src/math/generic/explogxf.h
index 7daed55..f7d04f5 100644
--- a/libc/src/math/generic/explogxf.h
+++ b/libc/src/math/generic/explogxf.h
@@ -17,12 +17,11 @@
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/cpu_features.h"
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
struct ExpBase {
// Base = e
@@ -380,6 +379,6 @@ LIBC_INLINE cpp::optional<double> ziv_test_denorm(int hi, double mid, double lo,
return cpp::nullopt;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_EXPLOGXF_H
diff --git a/libc/src/math/generic/expm1.cpp b/libc/src/math/generic/expm1.cpp
index d948586..150c0bb 100644
--- a/libc/src/math/generic/expm1.cpp
+++ b/libc/src/math/generic/expm1.cpp
@@ -23,7 +23,6 @@
#include "src/__support/FPUtil/triple_double.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#if ((LIBC_MATH & LIBC_MATH_SKIP_ACCURATE_PASS) != 0)
@@ -37,7 +36,7 @@
#include <iostream>
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using fputil::DoubleDouble;
using fputil::TripleDouble;
@@ -508,4 +507,4 @@ LLVM_LIBC_FUNCTION(double, expm1, (double x)) {
#endif // LIBC_MATH_EXPM1_SKIP_ACCURATE_PASS
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/expm1f.cpp b/libc/src/math/generic/expm1f.cpp
index b1a0fe1..6b9f074 100644
--- a/libc/src/math/generic/expm1f.cpp
+++ b/libc/src/math/generic/expm1f.cpp
@@ -17,13 +17,12 @@
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, expm1f, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -171,4 +170,4 @@ LLVM_LIBC_FUNCTION(float, expm1f, (float x)) {
return static_cast<float>(fputil::multiply_add(exp_hi_mid, exp_lo, -1.0));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16add.cpp b/libc/src/math/generic/f16add.cpp
index e9be8a7..ef9b43e 100644
--- a/libc/src/math/generic/f16add.cpp
+++ b/libc/src/math/generic/f16add.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16add.h"
#include "src/__support/FPUtil/generic/add_sub.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16add, (double x, double y)) {
return fputil::generic::add<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16addf.cpp b/libc/src/math/generic/f16addf.cpp
index ee05ff7..f1761a1 100644
--- a/libc/src/math/generic/f16addf.cpp
+++ b/libc/src/math/generic/f16addf.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16addf.h"
#include "src/__support/FPUtil/generic/add_sub.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16addf, (float x, float y)) {
return fputil::generic::add<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16addf128.cpp b/libc/src/math/generic/f16addf128.cpp
index 4e9038e..61c458f 100644
--- a/libc/src/math/generic/f16addf128.cpp
+++ b/libc/src/math/generic/f16addf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16addf128.h"
#include "src/__support/FPUtil/generic/add_sub.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16addf128, (float128 x, float128 y)) {
return fputil::generic::add<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16addl.cpp b/libc/src/math/generic/f16addl.cpp
index 925f084..d32d09d 100644
--- a/libc/src/math/generic/f16addl.cpp
+++ b/libc/src/math/generic/f16addl.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16addl.h"
#include "src/__support/FPUtil/generic/add_sub.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16addl, (long double x, long double y)) {
return fputil::generic::add<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16div.cpp b/libc/src/math/generic/f16div.cpp
index 7df94a8..2ff0ff7 100644
--- a/libc/src/math/generic/f16div.cpp
+++ b/libc/src/math/generic/f16div.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16div.h"
#include "src/__support/FPUtil/generic/div.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16div, (double x, double y)) {
return fputil::generic::div<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16divf.cpp b/libc/src/math/generic/f16divf.cpp
index 3e6289e..45874fb 100644
--- a/libc/src/math/generic/f16divf.cpp
+++ b/libc/src/math/generic/f16divf.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16divf.h"
#include "src/__support/FPUtil/generic/div.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16divf, (float x, float y)) {
return fputil::generic::div<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16divf128.cpp b/libc/src/math/generic/f16divf128.cpp
index 8980ebe..1d37ad8 100644
--- a/libc/src/math/generic/f16divf128.cpp
+++ b/libc/src/math/generic/f16divf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16divf128.h"
#include "src/__support/FPUtil/generic/div.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16divf128, (float128 x, float128 y)) {
return fputil::generic::div<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16divl.cpp b/libc/src/math/generic/f16divl.cpp
index 2a0b200..3fb9c78 100644
--- a/libc/src/math/generic/f16divl.cpp
+++ b/libc/src/math/generic/f16divl.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16divl.h"
#include "src/__support/FPUtil/generic/div.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16divl, (long double x, long double y)) {
return fputil::generic::div<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16fma.cpp b/libc/src/math/generic/f16fma.cpp
index 70314b5..10ee028 100644
--- a/libc/src/math/generic/f16fma.cpp
+++ b/libc/src/math/generic/f16fma.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16fma.h"
#include "src/__support/FPUtil/FMA.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16fma, (double x, double y, double z)) {
return fputil::fma<float16>(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16fmaf.cpp b/libc/src/math/generic/f16fmaf.cpp
index bd0b56b..09f2712 100644
--- a/libc/src/math/generic/f16fmaf.cpp
+++ b/libc/src/math/generic/f16fmaf.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16fmaf.h"
#include "src/__support/FPUtil/FMA.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16fmaf, (float x, float y, float z)) {
return fputil::fma<float16>(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16fmaf128.cpp b/libc/src/math/generic/f16fmaf128.cpp
index 5c4823c..5b2f801 100644
--- a/libc/src/math/generic/f16fmaf128.cpp
+++ b/libc/src/math/generic/f16fmaf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16fmaf128.h"
#include "src/__support/FPUtil/FMA.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16fmaf128, (float128 x, float128 y, float128 z)) {
return fputil::fma<float16>(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16fmal.cpp b/libc/src/math/generic/f16fmal.cpp
index 4f2bf92..0674836 100644
--- a/libc/src/math/generic/f16fmal.cpp
+++ b/libc/src/math/generic/f16fmal.cpp
@@ -9,13 +9,12 @@
#include "src/math/f16fmal.h"
#include "src/__support/FPUtil/FMA.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16fmal,
(long double x, long double y, long double z)) {
return fputil::fma<float16>(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16sqrt.cpp b/libc/src/math/generic/f16sqrt.cpp
index 4addb55..9d5f081 100644
--- a/libc/src/math/generic/f16sqrt.cpp
+++ b/libc/src/math/generic/f16sqrt.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16sqrt.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16sqrt, (double x)) {
return fputil::sqrt<float16>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16sqrtf.cpp b/libc/src/math/generic/f16sqrtf.cpp
index be43a77..1f7ee2d 100644
--- a/libc/src/math/generic/f16sqrtf.cpp
+++ b/libc/src/math/generic/f16sqrtf.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16sqrtf.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16sqrtf, (float x)) {
return fputil::sqrt<float16>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16sqrtf128.cpp b/libc/src/math/generic/f16sqrtf128.cpp
index d33d6d2..11a1e82 100644
--- a/libc/src/math/generic/f16sqrtf128.cpp
+++ b/libc/src/math/generic/f16sqrtf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16sqrtf128.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16sqrtf128, (float128 x)) {
return fputil::sqrt<float16>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16sqrtl.cpp b/libc/src/math/generic/f16sqrtl.cpp
index c6ce73d..2aaac9a 100644
--- a/libc/src/math/generic/f16sqrtl.cpp
+++ b/libc/src/math/generic/f16sqrtl.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16sqrtl.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16sqrtl, (long double x)) {
return fputil::sqrt<float16>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16sub.cpp b/libc/src/math/generic/f16sub.cpp
index 88962b8..114c8ad 100644
--- a/libc/src/math/generic/f16sub.cpp
+++ b/libc/src/math/generic/f16sub.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16sub.h"
#include "src/__support/FPUtil/generic/add_sub.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16sub, (double x, double y)) {
return fputil::generic::sub<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16subf.cpp b/libc/src/math/generic/f16subf.cpp
index adc0ca4..e4532a4 100644
--- a/libc/src/math/generic/f16subf.cpp
+++ b/libc/src/math/generic/f16subf.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16subf.h"
#include "src/__support/FPUtil/generic/add_sub.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16subf, (float x, float y)) {
return fputil::generic::sub<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16subf128.cpp b/libc/src/math/generic/f16subf128.cpp
index c3e0ba5..1f9ff28 100644
--- a/libc/src/math/generic/f16subf128.cpp
+++ b/libc/src/math/generic/f16subf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16subf128.h"
#include "src/__support/FPUtil/generic/add_sub.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16subf128, (float128 x, float128 y)) {
return fputil::generic::sub<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/f16subl.cpp b/libc/src/math/generic/f16subl.cpp
index 0ade790..31970af 100644
--- a/libc/src/math/generic/f16subl.cpp
+++ b/libc/src/math/generic/f16subl.cpp
@@ -9,12 +9,11 @@
#include "src/math/f16subl.h"
#include "src/__support/FPUtil/generic/add_sub.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, f16subl, (long double x, long double y)) {
return fputil::generic::sub<float16>(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fabs.cpp b/libc/src/math/generic/fabs.cpp
index 472297a..0c0b774 100644
--- a/libc/src/math/generic/fabs.cpp
+++ b/libc/src/math/generic/fabs.cpp
@@ -9,10 +9,9 @@
#include "src/math/fabs.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fabs, (double x)) { return fputil::abs(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fabsf.cpp b/libc/src/math/generic/fabsf.cpp
index ad4fcb3..a57f6bf 100644
--- a/libc/src/math/generic/fabsf.cpp
+++ b/libc/src/math/generic/fabsf.cpp
@@ -9,10 +9,9 @@
#include "src/math/fabsf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fabsf, (float x)) { return fputil::abs(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fabsf128.cpp b/libc/src/math/generic/fabsf128.cpp
index 795d907..615b13f 100644
--- a/libc/src/math/generic/fabsf128.cpp
+++ b/libc/src/math/generic/fabsf128.cpp
@@ -9,10 +9,9 @@
#include "src/math/fabsf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fabsf128, (float128 x)) { return fputil::abs(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fabsf16.cpp b/libc/src/math/generic/fabsf16.cpp
index 57671fb..4de84f35 100644
--- a/libc/src/math/generic/fabsf16.cpp
+++ b/libc/src/math/generic/fabsf16.cpp
@@ -9,10 +9,9 @@
#include "src/math/fabsf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fabsf16, (float16 x)) { return fputil::abs(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fabsl.cpp b/libc/src/math/generic/fabsl.cpp
index ea86054..6b912c9 100644
--- a/libc/src/math/generic/fabsl.cpp
+++ b/libc/src/math/generic/fabsl.cpp
@@ -9,12 +9,11 @@
#include "src/math/fabsl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fabsl, (long double x)) {
return fputil::abs(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fdim.cpp b/libc/src/math/generic/fdim.cpp
index 9ea121f..22d99867 100644
--- a/libc/src/math/generic/fdim.cpp
+++ b/libc/src/math/generic/fdim.cpp
@@ -9,12 +9,11 @@
#include "src/math/fdim.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fdim, (double x, double y)) {
return fputil::fdim(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fdimf.cpp b/libc/src/math/generic/fdimf.cpp
index 2c6bf7a..789a0c5 100644
--- a/libc/src/math/generic/fdimf.cpp
+++ b/libc/src/math/generic/fdimf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fdimf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fdimf, (float x, float y)) {
return fputil::fdim(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fdimf128.cpp b/libc/src/math/generic/fdimf128.cpp
index f8b1499..a3ea9e5 100644
--- a/libc/src/math/generic/fdimf128.cpp
+++ b/libc/src/math/generic/fdimf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fdimf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fdimf128, (float128 x, float128 y)) {
return fputil::fdim(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fdimf16.cpp b/libc/src/math/generic/fdimf16.cpp
index 6eac460..25e1d88 100644
--- a/libc/src/math/generic/fdimf16.cpp
+++ b/libc/src/math/generic/fdimf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fdimf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fdimf16, (float16 x, float16 y)) {
return fputil::fdim(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fdiml.cpp b/libc/src/math/generic/fdiml.cpp
index ebac58e..c1091cc 100644
--- a/libc/src/math/generic/fdiml.cpp
+++ b/libc/src/math/generic/fdiml.cpp
@@ -9,12 +9,11 @@
#include "src/math/fdiml.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fdiml, (long double x, long double y)) {
return fputil::fdim(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/floor.cpp b/libc/src/math/generic/floor.cpp
index 417d6ac..60386f0 100644
--- a/libc/src/math/generic/floor.cpp
+++ b/libc/src/math/generic/floor.cpp
@@ -9,10 +9,9 @@
#include "src/math/floor.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, floor, (double x)) { return fputil::floor(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/floorf.cpp b/libc/src/math/generic/floorf.cpp
index ca059e6..8566668 100644
--- a/libc/src/math/generic/floorf.cpp
+++ b/libc/src/math/generic/floorf.cpp
@@ -9,10 +9,9 @@
#include "src/math/floorf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, floorf, (float x)) { return fputil::floor(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/floorf128.cpp b/libc/src/math/generic/floorf128.cpp
index f3ad20a..22a8eac 100644
--- a/libc/src/math/generic/floorf128.cpp
+++ b/libc/src/math/generic/floorf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/floorf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, floorf128, (float128 x)) {
return fputil::floor(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/floorf16.cpp b/libc/src/math/generic/floorf16.cpp
index 46068c2..db0b326 100644
--- a/libc/src/math/generic/floorf16.cpp
+++ b/libc/src/math/generic/floorf16.cpp
@@ -9,10 +9,9 @@
#include "src/math/floorf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, floorf16, (float16 x)) { return fputil::floor(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/floorl.cpp b/libc/src/math/generic/floorl.cpp
index 74fbb68..2803127 100644
--- a/libc/src/math/generic/floorl.cpp
+++ b/libc/src/math/generic/floorl.cpp
@@ -9,12 +9,11 @@
#include "src/math/floorl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, floorl, (long double x)) {
return fputil::floor(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fma.cpp b/libc/src/math/generic/fma.cpp
index 2ea4ae9..7937766 100644
--- a/libc/src/math/generic/fma.cpp
+++ b/libc/src/math/generic/fma.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "src/__support/FPUtil/FMA.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fma, (double x, double y, double z)) {
return fputil::fma<double>(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaf.cpp b/libc/src/math/generic/fmaf.cpp
index dad85b4..d367a06 100644
--- a/libc/src/math/generic/fmaf.cpp
+++ b/libc/src/math/generic/fmaf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "src/__support/FPUtil/FMA.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaf, (float x, float y, float z)) {
return fputil::fma<float>(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmax.cpp b/libc/src/math/generic/fmax.cpp
index b9ac4a0..7feeee9 100644
--- a/libc/src/math/generic/fmax.cpp
+++ b/libc/src/math/generic/fmax.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmax.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmax, (double x, double y)) {
return fputil::fmax(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaxf.cpp b/libc/src/math/generic/fmaxf.cpp
index 1c422de..3241092 100644
--- a/libc/src/math/generic/fmaxf.cpp
+++ b/libc/src/math/generic/fmaxf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaxf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaxf, (float x, float y)) {
return fputil::fmax(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaxf128.cpp b/libc/src/math/generic/fmaxf128.cpp
index 08a9c8f..096e4be 100644
--- a/libc/src/math/generic/fmaxf128.cpp
+++ b/libc/src/math/generic/fmaxf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaxf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fmaxf128, (float128 x, float128 y)) {
return fputil::fmax(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaxf16.cpp b/libc/src/math/generic/fmaxf16.cpp
index 02c2bd8..c317aef 100644
--- a/libc/src/math/generic/fmaxf16.cpp
+++ b/libc/src/math/generic/fmaxf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaxf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fmaxf16, (float16 x, float16 y)) {
return fputil::fmax(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum.cpp b/libc/src/math/generic/fmaximum.cpp
index 1493521..ac9593b 100644
--- a/libc/src/math/generic/fmaximum.cpp
+++ b/libc/src/math/generic/fmaximum.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmaximum, (double x, double y)) {
return fputil::fmaximum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_mag.cpp b/libc/src/math/generic/fmaximum_mag.cpp
index a0152bf7..0deb0c2 100644
--- a/libc/src/math/generic/fmaximum_mag.cpp
+++ b/libc/src/math/generic/fmaximum_mag.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_mag.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmaximum_mag, (double x, double y)) {
return fputil::fmaximum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_mag_num.cpp b/libc/src/math/generic/fmaximum_mag_num.cpp
index de250bbd..d0b1096 100644
--- a/libc/src/math/generic/fmaximum_mag_num.cpp
+++ b/libc/src/math/generic/fmaximum_mag_num.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_mag_num.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmaximum_mag_num, (double x, double y)) {
return fputil::fmaximum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_mag_numf.cpp b/libc/src/math/generic/fmaximum_mag_numf.cpp
index e372f1b..672d3fd 100644
--- a/libc/src/math/generic/fmaximum_mag_numf.cpp
+++ b/libc/src/math/generic/fmaximum_mag_numf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_mag_numf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaximum_mag_numf, (float x, float y)) {
return fputil::fmaximum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_mag_numf128.cpp b/libc/src/math/generic/fmaximum_mag_numf128.cpp
index 09e7248..e7d13f1 100644
--- a/libc/src/math/generic/fmaximum_mag_numf128.cpp
+++ b/libc/src/math/generic/fmaximum_mag_numf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_mag_numf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fmaximum_mag_numf128, (float128 x, float128 y)) {
return fputil::fmaximum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_mag_numf16.cpp b/libc/src/math/generic/fmaximum_mag_numf16.cpp
index d81b9fe..5055802 100644
--- a/libc/src/math/generic/fmaximum_mag_numf16.cpp
+++ b/libc/src/math/generic/fmaximum_mag_numf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_mag_numf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fmaximum_mag_numf16, (float16 x, float16 y)) {
return fputil::fmaximum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_mag_numl.cpp b/libc/src/math/generic/fmaximum_mag_numl.cpp
index 3816bdd..a8499ca 100644
--- a/libc/src/math/generic/fmaximum_mag_numl.cpp
+++ b/libc/src/math/generic/fmaximum_mag_numl.cpp
@@ -9,13 +9,12 @@
#include "src/math/fmaximum_mag_numl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fmaximum_mag_numl,
(long double x, long double y)) {
return fputil::fmaximum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_magf.cpp b/libc/src/math/generic/fmaximum_magf.cpp
index 41099a1..380aca0 100644
--- a/libc/src/math/generic/fmaximum_magf.cpp
+++ b/libc/src/math/generic/fmaximum_magf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_magf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaximum_magf, (float x, float y)) {
return fputil::fmaximum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_magf128.cpp b/libc/src/math/generic/fmaximum_magf128.cpp
index 671d0fb..301938fb 100644
--- a/libc/src/math/generic/fmaximum_magf128.cpp
+++ b/libc/src/math/generic/fmaximum_magf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_magf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fmaximum_magf128, (float128 x, float128 y)) {
return fputil::fmaximum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_magf16.cpp b/libc/src/math/generic/fmaximum_magf16.cpp
index 79e75ab..fbd5eac 100644
--- a/libc/src/math/generic/fmaximum_magf16.cpp
+++ b/libc/src/math/generic/fmaximum_magf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_magf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fmaximum_magf16, (float16 x, float16 y)) {
return fputil::fmaximum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_magl.cpp b/libc/src/math/generic/fmaximum_magl.cpp
index 1230076..283a11e 100644
--- a/libc/src/math/generic/fmaximum_magl.cpp
+++ b/libc/src/math/generic/fmaximum_magl.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_magl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fmaximum_magl, (long double x, long double y)) {
return fputil::fmaximum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_num.cpp b/libc/src/math/generic/fmaximum_num.cpp
index 33df7da..23553db 100644
--- a/libc/src/math/generic/fmaximum_num.cpp
+++ b/libc/src/math/generic/fmaximum_num.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_num.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmaximum_num, (double x, double y)) {
return fputil::fmaximum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_numf.cpp b/libc/src/math/generic/fmaximum_numf.cpp
index 1577080..f946ff4 100644
--- a/libc/src/math/generic/fmaximum_numf.cpp
+++ b/libc/src/math/generic/fmaximum_numf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_numf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaximum_numf, (float x, float y)) {
return fputil::fmaximum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_numf128.cpp b/libc/src/math/generic/fmaximum_numf128.cpp
index 5cfaca5..f33a5e1 100644
--- a/libc/src/math/generic/fmaximum_numf128.cpp
+++ b/libc/src/math/generic/fmaximum_numf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_numf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fmaximum_numf128, (float128 x, float128 y)) {
return fputil::fmaximum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_numf16.cpp b/libc/src/math/generic/fmaximum_numf16.cpp
index 394ce8b..187cfbe 100644
--- a/libc/src/math/generic/fmaximum_numf16.cpp
+++ b/libc/src/math/generic/fmaximum_numf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_numf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fmaximum_numf16, (float16 x, float16 y)) {
return fputil::fmaximum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximum_numl.cpp b/libc/src/math/generic/fmaximum_numl.cpp
index eecebf6..503fc41 100644
--- a/libc/src/math/generic/fmaximum_numl.cpp
+++ b/libc/src/math/generic/fmaximum_numl.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximum_numl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fmaximum_numl, (long double x, long double y)) {
return fputil::fmaximum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximumf.cpp b/libc/src/math/generic/fmaximumf.cpp
index faa00a6..3b2a609 100644
--- a/libc/src/math/generic/fmaximumf.cpp
+++ b/libc/src/math/generic/fmaximumf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximumf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaximumf, (float x, float y)) {
return fputil::fmaximum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximumf128.cpp b/libc/src/math/generic/fmaximumf128.cpp
index 362b583..0099c91 100644
--- a/libc/src/math/generic/fmaximumf128.cpp
+++ b/libc/src/math/generic/fmaximumf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximumf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fmaximumf128, (float128 x, float128 y)) {
return fputil::fmaximum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximumf16.cpp b/libc/src/math/generic/fmaximumf16.cpp
index aa4982d..9e194d2ece 100644
--- a/libc/src/math/generic/fmaximumf16.cpp
+++ b/libc/src/math/generic/fmaximumf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximumf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fmaximumf16, (float16 x, float16 y)) {
return fputil::fmaximum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaximuml.cpp b/libc/src/math/generic/fmaximuml.cpp
index 65e3b69..ecd6983 100644
--- a/libc/src/math/generic/fmaximuml.cpp
+++ b/libc/src/math/generic/fmaximuml.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaximuml.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fmaximuml, (long double x, long double y)) {
return fputil::fmaximum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmaxl.cpp b/libc/src/math/generic/fmaxl.cpp
index a5460f5..6c62507 100644
--- a/libc/src/math/generic/fmaxl.cpp
+++ b/libc/src/math/generic/fmaxl.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmaxl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fmaxl, (long double x, long double y)) {
return fputil::fmax(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmin.cpp b/libc/src/math/generic/fmin.cpp
index 2351874..b9f313d 100644
--- a/libc/src/math/generic/fmin.cpp
+++ b/libc/src/math/generic/fmin.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmin.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmin, (double x, double y)) {
return fputil::fmin(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminf.cpp b/libc/src/math/generic/fminf.cpp
index 83dd0aa..539fedb 100644
--- a/libc/src/math/generic/fminf.cpp
+++ b/libc/src/math/generic/fminf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fminf, (float x, float y)) {
return fputil::fmin(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminf128.cpp b/libc/src/math/generic/fminf128.cpp
index 184b7e3..084ed4c 100644
--- a/libc/src/math/generic/fminf128.cpp
+++ b/libc/src/math/generic/fminf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fminf128, (float128 x, float128 y)) {
return fputil::fmin(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminf16.cpp b/libc/src/math/generic/fminf16.cpp
index 8b69273..12547c3 100644
--- a/libc/src/math/generic/fminf16.cpp
+++ b/libc/src/math/generic/fminf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fminf16, (float16 x, float16 y)) {
return fputil::fmin(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum.cpp b/libc/src/math/generic/fminimum.cpp
index 2f14e64..28b257d 100644
--- a/libc/src/math/generic/fminimum.cpp
+++ b/libc/src/math/generic/fminimum.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fminimum, (double x, double y)) {
return fputil::fminimum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_mag.cpp b/libc/src/math/generic/fminimum_mag.cpp
index 8d8001d..6af9957 100644
--- a/libc/src/math/generic/fminimum_mag.cpp
+++ b/libc/src/math/generic/fminimum_mag.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_mag.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fminimum_mag, (double x, double y)) {
return fputil::fminimum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_mag_num.cpp b/libc/src/math/generic/fminimum_mag_num.cpp
index ab049b5..fc5431a 100644
--- a/libc/src/math/generic/fminimum_mag_num.cpp
+++ b/libc/src/math/generic/fminimum_mag_num.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_mag_num.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fminimum_mag_num, (double x, double y)) {
return fputil::fminimum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_mag_numf.cpp b/libc/src/math/generic/fminimum_mag_numf.cpp
index 2aa88c7..71179a6 100644
--- a/libc/src/math/generic/fminimum_mag_numf.cpp
+++ b/libc/src/math/generic/fminimum_mag_numf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_mag_numf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fminimum_mag_numf, (float x, float y)) {
return fputil::fminimum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_mag_numf128.cpp b/libc/src/math/generic/fminimum_mag_numf128.cpp
index ec7ab54..109ce7e 100644
--- a/libc/src/math/generic/fminimum_mag_numf128.cpp
+++ b/libc/src/math/generic/fminimum_mag_numf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_mag_numf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fminimum_mag_numf128, (float128 x, float128 y)) {
return fputil::fminimum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_mag_numf16.cpp b/libc/src/math/generic/fminimum_mag_numf16.cpp
index 5805514..1a893c6 100644
--- a/libc/src/math/generic/fminimum_mag_numf16.cpp
+++ b/libc/src/math/generic/fminimum_mag_numf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_mag_numf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fminimum_mag_numf16, (float16 x, float16 y)) {
return fputil::fminimum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_mag_numl.cpp b/libc/src/math/generic/fminimum_mag_numl.cpp
index 70fea1f..c97ce6e 100644
--- a/libc/src/math/generic/fminimum_mag_numl.cpp
+++ b/libc/src/math/generic/fminimum_mag_numl.cpp
@@ -9,13 +9,12 @@
#include "src/math/fminimum_mag_numl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fminimum_mag_numl,
(long double x, long double y)) {
return fputil::fminimum_mag_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_magf.cpp b/libc/src/math/generic/fminimum_magf.cpp
index fcc2e05..834f6a4 100644
--- a/libc/src/math/generic/fminimum_magf.cpp
+++ b/libc/src/math/generic/fminimum_magf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_magf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fminimum_magf, (float x, float y)) {
return fputil::fminimum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_magf128.cpp b/libc/src/math/generic/fminimum_magf128.cpp
index 3e7e01f..2828e28 100644
--- a/libc/src/math/generic/fminimum_magf128.cpp
+++ b/libc/src/math/generic/fminimum_magf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_magf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fminimum_magf128, (float128 x, float128 y)) {
return fputil::fminimum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_magf16.cpp b/libc/src/math/generic/fminimum_magf16.cpp
index 4417f753..45183a9 100644
--- a/libc/src/math/generic/fminimum_magf16.cpp
+++ b/libc/src/math/generic/fminimum_magf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_magf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fminimum_magf16, (float16 x, float16 y)) {
return fputil::fminimum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_magl.cpp b/libc/src/math/generic/fminimum_magl.cpp
index befc4ac..50e328f 100644
--- a/libc/src/math/generic/fminimum_magl.cpp
+++ b/libc/src/math/generic/fminimum_magl.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_magl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fminimum_magl, (long double x, long double y)) {
return fputil::fminimum_mag(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_num.cpp b/libc/src/math/generic/fminimum_num.cpp
index 3ff79de..e89c7f5 100644
--- a/libc/src/math/generic/fminimum_num.cpp
+++ b/libc/src/math/generic/fminimum_num.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_num.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fminimum_num, (double x, double y)) {
return fputil::fminimum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_numf.cpp b/libc/src/math/generic/fminimum_numf.cpp
index c7ac99b..c37c8bd 100644
--- a/libc/src/math/generic/fminimum_numf.cpp
+++ b/libc/src/math/generic/fminimum_numf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_numf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fminimum_numf, (float x, float y)) {
return fputil::fminimum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_numf128.cpp b/libc/src/math/generic/fminimum_numf128.cpp
index 6d95712..6b1f77b 100644
--- a/libc/src/math/generic/fminimum_numf128.cpp
+++ b/libc/src/math/generic/fminimum_numf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_numf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fminimum_numf128, (float128 x, float128 y)) {
return fputil::fminimum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_numf16.cpp b/libc/src/math/generic/fminimum_numf16.cpp
index 0af7205..825ad3e 100644
--- a/libc/src/math/generic/fminimum_numf16.cpp
+++ b/libc/src/math/generic/fminimum_numf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_numf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fminimum_numf16, (float16 x, float16 y)) {
return fputil::fminimum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimum_numl.cpp b/libc/src/math/generic/fminimum_numl.cpp
index 8a4cff3..22045f8 100644
--- a/libc/src/math/generic/fminimum_numl.cpp
+++ b/libc/src/math/generic/fminimum_numl.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimum_numl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fminimum_numl, (long double x, long double y)) {
return fputil::fminimum_num(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimumf.cpp b/libc/src/math/generic/fminimumf.cpp
index 57e33c1..c937fb0 100644
--- a/libc/src/math/generic/fminimumf.cpp
+++ b/libc/src/math/generic/fminimumf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimumf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fminimumf, (float x, float y)) {
return fputil::fminimum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimumf128.cpp b/libc/src/math/generic/fminimumf128.cpp
index 3dbd18d..24e02b8 100644
--- a/libc/src/math/generic/fminimumf128.cpp
+++ b/libc/src/math/generic/fminimumf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimumf128.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fminimumf128, (float128 x, float128 y)) {
return fputil::fminimum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimumf16.cpp b/libc/src/math/generic/fminimumf16.cpp
index 42ad9a5..16f738b 100644
--- a/libc/src/math/generic/fminimumf16.cpp
+++ b/libc/src/math/generic/fminimumf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimumf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fminimumf16, (float16 x, float16 y)) {
return fputil::fminimum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminimuml.cpp b/libc/src/math/generic/fminimuml.cpp
index c80cb0a..4331950 100644
--- a/libc/src/math/generic/fminimuml.cpp
+++ b/libc/src/math/generic/fminimuml.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminimuml.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fminimuml, (long double x, long double y)) {
return fputil::fminimum(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fminl.cpp b/libc/src/math/generic/fminl.cpp
index aa15de7..147f6c5 100644
--- a/libc/src/math/generic/fminl.cpp
+++ b/libc/src/math/generic/fminl.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fminl, (long double x, long double y)) {
return fputil::fmin(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmod.cpp b/libc/src/math/generic/fmod.cpp
index 010e66a..69e0c8d 100644
--- a/libc/src/math/generic/fmod.cpp
+++ b/libc/src/math/generic/fmod.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmod.h"
#include "src/__support/FPUtil/generic/FMod.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmod, (double x, double y)) {
return fputil::generic::FMod<double>::eval(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmodf.cpp b/libc/src/math/generic/fmodf.cpp
index 1e1ef48..9a9e46e 100644
--- a/libc/src/math/generic/fmodf.cpp
+++ b/libc/src/math/generic/fmodf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmodf.h"
#include "src/__support/FPUtil/generic/FMod.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmodf, (float x, float y)) {
return fputil::generic::FMod<float, uint64_t>::eval(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmodf128.cpp b/libc/src/math/generic/fmodf128.cpp
index a7633bf..08a3797 100644
--- a/libc/src/math/generic/fmodf128.cpp
+++ b/libc/src/math/generic/fmodf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmodf128.h"
#include "src/__support/FPUtil/generic/FMod.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fmodf128, (float128 x, float128 y)) {
return fputil::generic::FMod<float128>::eval(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmodf16.cpp b/libc/src/math/generic/fmodf16.cpp
index 2585639..a5bfd78 100644
--- a/libc/src/math/generic/fmodf16.cpp
+++ b/libc/src/math/generic/fmodf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmodf16.h"
#include "src/__support/FPUtil/generic/FMod.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fmodf16, (float16 x, float16 y)) {
return fputil::generic::FMod<float16, uint32_t>::eval(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmodl.cpp b/libc/src/math/generic/fmodl.cpp
index 1af8ffc..23a3702 100644
--- a/libc/src/math/generic/fmodl.cpp
+++ b/libc/src/math/generic/fmodl.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmodl.h"
#include "src/__support/FPUtil/generic/FMod.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fmodl, (long double x, long double y)) {
return fputil::generic::FMod<long double>::eval(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fmul.cpp b/libc/src/math/generic/fmul.cpp
index 16fa11e..40af204 100644
--- a/libc/src/math/generic/fmul.cpp
+++ b/libc/src/math/generic/fmul.cpp
@@ -12,10 +12,9 @@
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/uint128.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmul, (double x, double y)) {
auto x_bits = fputil::FPBits<double>(x);
@@ -126,4 +125,4 @@ LLVM_LIBC_FUNCTION(float, fmul, (double x, double y)) {
return result_bits.get_val();
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/frexp.cpp b/libc/src/math/generic/frexp.cpp
index 0efc0d4..a183ba7 100644
--- a/libc/src/math/generic/frexp.cpp
+++ b/libc/src/math/generic/frexp.cpp
@@ -9,12 +9,11 @@
#include "src/math/frexp.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, frexp, (double x, int *exp)) {
return fputil::frexp(x, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/frexpf.cpp b/libc/src/math/generic/frexpf.cpp
index 09227ba..4fdc869 100644
--- a/libc/src/math/generic/frexpf.cpp
+++ b/libc/src/math/generic/frexpf.cpp
@@ -9,12 +9,11 @@
#include "src/math/frexpf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, frexpf, (float x, int *exp)) {
return fputil::frexp(x, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/frexpf128.cpp b/libc/src/math/generic/frexpf128.cpp
index eb816c4..b50f37d 100644
--- a/libc/src/math/generic/frexpf128.cpp
+++ b/libc/src/math/generic/frexpf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/frexpf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, frexpf128, (float128 x, int *exp)) {
return fputil::frexp(x, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/frexpf16.cpp b/libc/src/math/generic/frexpf16.cpp
index 4571b0d..2d29c07 100644
--- a/libc/src/math/generic/frexpf16.cpp
+++ b/libc/src/math/generic/frexpf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/frexpf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, frexpf16, (float16 x, int *exp)) {
return fputil::frexp(x, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/frexpl.cpp b/libc/src/math/generic/frexpl.cpp
index 6f2b456..0be4e74 100644
--- a/libc/src/math/generic/frexpl.cpp
+++ b/libc/src/math/generic/frexpl.cpp
@@ -9,12 +9,11 @@
#include "src/math/frexpl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, frexpl, (long double x, int *exp)) {
return fputil::frexp(x, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfp.cpp b/libc/src/math/generic/fromfp.cpp
index f75e659..ba3f0a1 100644
--- a/libc/src/math/generic/fromfp.cpp
+++ b/libc/src/math/generic/fromfp.cpp
@@ -9,12 +9,11 @@
#include "src/math/fromfp.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fromfp, (double x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpf.cpp b/libc/src/math/generic/fromfpf.cpp
index 83f0518..fd058a1 100644
--- a/libc/src/math/generic/fromfpf.cpp
+++ b/libc/src/math/generic/fromfpf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fromfpf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fromfpf, (float x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpf128.cpp b/libc/src/math/generic/fromfpf128.cpp
index bcbe86c..440a5da 100644
--- a/libc/src/math/generic/fromfpf128.cpp
+++ b/libc/src/math/generic/fromfpf128.cpp
@@ -9,13 +9,12 @@
#include "src/math/fromfpf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fromfpf128,
(float128 x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpf16.cpp b/libc/src/math/generic/fromfpf16.cpp
index 0166e8e..3604004 100644
--- a/libc/src/math/generic/fromfpf16.cpp
+++ b/libc/src/math/generic/fromfpf16.cpp
@@ -9,13 +9,12 @@
#include "src/math/fromfpf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fromfpf16,
(float16 x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpl.cpp b/libc/src/math/generic/fromfpl.cpp
index ab1cbef..ee3abea 100644
--- a/libc/src/math/generic/fromfpl.cpp
+++ b/libc/src/math/generic/fromfpl.cpp
@@ -9,13 +9,12 @@
#include "src/math/fromfpl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fromfpl,
(long double x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpx.cpp b/libc/src/math/generic/fromfpx.cpp
index cf545df..b9e7e4a 100644
--- a/libc/src/math/generic/fromfpx.cpp
+++ b/libc/src/math/generic/fromfpx.cpp
@@ -9,12 +9,11 @@
#include "src/math/fromfpx.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fromfpx, (double x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpxf.cpp b/libc/src/math/generic/fromfpxf.cpp
index 1af3c98..14734992 100644
--- a/libc/src/math/generic/fromfpxf.cpp
+++ b/libc/src/math/generic/fromfpxf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fromfpxf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fromfpxf, (float x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpxf128.cpp b/libc/src/math/generic/fromfpxf128.cpp
index bb47578..5d930d2 100644
--- a/libc/src/math/generic/fromfpxf128.cpp
+++ b/libc/src/math/generic/fromfpxf128.cpp
@@ -9,13 +9,12 @@
#include "src/math/fromfpxf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, fromfpxf128,
(float128 x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpxf16.cpp b/libc/src/math/generic/fromfpxf16.cpp
index 64a3b86..0854cb66 100644
--- a/libc/src/math/generic/fromfpxf16.cpp
+++ b/libc/src/math/generic/fromfpxf16.cpp
@@ -9,13 +9,12 @@
#include "src/math/fromfpxf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, fromfpxf16,
(float16 x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/fromfpxl.cpp b/libc/src/math/generic/fromfpxl.cpp
index b402aa1..c3db055 100644
--- a/libc/src/math/generic/fromfpxl.cpp
+++ b/libc/src/math/generic/fromfpxl.cpp
@@ -9,13 +9,12 @@
#include "src/math/fromfpxl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, fromfpxl,
(long double x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/true>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/getpayloadf16.cpp b/libc/src/math/generic/getpayloadf16.cpp
index 34c31ac..0923226 100644
--- a/libc/src/math/generic/getpayloadf16.cpp
+++ b/libc/src/math/generic/getpayloadf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/getpayloadf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, getpayloadf16, (const float16 *x)) {
return fputil::getpayload(*x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/hypot.cpp b/libc/src/math/generic/hypot.cpp
index 0dfe436..a1914d0 100644
--- a/libc/src/math/generic/hypot.cpp
+++ b/libc/src/math/generic/hypot.cpp
@@ -9,12 +9,11 @@
#include "src/math/hypot.h"
#include "src/__support/FPUtil/Hypot.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, hypot, (double x, double y)) {
return LIBC_NAMESPACE::fputil::hypot(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/hypotf.cpp b/libc/src/math/generic/hypotf.cpp
index 75c55ed..b09d09a 100644
--- a/libc/src/math/generic/hypotf.cpp
+++ b/libc/src/math/generic/hypotf.cpp
@@ -10,9 +10,8 @@
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, hypotf, (float x, float y)) {
using DoubleBits = fputil::FPBits<double>;
@@ -71,4 +70,4 @@ LLVM_LIBC_FUNCTION(float, hypotf, (float x, float y)) {
return static_cast<float>(result.get_val());
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ilogb.cpp b/libc/src/math/generic/ilogb.cpp
index 60f2af2..7e4f669 100644
--- a/libc/src/math/generic/ilogb.cpp
+++ b/libc/src/math/generic/ilogb.cpp
@@ -9,10 +9,9 @@
#include "src/math/ilogb.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogb, (double x)) { return fputil::intlogb<int>(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ilogbf.cpp b/libc/src/math/generic/ilogbf.cpp
index 7da2aff..422788c 100644
--- a/libc/src/math/generic/ilogbf.cpp
+++ b/libc/src/math/generic/ilogbf.cpp
@@ -9,10 +9,9 @@
#include "src/math/ilogbf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogbf, (float x)) { return fputil::intlogb<int>(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ilogbf128.cpp b/libc/src/math/generic/ilogbf128.cpp
index 4abc670..4049ecc 100644
--- a/libc/src/math/generic/ilogbf128.cpp
+++ b/libc/src/math/generic/ilogbf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/ilogbf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogbf128, (float128 x)) {
return fputil::intlogb<int>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ilogbf16.cpp b/libc/src/math/generic/ilogbf16.cpp
index 9217cdf..87e43f8 100644
--- a/libc/src/math/generic/ilogbf16.cpp
+++ b/libc/src/math/generic/ilogbf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/ilogbf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogbf16, (float16 x)) {
return fputil::intlogb<int>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ilogbl.cpp b/libc/src/math/generic/ilogbl.cpp
index 12460a8..b7f7eb4 100644
--- a/libc/src/math/generic/ilogbl.cpp
+++ b/libc/src/math/generic/ilogbl.cpp
@@ -9,12 +9,11 @@
#include "src/math/ilogbl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogbl, (long double x)) {
return fputil::intlogb<int>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/inv_trigf_utils.cpp b/libc/src/math/generic/inv_trigf_utils.cpp
index f23028b..19c8b99 100644
--- a/libc/src/math/generic/inv_trigf_utils.cpp
+++ b/libc/src/math/generic/inv_trigf_utils.cpp
@@ -7,9 +7,8 @@
//===----------------------------------------------------------------------===//
#include "inv_trigf_utils.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Polynomial approximation for 0 <= x <= 1:
// atan(x) ~ atan((i/16) + (x - (i/16)) * Q(x - i/16)
@@ -83,4 +82,4 @@ double ATAN_COEFFS[17][9] = {
0x1.555e31a1e15e9p-6, -0x1.245240d65e629p-7, -0x1.fa9ba66478903p-11},
};
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/inv_trigf_utils.h b/libc/src/math/generic/inv_trigf_utils.h
index bdabec9..e60c367 100644
--- a/libc/src/math/generic/inv_trigf_utils.h
+++ b/libc/src/math/generic/inv_trigf_utils.h
@@ -12,9 +12,8 @@
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// PI and PI / 2
constexpr double M_MATH_PI = 0x1.921fb54442d18p+1;
@@ -57,6 +56,6 @@ LIBC_INLINE double asin_eval(double xsq) {
return fputil::multiply_add(xsq, r2, r1);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_INV_TRIGF_UTILS_H
diff --git a/libc/src/math/generic/isnan.cpp b/libc/src/math/generic/isnan.cpp
index 73230a4..dd7eadb 100644
--- a/libc/src/math/generic/isnan.cpp
+++ b/libc/src/math/generic/isnan.cpp
@@ -8,10 +8,9 @@
#include "src/math/isnan.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, isnan, (double x)) { return __builtin_isnan(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/isnanf.cpp b/libc/src/math/generic/isnanf.cpp
index a1d814e..98a81b0 100644
--- a/libc/src/math/generic/isnanf.cpp
+++ b/libc/src/math/generic/isnanf.cpp
@@ -8,10 +8,9 @@
#include "src/math/isnanf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, isnanf, (float x)) { return __builtin_isnan(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/isnanl.cpp b/libc/src/math/generic/isnanl.cpp
index 57ce79f3..d61bfd5 100644
--- a/libc/src/math/generic/isnanl.cpp
+++ b/libc/src/math/generic/isnanl.cpp
@@ -8,10 +8,9 @@
#include "src/math/isnanl.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, isnanl, (long double x)) { return __builtin_isnan(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ldexp.cpp b/libc/src/math/generic/ldexp.cpp
index 93ed328..18aae09 100644
--- a/libc/src/math/generic/ldexp.cpp
+++ b/libc/src/math/generic/ldexp.cpp
@@ -9,12 +9,11 @@
#include "src/math/ldexp.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ldexp, (double x, int exp)) {
return fputil::ldexp(x, exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ldexpf.cpp b/libc/src/math/generic/ldexpf.cpp
index 63c5d21..37f88ab 100644
--- a/libc/src/math/generic/ldexpf.cpp
+++ b/libc/src/math/generic/ldexpf.cpp
@@ -9,12 +9,11 @@
#include "src/math/ldexpf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ldexpf, (float x, int exp)) {
return fputil::ldexp(x, exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ldexpf128.cpp b/libc/src/math/generic/ldexpf128.cpp
index 03b1a2d..ed2ebd3 100644
--- a/libc/src/math/generic/ldexpf128.cpp
+++ b/libc/src/math/generic/ldexpf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/ldexpf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, ldexpf128, (float128 x, int exp)) {
return fputil::ldexp(x, exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ldexpf16.cpp b/libc/src/math/generic/ldexpf16.cpp
index caa344b..ed15c45 100644
--- a/libc/src/math/generic/ldexpf16.cpp
+++ b/libc/src/math/generic/ldexpf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/ldexpf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, ldexpf16, (float16 x, int exp)) {
return fputil::ldexp(x, exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ldexpl.cpp b/libc/src/math/generic/ldexpl.cpp
index 9e1de5c..8b29009 100644
--- a/libc/src/math/generic/ldexpl.cpp
+++ b/libc/src/math/generic/ldexpl.cpp
@@ -9,12 +9,11 @@
#include "src/math/ldexpl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, ldexpl, (long double x, int exp)) {
return fputil::ldexp(x, exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llogb.cpp b/libc/src/math/generic/llogb.cpp
index 3850ac0..917bc38 100644
--- a/libc/src/math/generic/llogb.cpp
+++ b/libc/src/math/generic/llogb.cpp
@@ -9,10 +9,9 @@
#include "src/math/llogb.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, llogb, (double x)) { return fputil::intlogb<long>(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llogbf.cpp b/libc/src/math/generic/llogbf.cpp
index fedad95..ca1c03d 100644
--- a/libc/src/math/generic/llogbf.cpp
+++ b/libc/src/math/generic/llogbf.cpp
@@ -9,10 +9,9 @@
#include "src/math/llogbf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, llogbf, (float x)) { return fputil::intlogb<long>(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llogbf128.cpp b/libc/src/math/generic/llogbf128.cpp
index 9106731..5ae4af3 100644
--- a/libc/src/math/generic/llogbf128.cpp
+++ b/libc/src/math/generic/llogbf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/llogbf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, llogbf128, (float128 x)) {
return fputil::intlogb<long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llogbf16.cpp b/libc/src/math/generic/llogbf16.cpp
index c792e90..b7a21b9 100644
--- a/libc/src/math/generic/llogbf16.cpp
+++ b/libc/src/math/generic/llogbf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/llogbf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, llogbf16, (float16 x)) {
return fputil::intlogb<long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llogbl.cpp b/libc/src/math/generic/llogbl.cpp
index 7ee3ac5..a092997 100644
--- a/libc/src/math/generic/llogbl.cpp
+++ b/libc/src/math/generic/llogbl.cpp
@@ -9,12 +9,11 @@
#include "src/math/llogbl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, llogbl, (long double x)) {
return fputil::intlogb<long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llrint.cpp b/libc/src/math/generic/llrint.cpp
index f6e8cab..87755e8 100644
--- a/libc/src/math/generic/llrint.cpp
+++ b/libc/src/math/generic/llrint.cpp
@@ -9,9 +9,8 @@
#include "src/math/llrint.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrint, (double x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<double,
@@ -19,4 +18,4 @@ LLVM_LIBC_FUNCTION(long long, llrint, (double x)) {
x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llrintf.cpp b/libc/src/math/generic/llrintf.cpp
index b5180de..836e7cb 100644
--- a/libc/src/math/generic/llrintf.cpp
+++ b/libc/src/math/generic/llrintf.cpp
@@ -9,9 +9,8 @@
#include "src/math/llrintf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrintf, (float x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<float,
@@ -19,4 +18,4 @@ LLVM_LIBC_FUNCTION(long long, llrintf, (float x)) {
x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llrintf128.cpp b/libc/src/math/generic/llrintf128.cpp
index af48985..e5a4c50 100644
--- a/libc/src/math/generic/llrintf128.cpp
+++ b/libc/src/math/generic/llrintf128.cpp
@@ -9,9 +9,8 @@
#include "src/math/llrintf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrintf128, (float128 x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<float128,
@@ -19,4 +18,4 @@ LLVM_LIBC_FUNCTION(long long, llrintf128, (float128 x)) {
x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llrintf16.cpp b/libc/src/math/generic/llrintf16.cpp
index c6b31c7..0bed21a 100644
--- a/libc/src/math/generic/llrintf16.cpp
+++ b/libc/src/math/generic/llrintf16.cpp
@@ -9,9 +9,8 @@
#include "src/math/llrintf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrintf16, (float16 x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<float16,
@@ -19,4 +18,4 @@ LLVM_LIBC_FUNCTION(long long, llrintf16, (float16 x)) {
x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llrintl.cpp b/libc/src/math/generic/llrintl.cpp
index 35ae609..104e3d4 100644
--- a/libc/src/math/generic/llrintl.cpp
+++ b/libc/src/math/generic/llrintl.cpp
@@ -9,13 +9,12 @@
#include "src/math/llrintl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrintl, (long double x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<
long double, long long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llround.cpp b/libc/src/math/generic/llround.cpp
index 40b2614..41bee852 100644
--- a/libc/src/math/generic/llround.cpp
+++ b/libc/src/math/generic/llround.cpp
@@ -9,12 +9,11 @@
#include "src/math/llround.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llround, (double x)) {
return fputil::round_to_signed_integer<double, long long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llroundf.cpp b/libc/src/math/generic/llroundf.cpp
index 259c769..67105e8 100644
--- a/libc/src/math/generic/llroundf.cpp
+++ b/libc/src/math/generic/llroundf.cpp
@@ -9,12 +9,11 @@
#include "src/math/llroundf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llroundf, (float x)) {
return fputil::round_to_signed_integer<float, long long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llroundf128.cpp b/libc/src/math/generic/llroundf128.cpp
index 2df24f5..2579163 100644
--- a/libc/src/math/generic/llroundf128.cpp
+++ b/libc/src/math/generic/llroundf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/llroundf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llroundf128, (float128 x)) {
return fputil::round_to_signed_integer<float128, long long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llroundf16.cpp b/libc/src/math/generic/llroundf16.cpp
index d3f691e..9485674 100644
--- a/libc/src/math/generic/llroundf16.cpp
+++ b/libc/src/math/generic/llroundf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/llroundf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llroundf16, (float16 x)) {
return fputil::round_to_signed_integer<float16, long long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/llroundl.cpp b/libc/src/math/generic/llroundl.cpp
index 49b41c8..98cfb36 100644
--- a/libc/src/math/generic/llroundl.cpp
+++ b/libc/src/math/generic/llroundl.cpp
@@ -9,12 +9,11 @@
#include "src/math/llroundl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llroundl, (long double x)) {
return fputil::round_to_signed_integer<long double, long long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/log.cpp b/libc/src/math/generic/log.cpp
index 57c70e3..6de0d90 100644
--- a/libc/src/math/generic/log.cpp
+++ b/libc/src/math/generic/log.cpp
@@ -15,13 +15,12 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "common_constants.h"
#include "log_range_reduction.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// 128-bit precision dyadic floating point numbers.
using Float128 = typename fputil::DyadicFloat<128>;
@@ -838,4 +837,4 @@ LLVM_LIBC_FUNCTION(double, log, (double x)) {
return log_accurate(x_e, index, u);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/log10.cpp b/libc/src/math/generic/log10.cpp
index b99b22b..fb839c1 100644
--- a/libc/src/math/generic/log10.cpp
+++ b/libc/src/math/generic/log10.cpp
@@ -15,13 +15,12 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "common_constants.h"
#include "log_range_reduction.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// 128-bit precision dyadic floating point numbers.
using Float128 = typename fputil::DyadicFloat<128>;
@@ -899,4 +898,4 @@ LLVM_LIBC_FUNCTION(double, log10, (double x)) {
return log10_accurate(x_e, index, u);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/log10f.cpp b/libc/src/math/generic/log10f.cpp
index f7dd85c..1b6979d 100644
--- a/libc/src/math/generic/log10f.cpp
+++ b/libc/src/math/generic/log10f.cpp
@@ -15,7 +15,6 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h"
@@ -55,7 +54,7 @@
// Dept. of Comp. Sci., Rutgets U., Technical Report DCS-TR-758, Nov. 2021.
// https://arxiv.org/pdf/2111.12852.pdf.
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Lookup table for -log10(r) where r is defined in common_constants.cpp.
static constexpr double LOG10_R[128] = {
@@ -216,4 +215,4 @@ LLVM_LIBC_FUNCTION(float, log10f, (float x)) {
return static_cast<float>(r);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/log1p.cpp b/libc/src/math/generic/log1p.cpp
index f301a5a..2b18708 100644
--- a/libc/src/math/generic/log1p.cpp
+++ b/libc/src/math/generic/log1p.cpp
@@ -15,12 +15,11 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "common_constants.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// 128-bit precision dyadic floating point numbers.
using Float128 = typename fputil::DyadicFloat<128>;
@@ -1042,4 +1041,4 @@ LLVM_LIBC_FUNCTION(double, log1p, (double x)) {
return log1p_accurate(x_e, idx, v_dd);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/log1pf.cpp b/libc/src/math/generic/log1pf.cpp
index 869cb07..e3c7d95 100644
--- a/libc/src/math/generic/log1pf.cpp
+++ b/libc/src/math/generic/log1pf.cpp
@@ -15,7 +15,6 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h"
@@ -31,7 +30,7 @@
// generated with Sollya using the following command:
// fpminimax(log(1 + x)/x, 7, [|D...|], [-2^-6; 2^-6]);
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace internal {
@@ -154,4 +153,4 @@ LLVM_LIBC_FUNCTION(float, log1pf, (float x)) {
return static_cast<float>(r);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/log2.cpp b/libc/src/math/generic/log2.cpp
index 7d868e2..c68bc60 100644
--- a/libc/src/math/generic/log2.cpp
+++ b/libc/src/math/generic/log2.cpp
@@ -15,13 +15,12 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "common_constants.h"
#include "log_range_reduction.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// 128-bit precision dyadic floating point numbers.
using Float128 = typename fputil::DyadicFloat<128>;
@@ -960,4 +959,4 @@ LLVM_LIBC_FUNCTION(double, log2, (double x)) {
return log2_accurate(x_e, index, u);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/log2f.cpp b/libc/src/math/generic/log2f.cpp
index 9cad02d..c9f7b21 100644
--- a/libc/src/math/generic/log2f.cpp
+++ b/libc/src/math/generic/log2f.cpp
@@ -14,7 +14,6 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
// This is a correctly-rounded algorithm for log2(x) in single precision with
@@ -52,7 +51,7 @@
// Dept. of Comp. Sci., Rutgets U., Technical Report DCS-TR-758, Nov. 2021.
// https://arxiv.org/pdf/2111.12852.pdf.
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, log2f, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -121,4 +120,4 @@ LLVM_LIBC_FUNCTION(float, log2f, (float x)) {
return static_cast<float>(r);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/log_range_reduction.h b/libc/src/math/generic/log_range_reduction.h
index 8c94230..d12da47 100644
--- a/libc/src/math/generic/log_range_reduction.h
+++ b/libc/src/math/generic/log_range_reduction.h
@@ -11,10 +11,9 @@
#include "common_constants.h"
#include "src/__support/FPUtil/dyadic_float.h"
-#include "src/__support/macros/config.h"
#include "src/__support/uint128.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Struct to store -log*(r) for 4 range reduction steps.
struct LogRR {
@@ -88,6 +87,6 @@ log_range_reduction(double m_x, const LogRR &log_table,
static_cast<uint64_t>(vv4 >> 64)}));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_LOG_RANGE_REDUCTION_H
diff --git a/libc/src/math/generic/logb.cpp b/libc/src/math/generic/logb.cpp
index 4b8fde9..8cd6edc 100644
--- a/libc/src/math/generic/logb.cpp
+++ b/libc/src/math/generic/logb.cpp
@@ -9,10 +9,9 @@
#include "src/math/logb.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, logb, (double x)) { return fputil::logb(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/logbf.cpp b/libc/src/math/generic/logbf.cpp
index 0dc0251..9f9f7fb 100644
--- a/libc/src/math/generic/logbf.cpp
+++ b/libc/src/math/generic/logbf.cpp
@@ -9,10 +9,9 @@
#include "src/math/logbf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, logbf, (float x)) { return fputil::logb(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/logbf128.cpp b/libc/src/math/generic/logbf128.cpp
index af83487..090433d 100644
--- a/libc/src/math/generic/logbf128.cpp
+++ b/libc/src/math/generic/logbf128.cpp
@@ -9,10 +9,9 @@
#include "src/math/logbf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, logbf128, (float128 x)) { return fputil::logb(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/logbf16.cpp b/libc/src/math/generic/logbf16.cpp
index 6e286a2..52eb9ac 100644
--- a/libc/src/math/generic/logbf16.cpp
+++ b/libc/src/math/generic/logbf16.cpp
@@ -9,10 +9,9 @@
#include "src/math/logbf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, logbf16, (float16 x)) { return fputil::logb(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/logbl.cpp b/libc/src/math/generic/logbl.cpp
index dcab957..f18c372 100644
--- a/libc/src/math/generic/logbl.cpp
+++ b/libc/src/math/generic/logbl.cpp
@@ -9,12 +9,11 @@
#include "src/math/logbl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, logbl, (long double x)) {
return fputil::logb(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/logf.cpp b/libc/src/math/generic/logf.cpp
index f8ecf32..5296ba6 100644
--- a/libc/src/math/generic/logf.cpp
+++ b/libc/src/math/generic/logf.cpp
@@ -14,7 +14,6 @@
#include "src/__support/FPUtil/except_value_utils.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h"
@@ -50,7 +49,7 @@
// USA, January 16-22, 2022.
// https://people.cs.rutgers.edu/~sn349/papers/rlibmall-popl-2022.pdf
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, logf, (float x)) {
constexpr double LOG_2 = 0x1.62e42fefa39efp-1;
@@ -171,4 +170,4 @@ LLVM_LIBC_FUNCTION(float, logf, (float x)) {
return static_cast<float>(r);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lrint.cpp b/libc/src/math/generic/lrint.cpp
index eae9bc1..59fde7b 100644
--- a/libc/src/math/generic/lrint.cpp
+++ b/libc/src/math/generic/lrint.cpp
@@ -9,13 +9,12 @@
#include "src/math/lrint.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrint, (double x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<double,
long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lrintf.cpp b/libc/src/math/generic/lrintf.cpp
index e08c87c..e92014c 100644
--- a/libc/src/math/generic/lrintf.cpp
+++ b/libc/src/math/generic/lrintf.cpp
@@ -9,13 +9,12 @@
#include "src/math/lrintf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrintf, (float x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<float,
long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lrintf128.cpp b/libc/src/math/generic/lrintf128.cpp
index 15ecded..8e06062 100644
--- a/libc/src/math/generic/lrintf128.cpp
+++ b/libc/src/math/generic/lrintf128.cpp
@@ -9,13 +9,12 @@
#include "src/math/lrintf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrintf128, (float128 x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<float128,
long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lrintf16.cpp b/libc/src/math/generic/lrintf16.cpp
index 92af687..d49be28 100644
--- a/libc/src/math/generic/lrintf16.cpp
+++ b/libc/src/math/generic/lrintf16.cpp
@@ -9,13 +9,12 @@
#include "src/math/lrintf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrintf16, (float16 x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<float16,
long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lrintl.cpp b/libc/src/math/generic/lrintl.cpp
index d881aee..b363aac 100644
--- a/libc/src/math/generic/lrintl.cpp
+++ b/libc/src/math/generic/lrintl.cpp
@@ -9,13 +9,12 @@
#include "src/math/lrintl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrintl, (long double x)) {
return fputil::round_to_signed_integer_using_current_rounding_mode<
long double, long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lround.cpp b/libc/src/math/generic/lround.cpp
index b208457..a22d872 100644
--- a/libc/src/math/generic/lround.cpp
+++ b/libc/src/math/generic/lround.cpp
@@ -9,12 +9,11 @@
#include "src/math/lround.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lround, (double x)) {
return fputil::round_to_signed_integer<double, long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lroundf.cpp b/libc/src/math/generic/lroundf.cpp
index 1e1a948..40c1323 100644
--- a/libc/src/math/generic/lroundf.cpp
+++ b/libc/src/math/generic/lroundf.cpp
@@ -9,12 +9,11 @@
#include "src/math/lroundf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lroundf, (float x)) {
return fputil::round_to_signed_integer<float, long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lroundf128.cpp b/libc/src/math/generic/lroundf128.cpp
index 89b15f5..f93c475 100644
--- a/libc/src/math/generic/lroundf128.cpp
+++ b/libc/src/math/generic/lroundf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/lroundf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lroundf128, (float128 x)) {
return fputil::round_to_signed_integer<float128, long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lroundf16.cpp b/libc/src/math/generic/lroundf16.cpp
index d25bc84..db8113d 100644
--- a/libc/src/math/generic/lroundf16.cpp
+++ b/libc/src/math/generic/lroundf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/lroundf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lroundf16, (float16 x)) {
return fputil::round_to_signed_integer<float16, long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/lroundl.cpp b/libc/src/math/generic/lroundl.cpp
index efcf3da..c0c3bde 100644
--- a/libc/src/math/generic/lroundl.cpp
+++ b/libc/src/math/generic/lroundl.cpp
@@ -9,12 +9,11 @@
#include "src/math/lroundl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lroundl, (long double x)) {
return fputil::round_to_signed_integer<long double, long>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/modf.cpp b/libc/src/math/generic/modf.cpp
index ce56aa0..d465d19 100644
--- a/libc/src/math/generic/modf.cpp
+++ b/libc/src/math/generic/modf.cpp
@@ -9,12 +9,11 @@
#include "src/math/modf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, modf, (double x, double *iptr)) {
return fputil::modf(x, *iptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/modff.cpp b/libc/src/math/generic/modff.cpp
index c86a4fb2..daa6697 100644
--- a/libc/src/math/generic/modff.cpp
+++ b/libc/src/math/generic/modff.cpp
@@ -9,12 +9,11 @@
#include "src/math/modff.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, modff, (float x, float *iptr)) {
return fputil::modf(x, *iptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/modff128.cpp b/libc/src/math/generic/modff128.cpp
index 6f519a69..6aef5f5 100644
--- a/libc/src/math/generic/modff128.cpp
+++ b/libc/src/math/generic/modff128.cpp
@@ -9,12 +9,11 @@
#include "src/math/modff128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, modff128, (float128 x, float128 *iptr)) {
return fputil::modf(x, *iptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/modff16.cpp b/libc/src/math/generic/modff16.cpp
index 853fc55..50cc5b5 100644
--- a/libc/src/math/generic/modff16.cpp
+++ b/libc/src/math/generic/modff16.cpp
@@ -9,12 +9,11 @@
#include "src/math/modff16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, modff16, (float16 x, float16 *iptr)) {
return fputil::modf(x, *iptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/modfl.cpp b/libc/src/math/generic/modfl.cpp
index 8c9ab48..3271da2 100644
--- a/libc/src/math/generic/modfl.cpp
+++ b/libc/src/math/generic/modfl.cpp
@@ -9,12 +9,11 @@
#include "src/math/modfl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, modfl, (long double x, long double *iptr)) {
return fputil::modf(x, *iptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nan.cpp b/libc/src/math/generic/nan.cpp
index f92cd3f..c0d7fbf 100644
--- a/libc/src/math/generic/nan.cpp
+++ b/libc/src/math/generic/nan.cpp
@@ -8,11 +8,10 @@
#include "src/math/nan.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/str_to_float.h"
#include "src/errno/libc_errno.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nan, (const char *arg)) {
auto result = internal::strtonan<double>(arg);
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(double, nan, (const char *arg)) {
return result.value;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nanf.cpp b/libc/src/math/generic/nanf.cpp
index 7287182..2751a81a 100644
--- a/libc/src/math/generic/nanf.cpp
+++ b/libc/src/math/generic/nanf.cpp
@@ -8,11 +8,10 @@
#include "src/math/nanf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/str_to_float.h"
#include "src/errno/libc_errno.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nanf, (const char *arg)) {
auto result = internal::strtonan<float>(arg);
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(float, nanf, (const char *arg)) {
return result.value;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nanf128.cpp b/libc/src/math/generic/nanf128.cpp
index 3d8581a..f087c9f 100644
--- a/libc/src/math/generic/nanf128.cpp
+++ b/libc/src/math/generic/nanf128.cpp
@@ -8,11 +8,10 @@
#include "src/math/nanf128.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/str_to_float.h"
#include "src/errno/libc_errno.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, nanf128, (const char *arg)) {
auto result = internal::strtonan<float128>(arg);
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(float128, nanf128, (const char *arg)) {
return result.value;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nanf16.cpp b/libc/src/math/generic/nanf16.cpp
index 27d9d16..c42cd25 100644
--- a/libc/src/math/generic/nanf16.cpp
+++ b/libc/src/math/generic/nanf16.cpp
@@ -8,11 +8,10 @@
#include "src/math/nanf16.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/str_to_float.h"
#include "src/errno/libc_errno.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, nanf16, (const char *arg)) {
auto result = internal::strtonan<float16>(arg);
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(float16, nanf16, (const char *arg)) {
return result.value;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nanl.cpp b/libc/src/math/generic/nanl.cpp
index 4f698cb..76dcb56 100644
--- a/libc/src/math/generic/nanl.cpp
+++ b/libc/src/math/generic/nanl.cpp
@@ -8,11 +8,10 @@
#include "src/math/nanl.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/str_to_float.h"
#include "src/errno/libc_errno.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, nanl, (const char *arg)) {
auto result = internal::strtonan<long double>(arg);
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(long double, nanl, (const char *arg)) {
return result.value;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nearbyint.cpp b/libc/src/math/generic/nearbyint.cpp
index 5662d66..20cbf6c 100644
--- a/libc/src/math/generic/nearbyint.cpp
+++ b/libc/src/math/generic/nearbyint.cpp
@@ -9,12 +9,11 @@
#include "src/math/nearbyint.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nearbyint, (double x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nearbyintf.cpp b/libc/src/math/generic/nearbyintf.cpp
index 9b8db08..5fb1033 100644
--- a/libc/src/math/generic/nearbyintf.cpp
+++ b/libc/src/math/generic/nearbyintf.cpp
@@ -9,12 +9,11 @@
#include "src/math/nearbyintf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nearbyintf, (float x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nearbyintf128.cpp b/libc/src/math/generic/nearbyintf128.cpp
index 95038b8..fca3587 100644
--- a/libc/src/math/generic/nearbyintf128.cpp
+++ b/libc/src/math/generic/nearbyintf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/nearbyintf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, nearbyintf128, (float128 x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nearbyintf16.cpp b/libc/src/math/generic/nearbyintf16.cpp
index 1e6229b..efd31e9 100644
--- a/libc/src/math/generic/nearbyintf16.cpp
+++ b/libc/src/math/generic/nearbyintf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/nearbyintf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, nearbyintf16, (float16 x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nearbyintl.cpp b/libc/src/math/generic/nearbyintl.cpp
index 79ee73c..9cbff01 100644
--- a/libc/src/math/generic/nearbyintl.cpp
+++ b/libc/src/math/generic/nearbyintl.cpp
@@ -9,12 +9,11 @@
#include "src/math/nearbyintl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, nearbyintl, (long double x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextafter.cpp b/libc/src/math/generic/nextafter.cpp
index ff35c86..57a58b1 100644
--- a/libc/src/math/generic/nextafter.cpp
+++ b/libc/src/math/generic/nextafter.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextafter.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nextafter, (double x, double y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextafterf.cpp b/libc/src/math/generic/nextafterf.cpp
index fd8ca02..dd09fb7 100644
--- a/libc/src/math/generic/nextafterf.cpp
+++ b/libc/src/math/generic/nextafterf.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextafterf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nextafterf, (float x, float y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextafterf128.cpp b/libc/src/math/generic/nextafterf128.cpp
index c774f10..905c890 100644
--- a/libc/src/math/generic/nextafterf128.cpp
+++ b/libc/src/math/generic/nextafterf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextafterf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, nextafterf128, (float128 x, float128 y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextafterf16.cpp b/libc/src/math/generic/nextafterf16.cpp
index 70adc9c..144b3fc 100644
--- a/libc/src/math/generic/nextafterf16.cpp
+++ b/libc/src/math/generic/nextafterf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextafterf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, nextafterf16, (float16 x, float16 y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextafterl.cpp b/libc/src/math/generic/nextafterl.cpp
index 5dafd63..e12ad04 100644
--- a/libc/src/math/generic/nextafterl.cpp
+++ b/libc/src/math/generic/nextafterl.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextafterl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, nextafterl, (long double x, long double y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextdown.cpp b/libc/src/math/generic/nextdown.cpp
index 90a9143..51dee48 100644
--- a/libc/src/math/generic/nextdown.cpp
+++ b/libc/src/math/generic/nextdown.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextdown.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nextdown, (double x)) {
return fputil::nextupdown</*IsDown=*/true>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextdownf.cpp b/libc/src/math/generic/nextdownf.cpp
index 282ebfd..857b412 100644
--- a/libc/src/math/generic/nextdownf.cpp
+++ b/libc/src/math/generic/nextdownf.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextdownf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nextdownf, (float x)) {
return fputil::nextupdown</*IsDown=*/true>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextdownf128.cpp b/libc/src/math/generic/nextdownf128.cpp
index 1557e331..2585a13 100644
--- a/libc/src/math/generic/nextdownf128.cpp
+++ b/libc/src/math/generic/nextdownf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextdownf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, nextdownf128, (float128 x)) {
return fputil::nextupdown</*IsDown=*/true>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextdownf16.cpp b/libc/src/math/generic/nextdownf16.cpp
index 2573fbf..9fdaa9d 100644
--- a/libc/src/math/generic/nextdownf16.cpp
+++ b/libc/src/math/generic/nextdownf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextdownf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, nextdownf16, (float16 x)) {
return fputil::nextupdown</*IsDown=*/true>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextdownl.cpp b/libc/src/math/generic/nextdownl.cpp
index 476c5f3..06a09c9 100644
--- a/libc/src/math/generic/nextdownl.cpp
+++ b/libc/src/math/generic/nextdownl.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextdownl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, nextdownl, (long double x)) {
return fputil::nextupdown</*IsDown=*/true>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nexttoward.cpp b/libc/src/math/generic/nexttoward.cpp
index 7102a0a..ce3e4e6 100644
--- a/libc/src/math/generic/nexttoward.cpp
+++ b/libc/src/math/generic/nexttoward.cpp
@@ -9,9 +9,8 @@
#include "src/math/nexttoward.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nexttoward, (double x, long double y)) {
// We can reuse the nextafter implementation because the internal nextafter is
@@ -19,4 +18,4 @@ LLVM_LIBC_FUNCTION(double, nexttoward, (double x, long double y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nexttowardf.cpp b/libc/src/math/generic/nexttowardf.cpp
index 095a7af..3b0762c 100644
--- a/libc/src/math/generic/nexttowardf.cpp
+++ b/libc/src/math/generic/nexttowardf.cpp
@@ -9,9 +9,8 @@
#include "src/math/nexttowardf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nexttowardf, (float x, long double y)) {
// We can reuse the nextafter implementation because the internal nextafter is
@@ -19,4 +18,4 @@ LLVM_LIBC_FUNCTION(float, nexttowardf, (float x, long double y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nexttowardf16.cpp b/libc/src/math/generic/nexttowardf16.cpp
index 75218b1..d1d78e8 100644
--- a/libc/src/math/generic/nexttowardf16.cpp
+++ b/libc/src/math/generic/nexttowardf16.cpp
@@ -9,9 +9,8 @@
#include "src/math/nexttowardf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, nexttowardf16, (float16 x, long double y)) {
// We can reuse the nextafter implementation because the internal nextafter is
@@ -19,4 +18,4 @@ LLVM_LIBC_FUNCTION(float16, nexttowardf16, (float16 x, long double y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nexttowardl.cpp b/libc/src/math/generic/nexttowardl.cpp
index b208689..e9f7f83 100644
--- a/libc/src/math/generic/nexttowardl.cpp
+++ b/libc/src/math/generic/nexttowardl.cpp
@@ -9,9 +9,8 @@
#include "src/math/nexttowardl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, nexttowardl, (long double x, long double y)) {
// We can reuse the nextafter implementation because the internal nextafter is
@@ -19,4 +18,4 @@ LLVM_LIBC_FUNCTION(long double, nexttowardl, (long double x, long double y)) {
return fputil::nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextup.cpp b/libc/src/math/generic/nextup.cpp
index ac06824..d75a336 100644
--- a/libc/src/math/generic/nextup.cpp
+++ b/libc/src/math/generic/nextup.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextup.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nextup, (double x)) {
return fputil::nextupdown</*IsDown=*/false>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextupf.cpp b/libc/src/math/generic/nextupf.cpp
index 10a4b03..3b18dae 100644
--- a/libc/src/math/generic/nextupf.cpp
+++ b/libc/src/math/generic/nextupf.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextupf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nextupf, (float x)) {
return fputil::nextupdown</*IsDown=*/false>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextupf128.cpp b/libc/src/math/generic/nextupf128.cpp
index c380f0d..7d862c3 100644
--- a/libc/src/math/generic/nextupf128.cpp
+++ b/libc/src/math/generic/nextupf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextupf128.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, nextupf128, (float128 x)) {
return fputil::nextupdown</*IsDown=*/false>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextupf16.cpp b/libc/src/math/generic/nextupf16.cpp
index 5588480..5d3d52c 100644
--- a/libc/src/math/generic/nextupf16.cpp
+++ b/libc/src/math/generic/nextupf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextupf16.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, nextupf16, (float16 x)) {
return fputil::nextupdown</*IsDown=*/false>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/nextupl.cpp b/libc/src/math/generic/nextupl.cpp
index e4ef195..ccc5244 100644
--- a/libc/src/math/generic/nextupl.cpp
+++ b/libc/src/math/generic/nextupl.cpp
@@ -9,12 +9,11 @@
#include "src/math/nextupl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, nextupl, (long double x)) {
return fputil::nextupdown</*IsDown=*/false>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/powf.cpp b/libc/src/math/generic/powf.cpp
index 845ac25..13c0424 100644
--- a/libc/src/math/generic/powf.cpp
+++ b/libc/src/math/generic/powf.cpp
@@ -19,7 +19,6 @@
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/FPUtil/sqrt.h" // Speedup for powf(x, 1/2) = sqrtf(x)
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "exp10f_impl.h" // Speedup for powf(10, y) = exp10f(y)
@@ -27,7 +26,7 @@
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using fputil::DoubleDouble;
using fputil::TripleDouble;
@@ -857,4 +856,4 @@ LLVM_LIBC_FUNCTION(float, powf, (float x, float y)) {
0.0f;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/range_reduction.h b/libc/src/math/generic/range_reduction.h
index 9ea446d..8a75af5 100644
--- a/libc/src/math/generic/range_reduction.h
+++ b/libc/src/math/generic/range_reduction.h
@@ -13,9 +13,8 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace generic {
@@ -85,6 +84,6 @@ LIBC_INLINE int64_t large_range_reduction(double x, int x_exp, double &y) {
} // namespace generic
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_RANGE_REDUCTION_H
diff --git a/libc/src/math/generic/range_reduction_double_common.h b/libc/src/math/generic/range_reduction_double_common.h
index 2b1c4e8..150118f 100644
--- a/libc/src/math/generic/range_reduction_double_common.h
+++ b/libc/src/math/generic/range_reduction_double_common.h
@@ -16,9 +16,8 @@
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/common.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace generic {
@@ -226,6 +225,6 @@ LIBC_INLINE constexpr Float128 SIN_K_PI_OVER_128_F128[65] = {
} // namespace generic
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_RANGE_REDUCTION_DOUBLE_COMMON_H
diff --git a/libc/src/math/generic/range_reduction_double_fma.h b/libc/src/math/generic/range_reduction_double_fma.h
index 7448b5f..c136de9 100644
--- a/libc/src/math/generic/range_reduction_double_fma.h
+++ b/libc/src/math/generic/range_reduction_double_fma.h
@@ -14,9 +14,8 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace fma {
@@ -491,6 +490,6 @@ LIBC_INLINE unsigned range_reduction_small(double x, DoubleDouble &u) {
} // namespace fma
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_RANGE_REDUCTION_DOUBLE_FMA_H
diff --git a/libc/src/math/generic/range_reduction_double_nofma.h b/libc/src/math/generic/range_reduction_double_nofma.h
index 445a45d..b9d34d6 100644
--- a/libc/src/math/generic/range_reduction_double_nofma.h
+++ b/libc/src/math/generic/range_reduction_double_nofma.h
@@ -14,9 +14,8 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace nofma {
@@ -489,6 +488,6 @@ LIBC_INLINE unsigned range_reduction_small(double x, DoubleDouble &u) {
} // namespace nofma
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_RANGE_REDUCTION_DOUBLE_NOFMA_H
diff --git a/libc/src/math/generic/range_reduction_fma.h b/libc/src/math/generic/range_reduction_fma.h
index 537d572..97b9e3d 100644
--- a/libc/src/math/generic/range_reduction_fma.h
+++ b/libc/src/math/generic/range_reduction_fma.h
@@ -12,9 +12,8 @@
#include "src/__support/FPUtil/FMA.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/nearest_integer.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace fma {
@@ -87,6 +86,6 @@ LIBC_INLINE int64_t large_range_reduction(double x, int x_exp, double &y) {
} // namespace fma
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_RANGE_REDUCTION_FMA_H
diff --git a/libc/src/math/generic/remainder.cpp b/libc/src/math/generic/remainder.cpp
index a22ffc4..3703a32 100644
--- a/libc/src/math/generic/remainder.cpp
+++ b/libc/src/math/generic/remainder.cpp
@@ -9,13 +9,12 @@
#include "src/math/remainder.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, remainder, (double x, double y)) {
int quotient;
return fputil::remquo(x, y, quotient);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/remainderf.cpp b/libc/src/math/generic/remainderf.cpp
index 44e32e9..5e8c5e9 100644
--- a/libc/src/math/generic/remainderf.cpp
+++ b/libc/src/math/generic/remainderf.cpp
@@ -9,13 +9,12 @@
#include "src/math/remainderf.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, remainderf, (float x, float y)) {
int quotient;
return fputil::remquo(x, y, quotient);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/remainderf16.cpp b/libc/src/math/generic/remainderf16.cpp
index 2b64882..3517722 100644
--- a/libc/src/math/generic/remainderf16.cpp
+++ b/libc/src/math/generic/remainderf16.cpp
@@ -9,13 +9,12 @@
#include "src/math/remainderf16.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, remainderf16, (float16 x, float16 y)) {
int quotient;
return fputil::remquo(x, y, quotient);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/remainderl.cpp b/libc/src/math/generic/remainderl.cpp
index a61a13e..def5d4b 100644
--- a/libc/src/math/generic/remainderl.cpp
+++ b/libc/src/math/generic/remainderl.cpp
@@ -9,13 +9,12 @@
#include "src/math/remainderl.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, remainderl, (long double x, long double y)) {
int quotient;
return fputil::remquo(x, y, quotient);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/remquo.cpp b/libc/src/math/generic/remquo.cpp
index 45deb81..bd88742 100644
--- a/libc/src/math/generic/remquo.cpp
+++ b/libc/src/math/generic/remquo.cpp
@@ -9,12 +9,11 @@
#include "src/math/remquo.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, remquo, (double x, double y, int *exp)) {
return fputil::remquo(x, y, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/remquof.cpp b/libc/src/math/generic/remquof.cpp
index f3616ab..b59606f 100644
--- a/libc/src/math/generic/remquof.cpp
+++ b/libc/src/math/generic/remquof.cpp
@@ -9,12 +9,11 @@
#include "src/math/remquof.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, remquof, (float x, float y, int *exp)) {
return fputil::remquo(x, y, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/remquof128.cpp b/libc/src/math/generic/remquof128.cpp
index cf8f564..e195c7b 100644
--- a/libc/src/math/generic/remquof128.cpp
+++ b/libc/src/math/generic/remquof128.cpp
@@ -9,12 +9,11 @@
#include "src/math/remquof128.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, remquof128, (float128 x, float128 y, int *exp)) {
return fputil::remquo(x, y, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/remquof16.cpp b/libc/src/math/generic/remquof16.cpp
index 3a5baad..a373bfa 100644
--- a/libc/src/math/generic/remquof16.cpp
+++ b/libc/src/math/generic/remquof16.cpp
@@ -9,12 +9,11 @@
#include "src/math/remquof16.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, remquof16, (float16 x, float16 y, int *exp)) {
return fputil::remquo(x, y, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/remquol.cpp b/libc/src/math/generic/remquol.cpp
index 980f50c..7a08af3 100644
--- a/libc/src/math/generic/remquol.cpp
+++ b/libc/src/math/generic/remquol.cpp
@@ -9,13 +9,12 @@
#include "src/math/remquol.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, remquol,
(long double x, long double y, int *exp)) {
return fputil::remquo(x, y, *exp);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/rint.cpp b/libc/src/math/generic/rint.cpp
index f7837df..e3189ea 100644
--- a/libc/src/math/generic/rint.cpp
+++ b/libc/src/math/generic/rint.cpp
@@ -9,12 +9,11 @@
#include "src/math/rint.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, rint, (double x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/rintf.cpp b/libc/src/math/generic/rintf.cpp
index 29a2845..259a46f 100644
--- a/libc/src/math/generic/rintf.cpp
+++ b/libc/src/math/generic/rintf.cpp
@@ -9,12 +9,11 @@
#include "src/math/rintf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, rintf, (float x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/rintf128.cpp b/libc/src/math/generic/rintf128.cpp
index f3b8afa..ba9912d6 100644
--- a/libc/src/math/generic/rintf128.cpp
+++ b/libc/src/math/generic/rintf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/rintf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, rintf128, (float128 x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/rintf16.cpp b/libc/src/math/generic/rintf16.cpp
index 69b89de..e0caa7a 100644
--- a/libc/src/math/generic/rintf16.cpp
+++ b/libc/src/math/generic/rintf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/rintf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, rintf16, (float16 x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/rintl.cpp b/libc/src/math/generic/rintl.cpp
index 007d29a..5110f23 100644
--- a/libc/src/math/generic/rintl.cpp
+++ b/libc/src/math/generic/rintl.cpp
@@ -9,12 +9,11 @@
#include "src/math/rintl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, rintl, (long double x)) {
return fputil::round_using_current_rounding_mode(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/round.cpp b/libc/src/math/generic/round.cpp
index d8b171a..ca8f19f 100644
--- a/libc/src/math/generic/round.cpp
+++ b/libc/src/math/generic/round.cpp
@@ -9,10 +9,9 @@
#include "src/math/round.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, round, (double x)) { return fputil::round(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundeven.cpp b/libc/src/math/generic/roundeven.cpp
index e6f5999..5f2adf9 100644
--- a/libc/src/math/generic/roundeven.cpp
+++ b/libc/src/math/generic/roundeven.cpp
@@ -9,12 +9,11 @@
#include "src/math/roundeven.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, roundeven, (double x)) {
return fputil::round_using_specific_rounding_mode(x, FP_INT_TONEAREST);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundevenf.cpp b/libc/src/math/generic/roundevenf.cpp
index 0b63a09..353bec7 100644
--- a/libc/src/math/generic/roundevenf.cpp
+++ b/libc/src/math/generic/roundevenf.cpp
@@ -9,12 +9,11 @@
#include "src/math/roundevenf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, roundevenf, (float x)) {
return fputil::round_using_specific_rounding_mode(x, FP_INT_TONEAREST);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundevenf128.cpp b/libc/src/math/generic/roundevenf128.cpp
index 354076b..259388c 100644
--- a/libc/src/math/generic/roundevenf128.cpp
+++ b/libc/src/math/generic/roundevenf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/roundevenf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, roundevenf128, (float128 x)) {
return fputil::round_using_specific_rounding_mode(x, FP_INT_TONEAREST);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundevenf16.cpp b/libc/src/math/generic/roundevenf16.cpp
index 8a27d81..9ecf79c 100644
--- a/libc/src/math/generic/roundevenf16.cpp
+++ b/libc/src/math/generic/roundevenf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/roundevenf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, roundevenf16, (float16 x)) {
return fputil::round_using_specific_rounding_mode(x, FP_INT_TONEAREST);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundevenl.cpp b/libc/src/math/generic/roundevenl.cpp
index 6ffe80a0..f8f429f 100644
--- a/libc/src/math/generic/roundevenl.cpp
+++ b/libc/src/math/generic/roundevenl.cpp
@@ -9,12 +9,11 @@
#include "src/math/roundevenl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, roundevenl, (long double x)) {
return fputil::round_using_specific_rounding_mode(x, FP_INT_TONEAREST);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundf.cpp b/libc/src/math/generic/roundf.cpp
index 68be4b1..9627390 100644
--- a/libc/src/math/generic/roundf.cpp
+++ b/libc/src/math/generic/roundf.cpp
@@ -9,10 +9,9 @@
#include "src/math/roundf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, roundf, (float x)) { return fputil::round(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundf128.cpp b/libc/src/math/generic/roundf128.cpp
index 88a545e..5b35d74 100644
--- a/libc/src/math/generic/roundf128.cpp
+++ b/libc/src/math/generic/roundf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/roundf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, roundf128, (float128 x)) {
return fputil::round(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundf16.cpp b/libc/src/math/generic/roundf16.cpp
index 06f9a79..75a255d 100644
--- a/libc/src/math/generic/roundf16.cpp
+++ b/libc/src/math/generic/roundf16.cpp
@@ -9,10 +9,9 @@
#include "src/math/roundf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, roundf16, (float16 x)) { return fputil::round(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/roundl.cpp b/libc/src/math/generic/roundl.cpp
index 0f7b29e..c734225 100644
--- a/libc/src/math/generic/roundl.cpp
+++ b/libc/src/math/generic/roundl.cpp
@@ -9,12 +9,11 @@
#include "src/math/roundl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, roundl, (long double x)) {
return fputil::round(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/scalblnf16.cpp b/libc/src/math/generic/scalblnf16.cpp
index 7f43841..844a071 100644
--- a/libc/src/math/generic/scalblnf16.cpp
+++ b/libc/src/math/generic/scalblnf16.cpp
@@ -11,16 +11,15 @@
#include "src/__support/common.h"
#include "hdr/float_macros.h"
-#include "src/__support/macros/config.h"
#if FLT_RADIX != 2
#error "FLT_RADIX != 2 is not supported."
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, scalblnf16, (float16 x, long n)) {
return fputil::ldexp(x, n);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/scalbn.cpp b/libc/src/math/generic/scalbn.cpp
index c1ee994..207cce1 100644
--- a/libc/src/math/generic/scalbn.cpp
+++ b/libc/src/math/generic/scalbn.cpp
@@ -10,16 +10,15 @@
#include "hdr/float_macros.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#if FLT_RADIX != 2
#error "FLT_RADIX != 2 is not supported."
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, scalbn, (double x, int n)) {
return fputil::ldexp(x, n);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/scalbnf.cpp b/libc/src/math/generic/scalbnf.cpp
index 4281b00..e478088 100644
--- a/libc/src/math/generic/scalbnf.cpp
+++ b/libc/src/math/generic/scalbnf.cpp
@@ -10,16 +10,15 @@
#include "hdr/float_macros.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#if FLT_RADIX != 2
#error "FLT_RADIX != 2 is not supported."
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, scalbnf, (float x, int n)) {
return fputil::ldexp(x, n);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/scalbnf128.cpp b/libc/src/math/generic/scalbnf128.cpp
index e3e2846..5fd5961 100644
--- a/libc/src/math/generic/scalbnf128.cpp
+++ b/libc/src/math/generic/scalbnf128.cpp
@@ -10,16 +10,15 @@
#include "hdr/float_macros.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#if FLT_RADIX != 2
#error "FLT_RADIX != 2 is not supported."
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, scalbnf128, (float128 x, int n)) {
return fputil::ldexp(x, n);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/scalbnf16.cpp b/libc/src/math/generic/scalbnf16.cpp
index 641e2d0..a42fdff 100644
--- a/libc/src/math/generic/scalbnf16.cpp
+++ b/libc/src/math/generic/scalbnf16.cpp
@@ -11,16 +11,15 @@
#include "src/__support/common.h"
#include "hdr/float_macros.h"
-#include "src/__support/macros/config.h"
#if FLT_RADIX != 2
#error "FLT_RADIX != 2 is not supported."
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, scalbnf16, (float16 x, int n)) {
return fputil::ldexp(x, n);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/scalbnl.cpp b/libc/src/math/generic/scalbnl.cpp
index 3015c3c..1225a7e 100644
--- a/libc/src/math/generic/scalbnl.cpp
+++ b/libc/src/math/generic/scalbnl.cpp
@@ -10,16 +10,15 @@
#include "hdr/float_macros.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#if FLT_RADIX != 2
#error "FLT_RADIX != 2 is not supported."
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, scalbnl, (long double x, int n)) {
return fputil::ldexp(x, n);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/setpayloadf16.cpp b/libc/src/math/generic/setpayloadf16.cpp
index 1d1445e..98fc239 100644
--- a/libc/src/math/generic/setpayloadf16.cpp
+++ b/libc/src/math/generic/setpayloadf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/setpayloadf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, setpayloadf16, (float16 * res, float16 pl)) {
return static_cast<int>(fputil::setpayload</*IsSignaling=*/false>(*res, pl));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/setpayloadsigf16.cpp b/libc/src/math/generic/setpayloadsigf16.cpp
index 5ba9fcd..c79620f 100644
--- a/libc/src/math/generic/setpayloadsigf16.cpp
+++ b/libc/src/math/generic/setpayloadsigf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/setpayloadsigf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, setpayloadsigf16, (float16 * res, float16 pl)) {
return static_cast<int>(fputil::setpayload</*IsSignaling=*/true>(*res, pl));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sin.cpp b/libc/src/math/generic/sin.cpp
index 5a4b5a3..e7a4324 100644
--- a/libc/src/math/generic/sin.cpp
+++ b/libc/src/math/generic/sin.cpp
@@ -15,7 +15,6 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#include "src/math/generic/sincos_eval.h"
@@ -50,7 +49,7 @@ LIBC_INLINE constexpr bool NO_FMA = true;
#define LIBC_MATH_SIN_SKIP_ACCURATE_PASS
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using DoubleDouble = fputil::DoubleDouble;
using Float128 = typename fputil::DyadicFloat<128>;
@@ -205,4 +204,4 @@ LLVM_LIBC_FUNCTION(double, sin, (double x)) {
#endif // !LIBC_MATH_SIN_SKIP_ACCURATE_PASS
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sincos.cpp b/libc/src/math/generic/sincos.cpp
index de107e6..ed70e38 100644
--- a/libc/src/math/generic/sincos.cpp
+++ b/libc/src/math/generic/sincos.cpp
@@ -16,7 +16,6 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#include "src/math/generic/sincos_eval.h"
@@ -51,7 +50,7 @@ LIBC_INLINE constexpr bool NO_FMA = true;
#define LIBC_MATH_SINCOS_SKIP_ACCURATE_PASS
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using DoubleDouble = fputil::DoubleDouble;
using Float128 = typename fputil::DyadicFloat<128>;
@@ -245,4 +244,4 @@ LLVM_LIBC_FUNCTION(void, sincos, (double x, double *sin_x, double *cos_x)) {
#endif // !LIBC_MATH_SINCOS_SKIP_ACCURATE_PASS
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sincos_eval.h b/libc/src/math/generic/sincos_eval.h
index e491467..5b4f3b8 100644
--- a/libc/src/math/generic/sincos_eval.h
+++ b/libc/src/math/generic/sincos_eval.h
@@ -14,9 +14,8 @@
#include "src/__support/FPUtil/dyadic_float.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace generic {
@@ -120,6 +119,6 @@ LIBC_INLINE void sincos_eval(const Float128 &u, Float128 &sin_u,
} // namespace generic
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_SINCOSF_EVAL_H
diff --git a/libc/src/math/generic/sincosf.cpp b/libc/src/math/generic/sincosf.cpp
index 3bf8e97..9ebf0b6 100644
--- a/libc/src/math/generic/sincosf.cpp
+++ b/libc/src/math/generic/sincosf.cpp
@@ -13,13 +13,12 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Exceptional values
static constexpr int N_EXCEPTS = 6;
@@ -200,4 +199,4 @@ LLVM_LIBC_FUNCTION(void, sincosf, (float x, float *sinp, float *cosp)) {
sin_y, -sin_k, fputil::multiply_add(cosm1_y, cos_k, cos_k)));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sincosf_utils.h b/libc/src/math/generic/sincosf_utils.h
index 726a5ab..f20fb6a 100644
--- a/libc/src/math/generic/sincosf_utils.h
+++ b/libc/src/math/generic/sincosf_utils.h
@@ -11,7 +11,6 @@
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/PolyEval.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#if defined(LIBC_TARGET_CPU_HAS_FMA)
@@ -29,7 +28,7 @@ using LIBC_NAMESPACE::generic::large_range_reduction;
using LIBC_NAMESPACE::generic::small_range_reduction;
#endif // LIBC_TARGET_CPU_HAS_FMA
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Lookup table for sin(k * pi / 32) with k = 0, ..., 63.
// Table is generated with Sollya as follow:
@@ -120,6 +119,6 @@ LIBC_INLINE void sincospif_eval(double xd, double &sin_k, double &cos_k,
sincosf_poly_eval(k, y, sin_k, cos_k, sin_y, cosm1_y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GENERIC_SINCOSF_UTILS_H
diff --git a/libc/src/math/generic/sinf.cpp b/libc/src/math/generic/sinf.cpp
index 43c2c2a..ff555bc 100644
--- a/libc/src/math/generic/sinf.cpp
+++ b/libc/src/math/generic/sinf.cpp
@@ -15,7 +15,6 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
@@ -27,7 +26,7 @@
#include "range_reduction.h"
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sinf, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -156,4 +155,4 @@ LLVM_LIBC_FUNCTION(float, sinf, (float x)) {
sin_y, cos_k, fputil::multiply_add(cosm1_y, sin_k, sin_k)));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sinhf.cpp b/libc/src/math/generic/sinhf.cpp
index 371dd6e..780c9a1f 100644
--- a/libc/src/math/generic/sinhf.cpp
+++ b/libc/src/math/generic/sinhf.cpp
@@ -9,11 +9,10 @@
#include "src/math/sinhf.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/rounding_mode.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/math/generic/explogxf.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sinhf, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -73,4 +72,4 @@ LLVM_LIBC_FUNCTION(float, sinhf, (float x)) {
return static_cast<float>(exp_pm_eval</*is_sinh*/ true>(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sinpif.cpp b/libc/src/math/generic/sinpif.cpp
index f572ded..05bdad3 100644
--- a/libc/src/math/generic/sinpif.cpp
+++ b/libc/src/math/generic/sinpif.cpp
@@ -13,10 +13,9 @@
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sinpif, (float x)) {
using FPBits = typename fputil::FPBits<float>;
@@ -109,4 +108,4 @@ LLVM_LIBC_FUNCTION(float, sinpif, (float x)) {
sin_y, cos_k, fputil::multiply_add(cosm1_y, sin_k, sin_k)));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sqrt.cpp b/libc/src/math/generic/sqrt.cpp
index 791975e..f33b0a2 100644
--- a/libc/src/math/generic/sqrt.cpp
+++ b/libc/src/math/generic/sqrt.cpp
@@ -9,10 +9,9 @@
#include "src/math/sqrt.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, sqrt, (double x)) { return fputil::sqrt<double>(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sqrtf.cpp b/libc/src/math/generic/sqrtf.cpp
index 69e0c34..26a53e9 100644
--- a/libc/src/math/generic/sqrtf.cpp
+++ b/libc/src/math/generic/sqrtf.cpp
@@ -9,10 +9,9 @@
#include "src/math/sqrtf.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sqrtf, (float x)) { return fputil::sqrt<float>(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sqrtf128.cpp b/libc/src/math/generic/sqrtf128.cpp
index f87066b..70e28dd 100644
--- a/libc/src/math/generic/sqrtf128.cpp
+++ b/libc/src/math/generic/sqrtf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/sqrtf128.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, sqrtf128, (float128 x)) {
return fputil::sqrt<float128>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/sqrtl.cpp b/libc/src/math/generic/sqrtl.cpp
index 2368182..9f0cc87 100644
--- a/libc/src/math/generic/sqrtl.cpp
+++ b/libc/src/math/generic/sqrtl.cpp
@@ -9,12 +9,11 @@
#include "src/math/sqrtl.h"
#include "src/__support/FPUtil/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, sqrtl, (long double x)) {
return fputil::sqrt<long double>(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/tan.cpp b/libc/src/math/generic/tan.cpp
index a3bc972..d153cc5 100644
--- a/libc/src/math/generic/tan.cpp
+++ b/libc/src/math/generic/tan.cpp
@@ -17,7 +17,6 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
@@ -53,7 +52,7 @@ LIBC_INLINE constexpr bool NO_FMA = true;
#define LIBC_MATH_TAN_SKIP_ACCURATE_PASS
#endif
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
using DoubleDouble = fputil::DoubleDouble;
using Float128 = typename fputil::DyadicFloat<128>;
@@ -317,4 +316,4 @@ LLVM_LIBC_FUNCTION(double, tan, (double x)) {
#endif // !LIBC_MATH_TAN_SKIP_ACCURATE_PASS
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/tanf.cpp b/libc/src/math/generic/tanf.cpp
index 01d8c98..b2882b5 100644
--- a/libc/src/math/generic/tanf.cpp
+++ b/libc/src/math/generic/tanf.cpp
@@ -15,13 +15,12 @@
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
#include <errno.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// Exceptional cases for tanf.
constexpr size_t N_EXCEPTS = 6;
@@ -140,4 +139,4 @@ LLVM_LIBC_FUNCTION(float, tanf, (float x)) {
multiply_add(sin_y, -sin_k, multiply_add(cosm1_y, cos_k, cos_k)));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/tanhf.cpp b/libc/src/math/generic/tanhf.cpp
index 32153c3..0efd0ce 100644
--- a/libc/src/math/generic/tanhf.cpp
+++ b/libc/src/math/generic/tanhf.cpp
@@ -11,12 +11,11 @@
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/multiply_add.h"
#include "src/__support/FPUtil/nearest_integer.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/__support/macros/properties/cpu_features.h"
#include "src/math/generic/explogxf.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
// 2^6 * log2(e)
constexpr double LOG2_E_EXP2_6 = ExpBase::LOG2_B * 2.0;
@@ -117,4 +116,4 @@ LLVM_LIBC_FUNCTION(float, tanhf, (float x)) {
return static_cast<float>((r - mh) / (r + mh));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/totalorderf16.cpp b/libc/src/math/generic/totalorderf16.cpp
index 743aa5a..e43beb3 100644
--- a/libc/src/math/generic/totalorderf16.cpp
+++ b/libc/src/math/generic/totalorderf16.cpp
@@ -9,12 +9,11 @@
#include "src/math/totalorderf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, totalorderf16, (const float16 *x, const float16 *y)) {
return static_cast<int>(fputil::totalorder(*x, *y));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/totalordermagf16.cpp b/libc/src/math/generic/totalordermagf16.cpp
index 0d2e9e1..09d04fb 100644
--- a/libc/src/math/generic/totalordermagf16.cpp
+++ b/libc/src/math/generic/totalordermagf16.cpp
@@ -9,13 +9,12 @@
#include "src/math/totalordermagf16.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, totalordermagf16,
(const float16 *x, const float16 *y)) {
return static_cast<int>(fputil::totalordermag(*x, *y));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/trunc.cpp b/libc/src/math/generic/trunc.cpp
index 0bf2ac5..d171ab1 100644
--- a/libc/src/math/generic/trunc.cpp
+++ b/libc/src/math/generic/trunc.cpp
@@ -9,10 +9,9 @@
#include "src/math/trunc.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, trunc, (double x)) { return fputil::trunc(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/truncf.cpp b/libc/src/math/generic/truncf.cpp
index 371cb9f..93bfb7f 100644
--- a/libc/src/math/generic/truncf.cpp
+++ b/libc/src/math/generic/truncf.cpp
@@ -9,10 +9,9 @@
#include "src/math/truncf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, truncf, (float x)) { return fputil::trunc(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/truncf128.cpp b/libc/src/math/generic/truncf128.cpp
index 200dbf1..ecf05fa 100644
--- a/libc/src/math/generic/truncf128.cpp
+++ b/libc/src/math/generic/truncf128.cpp
@@ -9,12 +9,11 @@
#include "src/math/truncf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, truncf128, (float128 x)) {
return fputil::trunc(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/truncf16.cpp b/libc/src/math/generic/truncf16.cpp
index ea7695dc9..65bd57d 100644
--- a/libc/src/math/generic/truncf16.cpp
+++ b/libc/src/math/generic/truncf16.cpp
@@ -9,10 +9,9 @@
#include "src/math/truncf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, truncf16, (float16 x)) { return fputil::trunc(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/truncl.cpp b/libc/src/math/generic/truncl.cpp
index 83b0827..3429129 100644
--- a/libc/src/math/generic/truncl.cpp
+++ b/libc/src/math/generic/truncl.cpp
@@ -9,12 +9,11 @@
#include "src/math/truncl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, truncl, (long double x)) {
return fputil::trunc(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfp.cpp b/libc/src/math/generic/ufromfp.cpp
index f460a43..15800d6 100644
--- a/libc/src/math/generic/ufromfp.cpp
+++ b/libc/src/math/generic/ufromfp.cpp
@@ -9,12 +9,11 @@
#include "src/math/ufromfp.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ufromfp, (double x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpf.cpp b/libc/src/math/generic/ufromfpf.cpp
index 07be4e9..898446e 100644
--- a/libc/src/math/generic/ufromfpf.cpp
+++ b/libc/src/math/generic/ufromfpf.cpp
@@ -9,12 +9,11 @@
#include "src/math/ufromfpf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ufromfpf, (float x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpf128.cpp b/libc/src/math/generic/ufromfpf128.cpp
index 1a532cf..cc728f3 100644
--- a/libc/src/math/generic/ufromfpf128.cpp
+++ b/libc/src/math/generic/ufromfpf128.cpp
@@ -9,13 +9,12 @@
#include "src/math/ufromfpf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, ufromfpf128,
(float128 x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpf16.cpp b/libc/src/math/generic/ufromfpf16.cpp
index 314c525..bf041f4 100644
--- a/libc/src/math/generic/ufromfpf16.cpp
+++ b/libc/src/math/generic/ufromfpf16.cpp
@@ -9,13 +9,12 @@
#include "src/math/ufromfpf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, ufromfpf16,
(float16 x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpl.cpp b/libc/src/math/generic/ufromfpl.cpp
index 050950a..bd353e9 100644
--- a/libc/src/math/generic/ufromfpl.cpp
+++ b/libc/src/math/generic/ufromfpl.cpp
@@ -9,13 +9,12 @@
#include "src/math/ufromfpl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, ufromfpl,
(long double x, int rnd, unsigned int width)) {
return fputil::fromfp</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpx.cpp b/libc/src/math/generic/ufromfpx.cpp
index 178049b..5ad95ff 100644
--- a/libc/src/math/generic/ufromfpx.cpp
+++ b/libc/src/math/generic/ufromfpx.cpp
@@ -9,12 +9,11 @@
#include "src/math/ufromfpx.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ufromfpx, (double x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpxf.cpp b/libc/src/math/generic/ufromfpxf.cpp
index 8f3cd50..7c87848 100644
--- a/libc/src/math/generic/ufromfpxf.cpp
+++ b/libc/src/math/generic/ufromfpxf.cpp
@@ -9,12 +9,11 @@
#include "src/math/ufromfpxf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ufromfpxf, (float x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpxf128.cpp b/libc/src/math/generic/ufromfpxf128.cpp
index 9d6348c..57c2903 100644
--- a/libc/src/math/generic/ufromfpxf128.cpp
+++ b/libc/src/math/generic/ufromfpxf128.cpp
@@ -9,13 +9,12 @@
#include "src/math/ufromfpxf128.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float128, ufromfpxf128,
(float128 x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpxf16.cpp b/libc/src/math/generic/ufromfpxf16.cpp
index b1f42a8..aeb7aa8 100644
--- a/libc/src/math/generic/ufromfpxf16.cpp
+++ b/libc/src/math/generic/ufromfpxf16.cpp
@@ -9,13 +9,12 @@
#include "src/math/ufromfpxf16.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float16, ufromfpxf16,
(float16 x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/generic/ufromfpxl.cpp b/libc/src/math/generic/ufromfpxl.cpp
index 637721e..9a8ba7a 100644
--- a/libc/src/math/generic/ufromfpxl.cpp
+++ b/libc/src/math/generic/ufromfpxl.cpp
@@ -9,13 +9,12 @@
#include "src/math/ufromfpxl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long double, ufromfpxl,
(long double x, int rnd, unsigned int width)) {
return fputil::fromfpx</*IsSigned=*/false>(x, rnd, width);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/getpayloadf16.h b/libc/src/math/getpayloadf16.h
index 565454e..1349dfd 100644
--- a/libc/src/math/getpayloadf16.h
+++ b/libc/src/math/getpayloadf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_GETPAYLOADF16_H
#define LLVM_LIBC_SRC_MATH_GETPAYLOADF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 getpayloadf16(const float16 *x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_GETPAYLOADF16_H
diff --git a/libc/src/math/hypot.h b/libc/src/math/hypot.h
index b78792b..981473f 100644
--- a/libc/src/math/hypot.h
+++ b/libc/src/math/hypot.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_HYPOT_H
#define LLVM_LIBC_SRC_MATH_HYPOT_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double hypot(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_HYPOT_H
diff --git a/libc/src/math/hypotf.h b/libc/src/math/hypotf.h
index 2c10c46..1d290b4 100644
--- a/libc/src/math/hypotf.h
+++ b/libc/src/math/hypotf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_HYPOTF_H
#define LLVM_LIBC_SRC_MATH_HYPOTF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float hypotf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_HYPOTF_H
diff --git a/libc/src/math/ilogb.h b/libc/src/math/ilogb.h
index 5b43107..e851a6a 100644
--- a/libc/src/math/ilogb.h
+++ b/libc/src/math/ilogb.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ILOGB_H
#define LLVM_LIBC_SRC_MATH_ILOGB_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int ilogb(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ILOGB_H
diff --git a/libc/src/math/ilogbf.h b/libc/src/math/ilogbf.h
index 36197ecd..edea346 100644
--- a/libc/src/math/ilogbf.h
+++ b/libc/src/math/ilogbf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ILOGBF_H
#define LLVM_LIBC_SRC_MATH_ILOGBF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int ilogbf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ILOGBF_H
diff --git a/libc/src/math/ilogbf128.h b/libc/src/math/ilogbf128.h
index 9ea5e89..d8fe3b9 100644
--- a/libc/src/math/ilogbf128.h
+++ b/libc/src/math/ilogbf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_ILOGBF128_H
#define LLVM_LIBC_SRC_MATH_ILOGBF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int ilogbf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ILOGBF128_H
diff --git a/libc/src/math/ilogbf16.h b/libc/src/math/ilogbf16.h
index a712cd78..4884a14 100644
--- a/libc/src/math/ilogbf16.h
+++ b/libc/src/math/ilogbf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_ILOGBF16_H
#define LLVM_LIBC_SRC_MATH_ILOGBF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int ilogbf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ILOGBF16_H
diff --git a/libc/src/math/ilogbl.h b/libc/src/math/ilogbl.h
index 5f089e2..1b4782f3 100644
--- a/libc/src/math/ilogbl.h
+++ b/libc/src/math/ilogbl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ILOGBL_H
#define LLVM_LIBC_SRC_MATH_ILOGBL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int ilogbl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ILOGBL_H
diff --git a/libc/src/math/isnan.h b/libc/src/math/isnan.h
index e9776fd..eda8e7e 100644
--- a/libc/src/math/isnan.h
+++ b/libc/src/math/isnan.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ISNAN_H
#define LLVM_LIBC_SRC_MATH_ISNAN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int isnan(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ISNAN_H
diff --git a/libc/src/math/isnanf.h b/libc/src/math/isnanf.h
index bdf74d3..a12d39e 100644
--- a/libc/src/math/isnanf.h
+++ b/libc/src/math/isnanf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ISNANF_H
#define LLVM_LIBC_SRC_MATH_ISNANF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int isnanf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ISNANF_H
diff --git a/libc/src/math/isnanl.h b/libc/src/math/isnanl.h
index ade6a88..9fbfca0 100644
--- a/libc/src/math/isnanl.h
+++ b/libc/src/math/isnanl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ISNANL_H
#define LLVM_LIBC_SRC_MATH_ISNANL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int isnanl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ISNANL_H
diff --git a/libc/src/math/ldexp.h b/libc/src/math/ldexp.h
index e7897d2..7a8bcc3 100644
--- a/libc/src/math/ldexp.h
+++ b/libc/src/math/ldexp.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LDEXP_H
#define LLVM_LIBC_SRC_MATH_LDEXP_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double ldexp(double x, int exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LDEXP_H
diff --git a/libc/src/math/ldexpf.h b/libc/src/math/ldexpf.h
index 363a1b7..c06b487 100644
--- a/libc/src/math/ldexpf.h
+++ b/libc/src/math/ldexpf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LDEXPF_H
#define LLVM_LIBC_SRC_MATH_LDEXPF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float ldexpf(float x, int exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LDEXPF_H
diff --git a/libc/src/math/ldexpf128.h b/libc/src/math/ldexpf128.h
index 74c3ef6..7aa6ded 100644
--- a/libc/src/math/ldexpf128.h
+++ b/libc/src/math/ldexpf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LDEXPF128_H
#define LLVM_LIBC_SRC_MATH_LDEXPF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 ldexpf128(float128 x, int exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LDEXPF128_H
diff --git a/libc/src/math/ldexpf16.h b/libc/src/math/ldexpf16.h
index 877e48b..7303610 100644
--- a/libc/src/math/ldexpf16.h
+++ b/libc/src/math/ldexpf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LDEXPF16_H
#define LLVM_LIBC_SRC_MATH_LDEXPF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 ldexpf16(float16 x, int exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LDEXPF16_H
diff --git a/libc/src/math/ldexpl.h b/libc/src/math/ldexpl.h
index 16a480d..f2df0c8 100644
--- a/libc/src/math/ldexpl.h
+++ b/libc/src/math/ldexpl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LDEXPL_H
#define LLVM_LIBC_SRC_MATH_LDEXPL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double ldexpl(long double x, int exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LDEXPL_H
diff --git a/libc/src/math/llogb.h b/libc/src/math/llogb.h
index f945489..b51f89f 100644
--- a/libc/src/math/llogb.h
+++ b/libc/src/math/llogb.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLOGB_H
#define LLVM_LIBC_SRC_MATH_LLOGB_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long llogb(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLOGB_H
diff --git a/libc/src/math/llogbf.h b/libc/src/math/llogbf.h
index 4415562..af4aa8a 100644
--- a/libc/src/math/llogbf.h
+++ b/libc/src/math/llogbf.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLOGBF_H
#define LLVM_LIBC_SRC_MATH_LLOGBF_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long llogbf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLOGBF_H
diff --git a/libc/src/math/llogbf128.h b/libc/src/math/llogbf128.h
index 1ad4932..ce7c872a 100644
--- a/libc/src/math/llogbf128.h
+++ b/libc/src/math/llogbf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLOGBF128_H
#define LLVM_LIBC_SRC_MATH_LLOGBF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long llogbf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLOGBF128_H
diff --git a/libc/src/math/llogbf16.h b/libc/src/math/llogbf16.h
index 4672328..267ae41 100644
--- a/libc/src/math/llogbf16.h
+++ b/libc/src/math/llogbf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLOGBF16_H
#define LLVM_LIBC_SRC_MATH_LLOGBF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long llogbf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLOGBF16_H
diff --git a/libc/src/math/llogbl.h b/libc/src/math/llogbl.h
index bf502a1..3c323a3 100644
--- a/libc/src/math/llogbl.h
+++ b/libc/src/math/llogbl.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLOGBL_H
#define LLVM_LIBC_SRC_MATH_LLOGBL_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long llogbl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLOGBL_H
diff --git a/libc/src/math/llrint.h b/libc/src/math/llrint.h
index 7ad5bbd..69c881e 100644
--- a/libc/src/math/llrint.h
+++ b/libc/src/math/llrint.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LLRINT_H
#define LLVM_LIBC_SRC_MATH_LLRINT_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llrint(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLRINT_H
diff --git a/libc/src/math/llrintf.h b/libc/src/math/llrintf.h
index 89334b5..023e84a 100644
--- a/libc/src/math/llrintf.h
+++ b/libc/src/math/llrintf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LLRINTF_H
#define LLVM_LIBC_SRC_MATH_LLRINTF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llrintf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLRINTF_H
diff --git a/libc/src/math/llrintf128.h b/libc/src/math/llrintf128.h
index ff2e9a2..ac9c249 100644
--- a/libc/src/math/llrintf128.h
+++ b/libc/src/math/llrintf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLRINTF128_H
#define LLVM_LIBC_SRC_MATH_LLRINTF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llrintf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLRINTF128_H
diff --git a/libc/src/math/llrintf16.h b/libc/src/math/llrintf16.h
index 5c05303..90ad0e9 100644
--- a/libc/src/math/llrintf16.h
+++ b/libc/src/math/llrintf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLRINTF16_H
#define LLVM_LIBC_SRC_MATH_LLRINTF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llrintf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLRINTF16_H
diff --git a/libc/src/math/llrintl.h b/libc/src/math/llrintl.h
index 0c0d7d3..4dbcc60 100644
--- a/libc/src/math/llrintl.h
+++ b/libc/src/math/llrintl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LLRINTL_H
#define LLVM_LIBC_SRC_MATH_LLRINTL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llrintl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLRINTL_H
diff --git a/libc/src/math/llround.h b/libc/src/math/llround.h
index 3843e12..265b4fd 100644
--- a/libc/src/math/llround.h
+++ b/libc/src/math/llround.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LLROUND_H
#define LLVM_LIBC_SRC_MATH_LLROUND_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llround(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLROUND_H
diff --git a/libc/src/math/llroundf.h b/libc/src/math/llroundf.h
index 7f61889..2141ca9 100644
--- a/libc/src/math/llroundf.h
+++ b/libc/src/math/llroundf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LLROUNDF_H
#define LLVM_LIBC_SRC_MATH_LLROUNDF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llroundf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLROUNDF_H
diff --git a/libc/src/math/llroundf128.h b/libc/src/math/llroundf128.h
index 59d4d8d..3245dfa 100644
--- a/libc/src/math/llroundf128.h
+++ b/libc/src/math/llroundf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLROUNDF128_H
#define LLVM_LIBC_SRC_MATH_LLROUNDF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llroundf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLROUNDF128_H
diff --git a/libc/src/math/llroundf16.h b/libc/src/math/llroundf16.h
index 5ab6f2f..379c454 100644
--- a/libc/src/math/llroundf16.h
+++ b/libc/src/math/llroundf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LLROUNDF16_H
#define LLVM_LIBC_SRC_MATH_LLROUNDF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llroundf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLROUNDF16_H
diff --git a/libc/src/math/llroundl.h b/libc/src/math/llroundl.h
index 325cac3..9cb4251 100644
--- a/libc/src/math/llroundl.h
+++ b/libc/src/math/llroundl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LLROUNDL_H
#define LLVM_LIBC_SRC_MATH_LLROUNDL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long long llroundl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LLROUNDL_H
diff --git a/libc/src/math/log.h b/libc/src/math/log.h
index ce6296f..67f5d7f 100644
--- a/libc/src/math/log.h
+++ b/libc/src/math/log.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOG_H
#define LLVM_LIBC_SRC_MATH_LOG_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double log(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOG_H
diff --git a/libc/src/math/log10.h b/libc/src/math/log10.h
index 025163a..3d8249a 100644
--- a/libc/src/math/log10.h
+++ b/libc/src/math/log10.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOG10_H
#define LLVM_LIBC_SRC_MATH_LOG10_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double log10(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOG10_H
diff --git a/libc/src/math/log10f.h b/libc/src/math/log10f.h
index 59a79995..ca3eadc 100644
--- a/libc/src/math/log10f.h
+++ b/libc/src/math/log10f.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOG10F_H
#define LLVM_LIBC_SRC_MATH_LOG10F_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float log10f(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOG10F_H
diff --git a/libc/src/math/log1p.h b/libc/src/math/log1p.h
index 84b3d8f..48eb9ca 100644
--- a/libc/src/math/log1p.h
+++ b/libc/src/math/log1p.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOG1P_H
#define LLVM_LIBC_SRC_MATH_LOG1P_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double log1p(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOG1P_H
diff --git a/libc/src/math/log1pf.h b/libc/src/math/log1pf.h
index 364c1e8..854f76f 100644
--- a/libc/src/math/log1pf.h
+++ b/libc/src/math/log1pf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOG1PF_H
#define LLVM_LIBC_SRC_MATH_LOG1PF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float log1pf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOG1PF_H
diff --git a/libc/src/math/log2.h b/libc/src/math/log2.h
index a278954..49f0549 100644
--- a/libc/src/math/log2.h
+++ b/libc/src/math/log2.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOG2_H
#define LLVM_LIBC_SRC_MATH_LOG2_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double log2(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOG2_H
diff --git a/libc/src/math/log2f.h b/libc/src/math/log2f.h
index dc35c93..04b7743 100644
--- a/libc/src/math/log2f.h
+++ b/libc/src/math/log2f.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOG2F_H
#define LLVM_LIBC_SRC_MATH_LOG2F_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float log2f(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOG2F_H
diff --git a/libc/src/math/logb.h b/libc/src/math/logb.h
index 13207e2..e24dd43 100644
--- a/libc/src/math/logb.h
+++ b/libc/src/math/logb.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOGB_H
#define LLVM_LIBC_SRC_MATH_LOGB_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double logb(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOGB_H
diff --git a/libc/src/math/logbf.h b/libc/src/math/logbf.h
index 83e117e..e8d5018 100644
--- a/libc/src/math/logbf.h
+++ b/libc/src/math/logbf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOGBF_H
#define LLVM_LIBC_SRC_MATH_LOGBF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float logbf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOGBF_H
diff --git a/libc/src/math/logbf128.h b/libc/src/math/logbf128.h
index 9ce2397..7823bbd 100644
--- a/libc/src/math/logbf128.h
+++ b/libc/src/math/logbf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LOGBF128_H
#define LLVM_LIBC_SRC_MATH_LOGBF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 logbf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOGBF128_H
diff --git a/libc/src/math/logbf16.h b/libc/src/math/logbf16.h
index f602098..8082e06 100644
--- a/libc/src/math/logbf16.h
+++ b/libc/src/math/logbf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LOGBF16_H
#define LLVM_LIBC_SRC_MATH_LOGBF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 logbf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOGBF16_H
diff --git a/libc/src/math/logbl.h b/libc/src/math/logbl.h
index 02114c4..bc32993 100644
--- a/libc/src/math/logbl.h
+++ b/libc/src/math/logbl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOGBL_H
#define LLVM_LIBC_SRC_MATH_LOGBL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double logbl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOGBL_H
diff --git a/libc/src/math/logf.h b/libc/src/math/logf.h
index 163f369..b69be46 100644
--- a/libc/src/math/logf.h
+++ b/libc/src/math/logf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LOGF_H
#define LLVM_LIBC_SRC_MATH_LOGF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float logf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LOGF_H
diff --git a/libc/src/math/lrint.h b/libc/src/math/lrint.h
index f8988dc..e40f860 100644
--- a/libc/src/math/lrint.h
+++ b/libc/src/math/lrint.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LRINT_H
#define LLVM_LIBC_SRC_MATH_LRINT_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lrint(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LRINT_H
diff --git a/libc/src/math/lrintf.h b/libc/src/math/lrintf.h
index cbb1818..93b2c8c 100644
--- a/libc/src/math/lrintf.h
+++ b/libc/src/math/lrintf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LRINTF_H
#define LLVM_LIBC_SRC_MATH_LRINTF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lrintf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LRINTF_H
diff --git a/libc/src/math/lrintf128.h b/libc/src/math/lrintf128.h
index ae710e9..8f3f5cea 100644
--- a/libc/src/math/lrintf128.h
+++ b/libc/src/math/lrintf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LRINTF128_H
#define LLVM_LIBC_SRC_MATH_LRINTF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lrintf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LRINTF128_H
diff --git a/libc/src/math/lrintf16.h b/libc/src/math/lrintf16.h
index 3f2ae90..f31fba4 100644
--- a/libc/src/math/lrintf16.h
+++ b/libc/src/math/lrintf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LRINTF16_H
#define LLVM_LIBC_SRC_MATH_LRINTF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lrintf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LRINTF16_H
diff --git a/libc/src/math/lrintl.h b/libc/src/math/lrintl.h
index fa6e019..c17901d 100644
--- a/libc/src/math/lrintl.h
+++ b/libc/src/math/lrintl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LRINTL_H
#define LLVM_LIBC_SRC_MATH_LRINTL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lrintl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LRINTL_H
diff --git a/libc/src/math/lround.h b/libc/src/math/lround.h
index 951f900..4a67cc9 100644
--- a/libc/src/math/lround.h
+++ b/libc/src/math/lround.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LROUND_H
#define LLVM_LIBC_SRC_MATH_LROUND_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lround(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LROUND_H
diff --git a/libc/src/math/lroundf.h b/libc/src/math/lroundf.h
index 9488cc65..9d4f4e8 100644
--- a/libc/src/math/lroundf.h
+++ b/libc/src/math/lroundf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LROUNDF_H
#define LLVM_LIBC_SRC_MATH_LROUNDF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lroundf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LROUNDF_H
diff --git a/libc/src/math/lroundf128.h b/libc/src/math/lroundf128.h
index 4191db5..663b373 100644
--- a/libc/src/math/lroundf128.h
+++ b/libc/src/math/lroundf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LROUNDF128_H
#define LLVM_LIBC_SRC_MATH_LROUNDF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lroundf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LROUNDF128_H
diff --git a/libc/src/math/lroundf16.h b/libc/src/math/lroundf16.h
index 9ad782d..57201e7 100644
--- a/libc/src/math/lroundf16.h
+++ b/libc/src/math/lroundf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_LROUNDF16_H
#define LLVM_LIBC_SRC_MATH_LROUNDF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lroundf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LROUNDF16_H
diff --git a/libc/src/math/lroundl.h b/libc/src/math/lroundl.h
index 159c67e..86673dc 100644
--- a/libc/src/math/lroundl.h
+++ b/libc/src/math/lroundl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_LROUNDL_H
#define LLVM_LIBC_SRC_MATH_LROUNDL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long lroundl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_LROUNDL_H
diff --git a/libc/src/math/modf.h b/libc/src/math/modf.h
index 2c56d59..91453a0 100644
--- a/libc/src/math/modf.h
+++ b/libc/src/math/modf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_MODF_H
#define LLVM_LIBC_SRC_MATH_MODF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double modf(double x, double *iptr);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_MODF_H
diff --git a/libc/src/math/modff.h b/libc/src/math/modff.h
index 79e7d9b..85bf2aa 100644
--- a/libc/src/math/modff.h
+++ b/libc/src/math/modff.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_MODFF_H
#define LLVM_LIBC_SRC_MATH_MODFF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float modff(float x, float *iptr);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_MODFF_H
diff --git a/libc/src/math/modff128.h b/libc/src/math/modff128.h
index 32c9842..48e614b 100644
--- a/libc/src/math/modff128.h
+++ b/libc/src/math/modff128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_MODFF128_H
#define LLVM_LIBC_SRC_MATH_MODFF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 modff128(float128 x, float128 *iptr);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_MODFF128_H
diff --git a/libc/src/math/modff16.h b/libc/src/math/modff16.h
index ce09744..a3017c5 100644
--- a/libc/src/math/modff16.h
+++ b/libc/src/math/modff16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_MODFF16_H
#define LLVM_LIBC_SRC_MATH_MODFF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 modff16(float16 x, float16 *iptr);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_MODFF16_H
diff --git a/libc/src/math/modfl.h b/libc/src/math/modfl.h
index c1e1627..5ea2c6d 100644
--- a/libc/src/math/modfl.h
+++ b/libc/src/math/modfl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_MODFL_H
#define LLVM_LIBC_SRC_MATH_MODFL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double modfl(long double x, long double *iptr);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_MODFL_H
diff --git a/libc/src/math/nan.h b/libc/src/math/nan.h
index 36fed1b..463940b 100644
--- a/libc/src/math/nan.h
+++ b/libc/src/math/nan.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NAN_H
#define LLVM_LIBC_SRC_MATH_NAN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double nan(const char *arg);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NAN_H
diff --git a/libc/src/math/nanf.h b/libc/src/math/nanf.h
index 3b72ed2..f05d60e 100644
--- a/libc/src/math/nanf.h
+++ b/libc/src/math/nanf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NANF_H
#define LLVM_LIBC_SRC_MATH_NANF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float nanf(const char *arg);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NANF_H
diff --git a/libc/src/math/nanf128.h b/libc/src/math/nanf128.h
index 1c1323a..b06d14e 100644
--- a/libc/src/math/nanf128.h
+++ b/libc/src/math/nanf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NANF128_H
#define LLVM_LIBC_SRC_MATH_NANF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 nanf128(const char *arg);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NANF128_H
diff --git a/libc/src/math/nanf16.h b/libc/src/math/nanf16.h
index 1721bcc0..c2db4ba 100644
--- a/libc/src/math/nanf16.h
+++ b/libc/src/math/nanf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NANF16_H
#define LLVM_LIBC_SRC_MATH_NANF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 nanf16(const char *arg);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NANF16_H
diff --git a/libc/src/math/nanl.h b/libc/src/math/nanl.h
index a4a0377..d8bbce7 100644
--- a/libc/src/math/nanl.h
+++ b/libc/src/math/nanl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NANL_H
#define LLVM_LIBC_SRC_MATH_NANL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double nanl(const char *arg);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NANL_H
diff --git a/libc/src/math/nearbyint.h b/libc/src/math/nearbyint.h
index 469bd99..df292a2 100644
--- a/libc/src/math/nearbyint.h
+++ b/libc/src/math/nearbyint.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEARBYINT_H
#define LLVM_LIBC_SRC_MATH_NEARBYINT_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double nearbyint(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEARBYINT_H
diff --git a/libc/src/math/nearbyintf.h b/libc/src/math/nearbyintf.h
index d89a762..3860dc0 100644
--- a/libc/src/math/nearbyintf.h
+++ b/libc/src/math/nearbyintf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEARBYINTF_H
#define LLVM_LIBC_SRC_MATH_NEARBYINTF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float nearbyintf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEARBYINTF_H
diff --git a/libc/src/math/nearbyintf128.h b/libc/src/math/nearbyintf128.h
index 9c4fdd5..d12754a 100644
--- a/libc/src/math/nearbyintf128.h
+++ b/libc/src/math/nearbyintf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEARBYINTF128_H
#define LLVM_LIBC_SRC_MATH_NEARBYINTF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 nearbyintf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEARBYINTF128_H
diff --git a/libc/src/math/nearbyintf16.h b/libc/src/math/nearbyintf16.h
index 2241e43..3e6f3fb 100644
--- a/libc/src/math/nearbyintf16.h
+++ b/libc/src/math/nearbyintf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEARBYINTF16_H
#define LLVM_LIBC_SRC_MATH_NEARBYINTF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 nearbyintf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEARBYINTF16_H
diff --git a/libc/src/math/nearbyintl.h b/libc/src/math/nearbyintl.h
index 3fed5d8..e22cae6 100644
--- a/libc/src/math/nearbyintl.h
+++ b/libc/src/math/nearbyintl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEARBYINTL_H
#define LLVM_LIBC_SRC_MATH_NEARBYINTL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double nearbyintl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEARBYINTL_H
diff --git a/libc/src/math/nextafter.h b/libc/src/math/nextafter.h
index 636dbd5..fc4c9eb 100644
--- a/libc/src/math/nextafter.h
+++ b/libc/src/math/nextafter.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTAFTER_H
#define LLVM_LIBC_SRC_MATH_NEXTAFTER_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double nextafter(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTAFTER_H
diff --git a/libc/src/math/nextafterf.h b/libc/src/math/nextafterf.h
index 70ab76e..de7870d 100644
--- a/libc/src/math/nextafterf.h
+++ b/libc/src/math/nextafterf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTAFTERF_H
#define LLVM_LIBC_SRC_MATH_NEXTAFTERF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float nextafterf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTAFTERF_H
diff --git a/libc/src/math/nextafterf128.h b/libc/src/math/nextafterf128.h
index 99b15d6..a404d33 100644
--- a/libc/src/math/nextafterf128.h
+++ b/libc/src/math/nextafterf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTAFTERF128_H
#define LLVM_LIBC_SRC_MATH_NEXTAFTERF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 nextafterf128(float128 x, float128 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTAFTERF128_H
diff --git a/libc/src/math/nextafterf16.h b/libc/src/math/nextafterf16.h
index ab4e0fd..293569e 100644
--- a/libc/src/math/nextafterf16.h
+++ b/libc/src/math/nextafterf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTAFTERF16_H
#define LLVM_LIBC_SRC_MATH_NEXTAFTERF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 nextafterf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTAFTERF16_H
diff --git a/libc/src/math/nextafterl.h b/libc/src/math/nextafterl.h
index a697f79..1b94e24 100644
--- a/libc/src/math/nextafterl.h
+++ b/libc/src/math/nextafterl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTAFTERL_H
#define LLVM_LIBC_SRC_MATH_NEXTAFTERL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double nextafterl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTAFTERL_H
diff --git a/libc/src/math/nextdown.h b/libc/src/math/nextdown.h
index 21f33e3..8049b17 100644
--- a/libc/src/math/nextdown.h
+++ b/libc/src/math/nextdown.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTDOWN_H
#define LLVM_LIBC_SRC_MATH_NEXTDOWN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double nextdown(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTDOWN_H
diff --git a/libc/src/math/nextdownf.h b/libc/src/math/nextdownf.h
index f689287..0a2f234 100644
--- a/libc/src/math/nextdownf.h
+++ b/libc/src/math/nextdownf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTDOWNF_H
#define LLVM_LIBC_SRC_MATH_NEXTDOWNF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float nextdownf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTDOWNF_H
diff --git a/libc/src/math/nextdownf128.h b/libc/src/math/nextdownf128.h
index 60ba251..0a3043b 100644
--- a/libc/src/math/nextdownf128.h
+++ b/libc/src/math/nextdownf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTDOWNF128_H
#define LLVM_LIBC_SRC_MATH_NEXTDOWNF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 nextdownf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTDOWNF128_H
diff --git a/libc/src/math/nextdownf16.h b/libc/src/math/nextdownf16.h
index 5183db2..1913757 100644
--- a/libc/src/math/nextdownf16.h
+++ b/libc/src/math/nextdownf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTDOWNF16_H
#define LLVM_LIBC_SRC_MATH_NEXTDOWNF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 nextdownf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTDOWNF16_H
diff --git a/libc/src/math/nextdownl.h b/libc/src/math/nextdownl.h
index 5815579..9cb274a 100644
--- a/libc/src/math/nextdownl.h
+++ b/libc/src/math/nextdownl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTDOWNL_H
#define LLVM_LIBC_SRC_MATH_NEXTDOWNL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double nextdownl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTDOWNL_H
diff --git a/libc/src/math/nexttoward.h b/libc/src/math/nexttoward.h
index cfa6af9..6a5bece 100644
--- a/libc/src/math/nexttoward.h
+++ b/libc/src/math/nexttoward.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTTOWARD_H
#define LLVM_LIBC_SRC_MATH_NEXTTOWARD_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double nexttoward(double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTTOWARD_H
diff --git a/libc/src/math/nexttowardf.h b/libc/src/math/nexttowardf.h
index ee34548..7a0eb2a 100644
--- a/libc/src/math/nexttowardf.h
+++ b/libc/src/math/nexttowardf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTTOWARDF_H
#define LLVM_LIBC_SRC_MATH_NEXTTOWARDF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float nexttowardf(float x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTTOWARDF_H
diff --git a/libc/src/math/nexttowardf16.h b/libc/src/math/nexttowardf16.h
index 59759260..604eb32 100644
--- a/libc/src/math/nexttowardf16.h
+++ b/libc/src/math/nexttowardf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTTOWARDF16_H
#define LLVM_LIBC_SRC_MATH_NEXTTOWARDF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 nexttowardf16(float16 x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTTOWARDF16_H
diff --git a/libc/src/math/nexttowardl.h b/libc/src/math/nexttowardl.h
index 180ffb5..be1d8b2 100644
--- a/libc/src/math/nexttowardl.h
+++ b/libc/src/math/nexttowardl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTTOWARDL_H
#define LLVM_LIBC_SRC_MATH_NEXTTOWARDL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double nexttowardl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTTOWARDL_H
diff --git a/libc/src/math/nextup.h b/libc/src/math/nextup.h
index 37b81fd..97ae822 100644
--- a/libc/src/math/nextup.h
+++ b/libc/src/math/nextup.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTUP_H
#define LLVM_LIBC_SRC_MATH_NEXTUP_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double nextup(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTUP_H
diff --git a/libc/src/math/nextupf.h b/libc/src/math/nextupf.h
index 9963dbd..ffc0fa1 100644
--- a/libc/src/math/nextupf.h
+++ b/libc/src/math/nextupf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTUPF_H
#define LLVM_LIBC_SRC_MATH_NEXTUPF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float nextupf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTUPF_H
diff --git a/libc/src/math/nextupf128.h b/libc/src/math/nextupf128.h
index 755c08d..b442992 100644
--- a/libc/src/math/nextupf128.h
+++ b/libc/src/math/nextupf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTUPF128_H
#define LLVM_LIBC_SRC_MATH_NEXTUPF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 nextupf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTUPF128_H
diff --git a/libc/src/math/nextupf16.h b/libc/src/math/nextupf16.h
index d80a105..b2973e4 100644
--- a/libc/src/math/nextupf16.h
+++ b/libc/src/math/nextupf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTUPF16_H
#define LLVM_LIBC_SRC_MATH_NEXTUPF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 nextupf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTUPF16_H
diff --git a/libc/src/math/nextupl.h b/libc/src/math/nextupl.h
index d9c5c52..cbc6a16 100644
--- a/libc/src/math/nextupl.h
+++ b/libc/src/math/nextupl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_NEXTUPL_H
#define LLVM_LIBC_SRC_MATH_NEXTUPL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double nextupl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NEXTUPL_H
diff --git a/libc/src/math/nvptx/acos.cpp b/libc/src/math/nvptx/acos.cpp
index 7049f9f..da2c795 100644
--- a/libc/src/math/nvptx/acos.cpp
+++ b/libc/src/math/nvptx/acos.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, acos, (double x)) { return __nv_acos(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/acosf.cpp b/libc/src/math/nvptx/acosf.cpp
index cf70a0f..8a4125f 100644
--- a/libc/src/math/nvptx/acosf.cpp
+++ b/libc/src/math/nvptx/acosf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, acosf, (float x)) { return __nv_acosf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/acosh.cpp b/libc/src/math/nvptx/acosh.cpp
index 2628aa9..06f6e29 100644
--- a/libc/src/math/nvptx/acosh.cpp
+++ b/libc/src/math/nvptx/acosh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, acosh, (double x)) { return __nv_acosh(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/acoshf.cpp b/libc/src/math/nvptx/acoshf.cpp
index b8f57fd..00e8053 100644
--- a/libc/src/math/nvptx/acoshf.cpp
+++ b/libc/src/math/nvptx/acoshf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, acoshf, (float x)) { return __nv_acoshf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/asin.cpp b/libc/src/math/nvptx/asin.cpp
index 417b67a..74d92fd 100644
--- a/libc/src/math/nvptx/asin.cpp
+++ b/libc/src/math/nvptx/asin.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, asin, (double x)) { return __nv_asin(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/asinf.cpp b/libc/src/math/nvptx/asinf.cpp
index ea819bd..30544bc 100644
--- a/libc/src/math/nvptx/asinf.cpp
+++ b/libc/src/math/nvptx/asinf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, asinf, (float x)) { return __nv_asinf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/asinh.cpp b/libc/src/math/nvptx/asinh.cpp
index 49dcd22..0e5dbb4 100644
--- a/libc/src/math/nvptx/asinh.cpp
+++ b/libc/src/math/nvptx/asinh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, asinh, (double x)) { return __nv_asinh(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/asinhf.cpp b/libc/src/math/nvptx/asinhf.cpp
index af8afe7..6648108 100644
--- a/libc/src/math/nvptx/asinhf.cpp
+++ b/libc/src/math/nvptx/asinhf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, asinhf, (float x)) { return __nv_asinhf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/atan.cpp b/libc/src/math/nvptx/atan.cpp
index e94ef57..3af793a 100644
--- a/libc/src/math/nvptx/atan.cpp
+++ b/libc/src/math/nvptx/atan.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, atan, (double x)) { return __nv_atan(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/atan2.cpp b/libc/src/math/nvptx/atan2.cpp
index d12c4cb..0c54e0e 100644
--- a/libc/src/math/nvptx/atan2.cpp
+++ b/libc/src/math/nvptx/atan2.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, atan2, (double x, double y)) {
return __nv_atan2(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/atan2f.cpp b/libc/src/math/nvptx/atan2f.cpp
index f39f322..c3327d9 100644
--- a/libc/src/math/nvptx/atan2f.cpp
+++ b/libc/src/math/nvptx/atan2f.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, atan2f, (float x, float y)) {
return __nv_atan2f(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/atanf.cpp b/libc/src/math/nvptx/atanf.cpp
index f66ade7..5595262 100644
--- a/libc/src/math/nvptx/atanf.cpp
+++ b/libc/src/math/nvptx/atanf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, atanf, (float x)) { return __nv_atanf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/atanh.cpp b/libc/src/math/nvptx/atanh.cpp
index a206d51..6699d95 100644
--- a/libc/src/math/nvptx/atanh.cpp
+++ b/libc/src/math/nvptx/atanh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, atanh, (double x)) { return __nv_atanh(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/atanhf.cpp b/libc/src/math/nvptx/atanhf.cpp
index 06f6883..526b7b3 100644
--- a/libc/src/math/nvptx/atanhf.cpp
+++ b/libc/src/math/nvptx/atanhf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, atanhf, (float x)) { return __nv_atanhf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/ceil.cpp b/libc/src/math/nvptx/ceil.cpp
index 8834c7b..ad1407d 100644
--- a/libc/src/math/nvptx/ceil.cpp
+++ b/libc/src/math/nvptx/ceil.cpp
@@ -8,10 +8,9 @@
#include "src/math/ceil.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ceil, (double x)) { return __builtin_ceil(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/ceilf.cpp b/libc/src/math/nvptx/ceilf.cpp
index 5d26a30..c4fc58d 100644
--- a/libc/src/math/nvptx/ceilf.cpp
+++ b/libc/src/math/nvptx/ceilf.cpp
@@ -8,10 +8,9 @@
#include "src/math/ceilf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ceilf, (float x)) { return __builtin_ceilf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/copysign.cpp b/libc/src/math/nvptx/copysign.cpp
index 06ef36f..6f804bd 100644
--- a/libc/src/math/nvptx/copysign.cpp
+++ b/libc/src/math/nvptx/copysign.cpp
@@ -8,12 +8,11 @@
#include "src/math/copysign.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, copysign, (double x, double y)) {
return __builtin_copysign(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/copysignf.cpp b/libc/src/math/nvptx/copysignf.cpp
index aea94f3..4d7e132 100644
--- a/libc/src/math/nvptx/copysignf.cpp
+++ b/libc/src/math/nvptx/copysignf.cpp
@@ -8,12 +8,11 @@
#include "src/math/copysignf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, copysignf, (float x, float y)) {
return __builtin_copysignf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/cos.cpp b/libc/src/math/nvptx/cos.cpp
index 873fd50..185ad3c 100644
--- a/libc/src/math/nvptx/cos.cpp
+++ b/libc/src/math/nvptx/cos.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, cos, (double x)) { return __nv_cos(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/cosf.cpp b/libc/src/math/nvptx/cosf.cpp
index 82b3bb7..3d34de4 100644
--- a/libc/src/math/nvptx/cosf.cpp
+++ b/libc/src/math/nvptx/cosf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, cosf, (float x)) { return __nv_cosf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/cosh.cpp b/libc/src/math/nvptx/cosh.cpp
index 434e8c5..179864c 100644
--- a/libc/src/math/nvptx/cosh.cpp
+++ b/libc/src/math/nvptx/cosh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, cosh, (double x)) { return __nv_cosh(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/coshf.cpp b/libc/src/math/nvptx/coshf.cpp
index 87d6b16..9147499 100644
--- a/libc/src/math/nvptx/coshf.cpp
+++ b/libc/src/math/nvptx/coshf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, coshf, (float x)) { return __nv_coshf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/declarations.h b/libc/src/math/nvptx/declarations.h
index 7bfa934..cf8f6e0 100644
--- a/libc/src/math/nvptx/declarations.h
+++ b/libc/src/math/nvptx/declarations.h
@@ -9,9 +9,7 @@
#ifndef LLVM_LIBC_SRC_MATH_NVPTX_DECLARATIONS_H
#define LLVM_LIBC_SRC_MATH_NVPTX_DECLARATIONS_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
extern "C" {
double __nv_acos(double);
@@ -88,6 +86,6 @@ double __nv_tgamma(double);
float __nv_tgammaf(float);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NVPTX_DECLARATIONS_H
diff --git a/libc/src/math/nvptx/erf.cpp b/libc/src/math/nvptx/erf.cpp
index c7ca7d4..5ea0177 100644
--- a/libc/src/math/nvptx/erf.cpp
+++ b/libc/src/math/nvptx/erf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, erf, (double x)) { return __nv_erf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/erff.cpp b/libc/src/math/nvptx/erff.cpp
index 1c64e07..03fdcea 100644
--- a/libc/src/math/nvptx/erff.cpp
+++ b/libc/src/math/nvptx/erff.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, erff, (float x)) { return __nv_erff(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/exp.cpp b/libc/src/math/nvptx/exp.cpp
index dcbadcf..6bbe87b 100644
--- a/libc/src/math/nvptx/exp.cpp
+++ b/libc/src/math/nvptx/exp.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, exp, (double x)) { return __nv_exp(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/exp10.cpp b/libc/src/math/nvptx/exp10.cpp
index 0972a3c..11bb734 100644
--- a/libc/src/math/nvptx/exp10.cpp
+++ b/libc/src/math/nvptx/exp10.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, exp10, (double x)) { return __nv_exp10(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/exp10f.cpp b/libc/src/math/nvptx/exp10f.cpp
index 0709771..4e3121a 100644
--- a/libc/src/math/nvptx/exp10f.cpp
+++ b/libc/src/math/nvptx/exp10f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, exp10f, (float x)) { return __nv_exp10f(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/exp2.cpp b/libc/src/math/nvptx/exp2.cpp
index 3465e5b..35fc27b 100644
--- a/libc/src/math/nvptx/exp2.cpp
+++ b/libc/src/math/nvptx/exp2.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, exp2, (double x)) { return __nv_exp2(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/exp2f.cpp b/libc/src/math/nvptx/exp2f.cpp
index 0525764..8d13734 100644
--- a/libc/src/math/nvptx/exp2f.cpp
+++ b/libc/src/math/nvptx/exp2f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, exp2f, (float x)) { return __nv_exp2f(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/expf.cpp b/libc/src/math/nvptx/expf.cpp
index 2b802e5..a6362bd 100644
--- a/libc/src/math/nvptx/expf.cpp
+++ b/libc/src/math/nvptx/expf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, expf, (float x)) { return __nv_expf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/expm1.cpp b/libc/src/math/nvptx/expm1.cpp
index 91845cf..0331903 100644
--- a/libc/src/math/nvptx/expm1.cpp
+++ b/libc/src/math/nvptx/expm1.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, expm1, (double x)) { return __nv_expm1(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/expm1f.cpp b/libc/src/math/nvptx/expm1f.cpp
index 31e67af..7b74c54 100644
--- a/libc/src/math/nvptx/expm1f.cpp
+++ b/libc/src/math/nvptx/expm1f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, expm1f, (float x)) { return __nv_expm1f(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fabs.cpp b/libc/src/math/nvptx/fabs.cpp
index bb37596..c0d063d 100644
--- a/libc/src/math/nvptx/fabs.cpp
+++ b/libc/src/math/nvptx/fabs.cpp
@@ -8,10 +8,9 @@
#include "src/math/fabs.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fabs, (double x)) { return __builtin_fabs(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fabsf.cpp b/libc/src/math/nvptx/fabsf.cpp
index 2698618..398ffd0 100644
--- a/libc/src/math/nvptx/fabsf.cpp
+++ b/libc/src/math/nvptx/fabsf.cpp
@@ -8,10 +8,9 @@
#include "src/math/fabsf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fabsf, (float x)) { return __builtin_fabsf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fdim.cpp b/libc/src/math/nvptx/fdim.cpp
index edf4009..2f1ff51 100644
--- a/libc/src/math/nvptx/fdim.cpp
+++ b/libc/src/math/nvptx/fdim.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fdim, (double x, double y)) {
return __nv_fdim(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fdimf.cpp b/libc/src/math/nvptx/fdimf.cpp
index 017143a..c24e6be 100644
--- a/libc/src/math/nvptx/fdimf.cpp
+++ b/libc/src/math/nvptx/fdimf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fdimf, (float x, float y)) {
return __nv_fdimf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/floor.cpp b/libc/src/math/nvptx/floor.cpp
index 564efa9..eada89c 100644
--- a/libc/src/math/nvptx/floor.cpp
+++ b/libc/src/math/nvptx/floor.cpp
@@ -8,10 +8,9 @@
#include "src/math/floor.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, floor, (double x)) { return __builtin_floor(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/floorf.cpp b/libc/src/math/nvptx/floorf.cpp
index 6717c8f..a5611c5 100644
--- a/libc/src/math/nvptx/floorf.cpp
+++ b/libc/src/math/nvptx/floorf.cpp
@@ -8,10 +8,9 @@
#include "src/math/floorf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, floorf, (float x)) { return __builtin_floorf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fma.cpp b/libc/src/math/nvptx/fma.cpp
index c4a117e..41a6ddf 100644
--- a/libc/src/math/nvptx/fma.cpp
+++ b/libc/src/math/nvptx/fma.cpp
@@ -8,12 +8,11 @@
#include "src/math/fma.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fma, (double x, double y, double z)) {
return __builtin_fma(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fmaf.cpp b/libc/src/math/nvptx/fmaf.cpp
index c088bd5..c948e32 100644
--- a/libc/src/math/nvptx/fmaf.cpp
+++ b/libc/src/math/nvptx/fmaf.cpp
@@ -8,12 +8,11 @@
#include "src/math/fmaf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaf, (float x, float y, float z)) {
return __builtin_fmaf(x, y, z);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fmax.cpp b/libc/src/math/nvptx/fmax.cpp
index a2496fe..3ba65d7 100644
--- a/libc/src/math/nvptx/fmax.cpp
+++ b/libc/src/math/nvptx/fmax.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmax.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmax, (double x, double y)) {
return __builtin_fmax(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fmaxf.cpp b/libc/src/math/nvptx/fmaxf.cpp
index 586fd32..e977082 100644
--- a/libc/src/math/nvptx/fmaxf.cpp
+++ b/libc/src/math/nvptx/fmaxf.cpp
@@ -10,13 +10,12 @@
#include "src/__support/CPP/bit.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "src/__support/macros/optimization.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmaxf, (float x, float y)) {
return __builtin_fmaxf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fmin.cpp b/libc/src/math/nvptx/fmin.cpp
index 694eb66..0d6f352 100644
--- a/libc/src/math/nvptx/fmin.cpp
+++ b/libc/src/math/nvptx/fmin.cpp
@@ -9,12 +9,11 @@
#include "src/math/fmin.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmin, (double x, double y)) {
return __builtin_fmin(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fminf.cpp b/libc/src/math/nvptx/fminf.cpp
index 2060b71..42744abf 100644
--- a/libc/src/math/nvptx/fminf.cpp
+++ b/libc/src/math/nvptx/fminf.cpp
@@ -9,12 +9,11 @@
#include "src/math/fminf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fminf, (float x, float y)) {
return __builtin_fminf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fmod.cpp b/libc/src/math/nvptx/fmod.cpp
index 49d19c4d..0654cdd 100644
--- a/libc/src/math/nvptx/fmod.cpp
+++ b/libc/src/math/nvptx/fmod.cpp
@@ -8,12 +8,11 @@
#include "src/math/fmod.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, fmod, (double x, double y)) {
return __builtin_fmod(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/fmodf.cpp b/libc/src/math/nvptx/fmodf.cpp
index 8fbcb0c..b689046 100644
--- a/libc/src/math/nvptx/fmodf.cpp
+++ b/libc/src/math/nvptx/fmodf.cpp
@@ -8,12 +8,11 @@
#include "src/math/fmodf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, fmodf, (float x, float y)) {
return __builtin_fmodf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/frexp.cpp b/libc/src/math/nvptx/frexp.cpp
index edba8d7..2423961f 100644
--- a/libc/src/math/nvptx/frexp.cpp
+++ b/libc/src/math/nvptx/frexp.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, frexp, (double x, int *p)) {
return __nv_frexp(x, p);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/frexpf.cpp b/libc/src/math/nvptx/frexpf.cpp
index 0461941..f1ea290 100644
--- a/libc/src/math/nvptx/frexpf.cpp
+++ b/libc/src/math/nvptx/frexpf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, frexpf, (float x, int *p)) {
return __nv_frexpf(x, p);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/hypot.cpp b/libc/src/math/nvptx/hypot.cpp
index a7bacd6..28bf04a 100644
--- a/libc/src/math/nvptx/hypot.cpp
+++ b/libc/src/math/nvptx/hypot.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, hypot, (double x, double y)) {
return __nv_hypot(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/hypotf.cpp b/libc/src/math/nvptx/hypotf.cpp
index 49e85a1..c506aab 100644
--- a/libc/src/math/nvptx/hypotf.cpp
+++ b/libc/src/math/nvptx/hypotf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, hypotf, (float x, float y)) {
return __nv_hypotf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/ilogb.cpp b/libc/src/math/nvptx/ilogb.cpp
index 3d552c2..fc75e2f 100644
--- a/libc/src/math/nvptx/ilogb.cpp
+++ b/libc/src/math/nvptx/ilogb.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogb, (double x)) { return __nv_ilogb(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/ilogbf.cpp b/libc/src/math/nvptx/ilogbf.cpp
index a78926f..3d14fcf 100644
--- a/libc/src/math/nvptx/ilogbf.cpp
+++ b/libc/src/math/nvptx/ilogbf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(int, ilogbf, (float x)) { return __nv_ilogbf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/ldexp.cpp b/libc/src/math/nvptx/ldexp.cpp
index 0adc7c3..761dc48 100644
--- a/libc/src/math/nvptx/ldexp.cpp
+++ b/libc/src/math/nvptx/ldexp.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, ldexp, (double x, int y)) {
return __nv_ldexp(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/ldexpf.cpp b/libc/src/math/nvptx/ldexpf.cpp
index eb7dd42..2d4c556 100644
--- a/libc/src/math/nvptx/ldexpf.cpp
+++ b/libc/src/math/nvptx/ldexpf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, ldexpf, (float x, int y)) {
return __nv_ldexpf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/llrint.cpp b/libc/src/math/nvptx/llrint.cpp
index 21129fe..307420a 100644
--- a/libc/src/math/nvptx/llrint.cpp
+++ b/libc/src/math/nvptx/llrint.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrint, (double x)) {
return static_cast<long long>(__builtin_rint(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/llrintf.cpp b/libc/src/math/nvptx/llrintf.cpp
index a6f9f43..2340499 100644
--- a/libc/src/math/nvptx/llrintf.cpp
+++ b/libc/src/math/nvptx/llrintf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llrintf, (float x)) {
return static_cast<long long>(__builtin_rintf(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/log.cpp b/libc/src/math/nvptx/log.cpp
index fd556ac..26b6dfa 100644
--- a/libc/src/math/nvptx/log.cpp
+++ b/libc/src/math/nvptx/log.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, log, (double x)) { return __nv_log(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/log10.cpp b/libc/src/math/nvptx/log10.cpp
index fbbf214..ff27025 100644
--- a/libc/src/math/nvptx/log10.cpp
+++ b/libc/src/math/nvptx/log10.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, log10, (double x)) { return __nv_log10(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/log10f.cpp b/libc/src/math/nvptx/log10f.cpp
index c2f24df..af903b6 100644
--- a/libc/src/math/nvptx/log10f.cpp
+++ b/libc/src/math/nvptx/log10f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, log10f, (float x)) { return __nv_log10f(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/log1p.cpp b/libc/src/math/nvptx/log1p.cpp
index 2ffd0fe..47bc96b 100644
--- a/libc/src/math/nvptx/log1p.cpp
+++ b/libc/src/math/nvptx/log1p.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, log1p, (double x)) { return __nv_log1p(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/log1pf.cpp b/libc/src/math/nvptx/log1pf.cpp
index 2de4f27..bfa4f7f 100644
--- a/libc/src/math/nvptx/log1pf.cpp
+++ b/libc/src/math/nvptx/log1pf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, log1pf, (float x)) { return __nv_log1pf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/log2.cpp b/libc/src/math/nvptx/log2.cpp
index 54e2da0..86a980d 100644
--- a/libc/src/math/nvptx/log2.cpp
+++ b/libc/src/math/nvptx/log2.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, log2, (double x)) { return __nv_log2(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/log2f.cpp b/libc/src/math/nvptx/log2f.cpp
index c2a6054..5ce4629 100644
--- a/libc/src/math/nvptx/log2f.cpp
+++ b/libc/src/math/nvptx/log2f.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, log2f, (float x)) { return __nv_log2f(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/logb.cpp b/libc/src/math/nvptx/logb.cpp
index f6998bd..b620b16 100644
--- a/libc/src/math/nvptx/logb.cpp
+++ b/libc/src/math/nvptx/logb.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, logb, (double x)) { return __nv_logb(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/logbf.cpp b/libc/src/math/nvptx/logbf.cpp
index f72c04f..f19f032 100644
--- a/libc/src/math/nvptx/logbf.cpp
+++ b/libc/src/math/nvptx/logbf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, logbf, (float x)) { return __nv_logbf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/logf.cpp b/libc/src/math/nvptx/logf.cpp
index 1a5bc1e..6deb482 100644
--- a/libc/src/math/nvptx/logf.cpp
+++ b/libc/src/math/nvptx/logf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, logf, (float x)) { return __nv_logf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/lrint.cpp b/libc/src/math/nvptx/lrint.cpp
index 715b552..b335b4f 100644
--- a/libc/src/math/nvptx/lrint.cpp
+++ b/libc/src/math/nvptx/lrint.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrint, (double x)) {
return static_cast<long>(__builtin_rint(x));
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/lrintf.cpp b/libc/src/math/nvptx/lrintf.cpp
index 3ed05f6..312a946 100644
--- a/libc/src/math/nvptx/lrintf.cpp
+++ b/libc/src/math/nvptx/lrintf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long, lrintf, (float x)) { return __nv_lrintf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/nearbyint.cpp b/libc/src/math/nvptx/nearbyint.cpp
index 7d78c72..9c7b600 100644
--- a/libc/src/math/nvptx/nearbyint.cpp
+++ b/libc/src/math/nvptx/nearbyint.cpp
@@ -8,12 +8,11 @@
#include "src/math/nearbyint.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nearbyint, (double x)) {
return __builtin_nearbyint(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/nearbyintf.cpp b/libc/src/math/nvptx/nearbyintf.cpp
index 4bd20dc..7fbe9f4 100644
--- a/libc/src/math/nvptx/nearbyintf.cpp
+++ b/libc/src/math/nvptx/nearbyintf.cpp
@@ -8,12 +8,11 @@
#include "src/math/nearbyintf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nearbyintf, (float x)) {
return __builtin_nearbyintf(x);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/nextafter.cpp b/libc/src/math/nvptx/nextafter.cpp
index 3dc9100..171aaad 100644
--- a/libc/src/math/nvptx/nextafter.cpp
+++ b/libc/src/math/nvptx/nextafter.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, nextafter, (double x, double y)) {
return __nv_nextafter(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/nextafterf.cpp b/libc/src/math/nvptx/nextafterf.cpp
index 162b85e..a45937c 100644
--- a/libc/src/math/nvptx/nextafterf.cpp
+++ b/libc/src/math/nvptx/nextafterf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, nextafterf, (float x, float y)) {
return __nv_nextafterf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/nvptx.h b/libc/src/math/nvptx/nvptx.h
index 2035b76..5f9b32f 100644
--- a/libc/src/math/nvptx/nvptx.h
+++ b/libc/src/math/nvptx/nvptx.h
@@ -12,9 +12,8 @@
#include "declarations.h"
#include "src/__support/macros/attributes.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
namespace internal {
LIBC_INLINE double acos(double x) { return __nv_acos(x); }
LIBC_INLINE float acosf(float x) { return __nv_acosf(x); }
@@ -98,6 +97,6 @@ LIBC_INLINE double tgamma(double x) { return __nv_tgamma(x); }
LIBC_INLINE float tgammaf(float x) { return __nv_tgammaf(x); }
} // namespace internal
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_NVPTX_NVPTX_H
diff --git a/libc/src/math/nvptx/pow.cpp b/libc/src/math/nvptx/pow.cpp
index c51dd56..7de3c9e 100644
--- a/libc/src/math/nvptx/pow.cpp
+++ b/libc/src/math/nvptx/pow.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, pow, (double x, double y)) { return __nv_pow(x, y); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/powf.cpp b/libc/src/math/nvptx/powf.cpp
index 9c577c7..f9f7dba 100644
--- a/libc/src/math/nvptx/powf.cpp
+++ b/libc/src/math/nvptx/powf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, powf, (float x, float y)) { return __nv_powf(x, y); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/powi.cpp b/libc/src/math/nvptx/powi.cpp
index 16214bd..b7871ab 100644
--- a/libc/src/math/nvptx/powi.cpp
+++ b/libc/src/math/nvptx/powi.cpp
@@ -8,12 +8,11 @@
#include "src/math/powi.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "declarations.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, powi, (double x, int y)) { return __nv_powi(x, y); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/powif.cpp b/libc/src/math/nvptx/powif.cpp
index 5d26fdc..0143745 100644
--- a/libc/src/math/nvptx/powif.cpp
+++ b/libc/src/math/nvptx/powif.cpp
@@ -8,12 +8,11 @@
#include "src/math/powif.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
#include "declarations.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, powif, (float x, int y)) { return __nv_powif(x, y); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/remainder.cpp b/libc/src/math/nvptx/remainder.cpp
index 9027204..89b235f 100644
--- a/libc/src/math/nvptx/remainder.cpp
+++ b/libc/src/math/nvptx/remainder.cpp
@@ -8,12 +8,11 @@
#include "src/math/remainder.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, remainder, (double x, double y)) {
return __builtin_remainder(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/remainderf.cpp b/libc/src/math/nvptx/remainderf.cpp
index 50df3b2..9fee6f8 100644
--- a/libc/src/math/nvptx/remainderf.cpp
+++ b/libc/src/math/nvptx/remainderf.cpp
@@ -8,12 +8,11 @@
#include "src/math/remainderf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, remainderf, (float x, float y)) {
return __builtin_remainderf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/remquo.cpp b/libc/src/math/nvptx/remquo.cpp
index aae1831..da69a20 100644
--- a/libc/src/math/nvptx/remquo.cpp
+++ b/libc/src/math/nvptx/remquo.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, remquo, (double x, double y, int *quo)) {
return __nv_remquo(x, y, quo);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/remquof.cpp b/libc/src/math/nvptx/remquof.cpp
index d7ce3c0..dcfba5d 100644
--- a/libc/src/math/nvptx/remquof.cpp
+++ b/libc/src/math/nvptx/remquof.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, remquof, (float x, float y, int *quo)) {
return __nv_remquof(x, y, quo);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/rint.cpp b/libc/src/math/nvptx/rint.cpp
index ac6837a..44d494a 100644
--- a/libc/src/math/nvptx/rint.cpp
+++ b/libc/src/math/nvptx/rint.cpp
@@ -8,10 +8,9 @@
#include "src/math/rint.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, rint, (double x)) { return __builtin_rint(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/rintf.cpp b/libc/src/math/nvptx/rintf.cpp
index 9409347..daf98d9 100644
--- a/libc/src/math/nvptx/rintf.cpp
+++ b/libc/src/math/nvptx/rintf.cpp
@@ -8,10 +8,9 @@
#include "src/math/rintf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, rintf, (float x)) { return __builtin_rintf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/round.cpp b/libc/src/math/nvptx/round.cpp
index 0d2765f..9d8b558 100644
--- a/libc/src/math/nvptx/round.cpp
+++ b/libc/src/math/nvptx/round.cpp
@@ -8,10 +8,9 @@
#include "src/math/round.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, round, (double x)) { return __builtin_round(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/roundf.cpp b/libc/src/math/nvptx/roundf.cpp
index 86e8ba3..8743e4e 100644
--- a/libc/src/math/nvptx/roundf.cpp
+++ b/libc/src/math/nvptx/roundf.cpp
@@ -8,10 +8,9 @@
#include "src/math/roundf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, roundf, (float x)) { return __builtin_roundf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/scalbn.cpp b/libc/src/math/nvptx/scalbn.cpp
index ecadc34..80374db 100644
--- a/libc/src/math/nvptx/scalbn.cpp
+++ b/libc/src/math/nvptx/scalbn.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, scalbn, (double x, int y)) {
return __nv_scalbn(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/scalbnf.cpp b/libc/src/math/nvptx/scalbnf.cpp
index 35ff699..24fa3a5 100644
--- a/libc/src/math/nvptx/scalbnf.cpp
+++ b/libc/src/math/nvptx/scalbnf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, scalbnf, (float x, int y)) {
return __nv_scalbnf(x, y);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/sin.cpp b/libc/src/math/nvptx/sin.cpp
index 0e86f9c..1bff129 100644
--- a/libc/src/math/nvptx/sin.cpp
+++ b/libc/src/math/nvptx/sin.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, sin, (double x)) { return __nv_sin(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/sincos.cpp b/libc/src/math/nvptx/sincos.cpp
index 5a77234..73f92cf 100644
--- a/libc/src/math/nvptx/sincos.cpp
+++ b/libc/src/math/nvptx/sincos.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(void, sincos, (double x, double *sinptr, double *cosptr)) {
return __nv_sincos(x, sinptr, cosptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/sincosf.cpp b/libc/src/math/nvptx/sincosf.cpp
index e4039ad..d053aa3 100644
--- a/libc/src/math/nvptx/sincosf.cpp
+++ b/libc/src/math/nvptx/sincosf.cpp
@@ -10,12 +10,11 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(void, sincosf, (float x, float *sinptr, float *cosptr)) {
return __nv_sincosf(x, sinptr, cosptr);
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/sinf.cpp b/libc/src/math/nvptx/sinf.cpp
index 14e722f..9abd5cb 100644
--- a/libc/src/math/nvptx/sinf.cpp
+++ b/libc/src/math/nvptx/sinf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sinf, (float x)) { return __nv_sinf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/sinh.cpp b/libc/src/math/nvptx/sinh.cpp
index 701811d..dc6a1e1 100644
--- a/libc/src/math/nvptx/sinh.cpp
+++ b/libc/src/math/nvptx/sinh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, sinh, (double x)) { return __nv_sinh(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/sinhf.cpp b/libc/src/math/nvptx/sinhf.cpp
index 2c6ac21..c9ab470ed 100644
--- a/libc/src/math/nvptx/sinhf.cpp
+++ b/libc/src/math/nvptx/sinhf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sinhf, (float x)) { return __nv_sinhf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/sqrt.cpp b/libc/src/math/nvptx/sqrt.cpp
index ed83b6e..60ca5af 100644
--- a/libc/src/math/nvptx/sqrt.cpp
+++ b/libc/src/math/nvptx/sqrt.cpp
@@ -8,10 +8,9 @@
#include "src/math/sqrt.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, sqrt, (double x)) { return __builtin_sqrt(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/sqrtf.cpp b/libc/src/math/nvptx/sqrtf.cpp
index 851922c..e17f942 100644
--- a/libc/src/math/nvptx/sqrtf.cpp
+++ b/libc/src/math/nvptx/sqrtf.cpp
@@ -8,10 +8,9 @@
#include "src/math/sqrtf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, sqrtf, (float x)) { return __builtin_sqrtf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/tan.cpp b/libc/src/math/nvptx/tan.cpp
index 2d3f1fe..deb03dca 100644
--- a/libc/src/math/nvptx/tan.cpp
+++ b/libc/src/math/nvptx/tan.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, tan, (double x)) { return __nv_tan(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/tanf.cpp b/libc/src/math/nvptx/tanf.cpp
index bdf51d9..5739e4a 100644
--- a/libc/src/math/nvptx/tanf.cpp
+++ b/libc/src/math/nvptx/tanf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, tanf, (float x)) { return __nv_tanf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/tanh.cpp b/libc/src/math/nvptx/tanh.cpp
index 8255889..eabee2c 100644
--- a/libc/src/math/nvptx/tanh.cpp
+++ b/libc/src/math/nvptx/tanh.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, tanh, (double x)) { return __nv_tanh(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/tanhf.cpp b/libc/src/math/nvptx/tanhf.cpp
index a22524a..582424c 100644
--- a/libc/src/math/nvptx/tanhf.cpp
+++ b/libc/src/math/nvptx/tanhf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, tanhf, (float x)) { return __nv_tanhf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/tgamma.cpp b/libc/src/math/nvptx/tgamma.cpp
index 29f0334..f921938 100644
--- a/libc/src/math/nvptx/tgamma.cpp
+++ b/libc/src/math/nvptx/tgamma.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, tgamma, (double x)) { return __nv_tgamma(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/tgammaf.cpp b/libc/src/math/nvptx/tgammaf.cpp
index d7de80b..83399445 100644
--- a/libc/src/math/nvptx/tgammaf.cpp
+++ b/libc/src/math/nvptx/tgammaf.cpp
@@ -10,10 +10,9 @@
#include "src/__support/common.h"
#include "declarations.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, tgammaf, (float x)) { return __nv_tgammaf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/trunc.cpp b/libc/src/math/nvptx/trunc.cpp
index f60caa2..773600f 100644
--- a/libc/src/math/nvptx/trunc.cpp
+++ b/libc/src/math/nvptx/trunc.cpp
@@ -8,10 +8,9 @@
#include "src/math/trunc.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(double, trunc, (double x)) { return __builtin_trunc(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/nvptx/truncf.cpp b/libc/src/math/nvptx/truncf.cpp
index a6c9b8f..534797a 100644
--- a/libc/src/math/nvptx/truncf.cpp
+++ b/libc/src/math/nvptx/truncf.cpp
@@ -8,10 +8,9 @@
#include "src/math/truncf.h"
#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(float, truncf, (float x)) { return __builtin_truncf(x); }
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
diff --git a/libc/src/math/pow.h b/libc/src/math/pow.h
index a861920..dd9b4a6 100644
--- a/libc/src/math/pow.h
+++ b/libc/src/math/pow.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_POW_H
#define LLVM_LIBC_SRC_MATH_POW_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double pow(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_POW_H
diff --git a/libc/src/math/powf.h b/libc/src/math/powf.h
index 61c474a..6582dc3 100644
--- a/libc/src/math/powf.h
+++ b/libc/src/math/powf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_POWF_H
#define LLVM_LIBC_SRC_MATH_POWF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float powf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_POWF_H
diff --git a/libc/src/math/powi.h b/libc/src/math/powi.h
index a70fab6..1ee7140f 100644
--- a/libc/src/math/powi.h
+++ b/libc/src/math/powi.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_POWI_H
#define LLVM_LIBC_SRC_MATH_POWI_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double powi(double x, int y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_POW_H
diff --git a/libc/src/math/powif.h b/libc/src/math/powif.h
index ee6716f..417012a 100644
--- a/libc/src/math/powif.h
+++ b/libc/src/math/powif.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_POWIF_H
#define LLVM_LIBC_SRC_MATH_POWIF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float powif(float x, int y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_POW_H
diff --git a/libc/src/math/remainder.h b/libc/src/math/remainder.h
index 5bf2af9..f1f8954 100644
--- a/libc/src/math/remainder.h
+++ b/libc/src/math/remainder.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_REMAINDER_H
#define LLVM_LIBC_SRC_MATH_REMAINDER_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double remainder(double x, double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMAINDER_H
diff --git a/libc/src/math/remainderf.h b/libc/src/math/remainderf.h
index 4997ebc..31a9bbe 100644
--- a/libc/src/math/remainderf.h
+++ b/libc/src/math/remainderf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_REMAINDERF_H
#define LLVM_LIBC_SRC_MATH_REMAINDERF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float remainderf(float x, float y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMAINDERF_H
diff --git a/libc/src/math/remainderf16.h b/libc/src/math/remainderf16.h
index 75f39e5..e23eead 100644
--- a/libc/src/math/remainderf16.h
+++ b/libc/src/math/remainderf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_REMAINDERF16_H
#define LLVM_LIBC_SRC_MATH_REMAINDERF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 remainderf16(float16 x, float16 y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMAINDERF16_H
diff --git a/libc/src/math/remainderl.h b/libc/src/math/remainderl.h
index e0df705..584af37 100644
--- a/libc/src/math/remainderl.h
+++ b/libc/src/math/remainderl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_REMAINDERL_H
#define LLVM_LIBC_SRC_MATH_REMAINDERL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double remainderl(long double x, long double y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMAINDERL_H
diff --git a/libc/src/math/remquo.h b/libc/src/math/remquo.h
index c16ec95..7590e7d 100644
--- a/libc/src/math/remquo.h
+++ b/libc/src/math/remquo.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_REMQUO_H
#define LLVM_LIBC_SRC_MATH_REMQUO_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double remquo(double x, double y, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMQUO_H
diff --git a/libc/src/math/remquof.h b/libc/src/math/remquof.h
index b63f773..8b8e877 100644
--- a/libc/src/math/remquof.h
+++ b/libc/src/math/remquof.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_REMQUOF_H
#define LLVM_LIBC_SRC_MATH_REMQUOF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float remquof(float x, float y, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMQUOF_H
diff --git a/libc/src/math/remquof128.h b/libc/src/math/remquof128.h
index 49e99a9..e9db1ef 100644
--- a/libc/src/math/remquof128.h
+++ b/libc/src/math/remquof128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_REMQUOF128_H
#define LLVM_LIBC_SRC_MATH_REMQUOF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 remquof128(float128 x, float128 y, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMQUOF128_H
diff --git a/libc/src/math/remquof16.h b/libc/src/math/remquof16.h
index 310c3db..fee848c 100644
--- a/libc/src/math/remquof16.h
+++ b/libc/src/math/remquof16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_REMQUOF16_H
#define LLVM_LIBC_SRC_MATH_REMQUOF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 remquof16(float16 x, float16 y, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMQUOF16_H
diff --git a/libc/src/math/remquol.h b/libc/src/math/remquol.h
index de5adf4..ba9b099 100644
--- a/libc/src/math/remquol.h
+++ b/libc/src/math/remquol.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_REMQUOL_H
#define LLVM_LIBC_SRC_MATH_REMQUOL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double remquol(long double x, long double y, int *exp);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_REMQUOL_H
diff --git a/libc/src/math/rint.h b/libc/src/math/rint.h
index 1080c4d..3cd676b 100644
--- a/libc/src/math/rint.h
+++ b/libc/src/math/rint.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_RINT_H
#define LLVM_LIBC_SRC_MATH_RINT_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double rint(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_RINT_H
diff --git a/libc/src/math/rintf.h b/libc/src/math/rintf.h
index b371b8c..d0246a32 100644
--- a/libc/src/math/rintf.h
+++ b/libc/src/math/rintf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_RINTF_H
#define LLVM_LIBC_SRC_MATH_RINTF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float rintf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_RINTF_H
diff --git a/libc/src/math/rintf128.h b/libc/src/math/rintf128.h
index 2edafcb..2d92489 100644
--- a/libc/src/math/rintf128.h
+++ b/libc/src/math/rintf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_RINTF128_H
#define LLVM_LIBC_SRC_MATH_RINTF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 rintf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_RINTF128_H
diff --git a/libc/src/math/rintf16.h b/libc/src/math/rintf16.h
index 839f2dd..5ea9587 100644
--- a/libc/src/math/rintf16.h
+++ b/libc/src/math/rintf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_RINTF16_H
#define LLVM_LIBC_SRC_MATH_RINTF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 rintf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_RINTF16_H
diff --git a/libc/src/math/rintl.h b/libc/src/math/rintl.h
index fed4769..bddfa18 100644
--- a/libc/src/math/rintl.h
+++ b/libc/src/math/rintl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_RINTL_H
#define LLVM_LIBC_SRC_MATH_RINTL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double rintl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_RINTL_H
diff --git a/libc/src/math/round.h b/libc/src/math/round.h
index c2cd3bf..3e6a3b3 100644
--- a/libc/src/math/round.h
+++ b/libc/src/math/round.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUND_H
#define LLVM_LIBC_SRC_MATH_ROUND_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double round(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUND_H
diff --git a/libc/src/math/roundeven.h b/libc/src/math/roundeven.h
index a996a03..9c76b1f 100644
--- a/libc/src/math/roundeven.h
+++ b/libc/src/math/roundeven.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDEVEN_H
#define LLVM_LIBC_SRC_MATH_ROUNDEVEN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double roundeven(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDEVEN_H
diff --git a/libc/src/math/roundevenf.h b/libc/src/math/roundevenf.h
index bdeca67..447e7fd 100644
--- a/libc/src/math/roundevenf.h
+++ b/libc/src/math/roundevenf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDEVENF_H
#define LLVM_LIBC_SRC_MATH_ROUNDEVENF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float roundevenf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDEVENF_H
diff --git a/libc/src/math/roundevenf128.h b/libc/src/math/roundevenf128.h
index ca2ef37..589839d 100644
--- a/libc/src/math/roundevenf128.h
+++ b/libc/src/math/roundevenf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDEVENF128_H
#define LLVM_LIBC_SRC_MATH_ROUNDEVENF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 roundevenf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDEVENF128_H
diff --git a/libc/src/math/roundevenf16.h b/libc/src/math/roundevenf16.h
index 8f5fe22..382e2e3 100644
--- a/libc/src/math/roundevenf16.h
+++ b/libc/src/math/roundevenf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDEVENF16_H
#define LLVM_LIBC_SRC_MATH_ROUNDEVENF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 roundevenf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDEVENF16_H
diff --git a/libc/src/math/roundevenl.h b/libc/src/math/roundevenl.h
index c53fb08..a2f3397 100644
--- a/libc/src/math/roundevenl.h
+++ b/libc/src/math/roundevenl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDEVENL_H
#define LLVM_LIBC_SRC_MATH_ROUNDEVENL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double roundevenl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDEVENL_H
diff --git a/libc/src/math/roundf.h b/libc/src/math/roundf.h
index 21dbaa8..d6ca186 100644
--- a/libc/src/math/roundf.h
+++ b/libc/src/math/roundf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDF_H
#define LLVM_LIBC_SRC_MATH_ROUNDF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float roundf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDF_H
diff --git a/libc/src/math/roundf128.h b/libc/src/math/roundf128.h
index ef56d04..e4aca17 100644
--- a/libc/src/math/roundf128.h
+++ b/libc/src/math/roundf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDF128_H
#define LLVM_LIBC_SRC_MATH_ROUNDF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 roundf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDF128_H
diff --git a/libc/src/math/roundf16.h b/libc/src/math/roundf16.h
index 3077263..e52f2ae 100644
--- a/libc/src/math/roundf16.h
+++ b/libc/src/math/roundf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDF16_H
#define LLVM_LIBC_SRC_MATH_ROUNDF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 roundf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDF16_H
diff --git a/libc/src/math/roundl.h b/libc/src/math/roundl.h
index 8a9fed4..0abe87a 100644
--- a/libc/src/math/roundl.h
+++ b/libc/src/math/roundl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_ROUNDL_H
#define LLVM_LIBC_SRC_MATH_ROUNDL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double roundl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_ROUNDL_H
diff --git a/libc/src/math/scalblnf16.h b/libc/src/math/scalblnf16.h
index d47a78c..be93fab 100644
--- a/libc/src/math/scalblnf16.h
+++ b/libc/src/math/scalblnf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_SCALBLNF16_H
#define LLVM_LIBC_SRC_MATH_SCALBLNF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 scalblnf16(float16 x, long n);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SCALBLNF16_H
diff --git a/libc/src/math/scalbn.h b/libc/src/math/scalbn.h
index d4669d2..9fc1dc4d 100644
--- a/libc/src/math/scalbn.h
+++ b/libc/src/math/scalbn.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SCALBN_H
#define LLVM_LIBC_SRC_MATH_SCALBN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double scalbn(double x, int n);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SCALBN_H
diff --git a/libc/src/math/scalbnf.h b/libc/src/math/scalbnf.h
index d298eeb..6b5a5f9 100644
--- a/libc/src/math/scalbnf.h
+++ b/libc/src/math/scalbnf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SCALBNF_H
#define LLVM_LIBC_SRC_MATH_SCALBNF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float scalbnf(float x, int n);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SCALBNF_H
diff --git a/libc/src/math/scalbnf128.h b/libc/src/math/scalbnf128.h
index b96d954..bd3b560 100644
--- a/libc/src/math/scalbnf128.h
+++ b/libc/src/math/scalbnf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_SCALBNF128_H
#define LLVM_LIBC_SRC_MATH_SCALBNF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 scalbnf128(float128 x, int n);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SCALBNF128_H
diff --git a/libc/src/math/scalbnf16.h b/libc/src/math/scalbnf16.h
index e554a51..95e4862 100644
--- a/libc/src/math/scalbnf16.h
+++ b/libc/src/math/scalbnf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_SCALBNF16_H
#define LLVM_LIBC_SRC_MATH_SCALBNF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 scalbnf16(float16 x, int n);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SCALBNF16_H
diff --git a/libc/src/math/scalbnl.h b/libc/src/math/scalbnl.h
index ff02304..876f147 100644
--- a/libc/src/math/scalbnl.h
+++ b/libc/src/math/scalbnl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SCALBNL_H
#define LLVM_LIBC_SRC_MATH_SCALBNL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double scalbnl(long double x, int n);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SCALBNL_H
diff --git a/libc/src/math/setpayloadf16.h b/libc/src/math/setpayloadf16.h
index 6bdf64a1..8705e28 100644
--- a/libc/src/math/setpayloadf16.h
+++ b/libc/src/math/setpayloadf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_SETPAYLOADF16_H
#define LLVM_LIBC_SRC_MATH_SETPAYLOADF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int setpayloadf16(float16 *res, float16 pl);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SETPAYLOADF16_H
diff --git a/libc/src/math/setpayloadsigf16.h b/libc/src/math/setpayloadsigf16.h
index 0c5e773..ee9bc38 100644
--- a/libc/src/math/setpayloadsigf16.h
+++ b/libc/src/math/setpayloadsigf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_SETPAYLOADSIGF16_H
#define LLVM_LIBC_SRC_MATH_SETPAYLOADSIGF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int setpayloadsigf16(float16 *res, float16 pl);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SETPAYLOADSIGF16_H
diff --git a/libc/src/math/sin.h b/libc/src/math/sin.h
index 2a4362d..50ecdc7 100644
--- a/libc/src/math/sin.h
+++ b/libc/src/math/sin.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SIN_H
#define LLVM_LIBC_SRC_MATH_SIN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double sin(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SIN_H
diff --git a/libc/src/math/sincos.h b/libc/src/math/sincos.h
index 580bdbb..6235a7c 100644
--- a/libc/src/math/sincos.h
+++ b/libc/src/math/sincos.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SINCOS_H
#define LLVM_LIBC_SRC_MATH_SINCOS_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
void sincos(double x, double *sinx, double *cosx);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SINCOS_H
diff --git a/libc/src/math/sincosf.h b/libc/src/math/sincosf.h
index 28dbc65..56539f5 100644
--- a/libc/src/math/sincosf.h
+++ b/libc/src/math/sincosf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SINCOSF_H
#define LLVM_LIBC_SRC_MATH_SINCOSF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
void sincosf(float x, float *sinx, float *cosx);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SINCOSF_H
diff --git a/libc/src/math/sinf.h b/libc/src/math/sinf.h
index c4f8c88..aa0b753 100644
--- a/libc/src/math/sinf.h
+++ b/libc/src/math/sinf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SINF_H
#define LLVM_LIBC_SRC_MATH_SINF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float sinf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SINF_H
diff --git a/libc/src/math/sinh.h b/libc/src/math/sinh.h
index b87471c..bf1b1f1 100644
--- a/libc/src/math/sinh.h
+++ b/libc/src/math/sinh.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SINH_H
#define LLVM_LIBC_SRC_MATH_SINH_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double sinh(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SINH_H
diff --git a/libc/src/math/sinhf.h b/libc/src/math/sinhf.h
index f69a194..65cb39f 100644
--- a/libc/src/math/sinhf.h
+++ b/libc/src/math/sinhf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SINHF_H
#define LLVM_LIBC_SRC_MATH_SINHF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float sinhf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SINHF_H
diff --git a/libc/src/math/sinpif.h b/libc/src/math/sinpif.h
index 038fb19..63d4819 100644
--- a/libc/src/math/sinpif.h
+++ b/libc/src/math/sinpif.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SINPIF_H
#define LLVM_LIBC_SRC_MATH_SINPIF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float sinpif(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SINPIF_H
diff --git a/libc/src/math/sqrt.h b/libc/src/math/sqrt.h
index 566944a..d003e3f 100644
--- a/libc/src/math/sqrt.h
+++ b/libc/src/math/sqrt.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SQRT_H
#define LLVM_LIBC_SRC_MATH_SQRT_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double sqrt(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SQRT_H
diff --git a/libc/src/math/sqrtf.h b/libc/src/math/sqrtf.h
index db39ab7..fe4192a 100644
--- a/libc/src/math/sqrtf.h
+++ b/libc/src/math/sqrtf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SQRTF_H
#define LLVM_LIBC_SRC_MATH_SQRTF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float sqrtf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SQRTF_H
diff --git a/libc/src/math/sqrtf128.h b/libc/src/math/sqrtf128.h
index 81f4c12..9da9eb6 100644
--- a/libc/src/math/sqrtf128.h
+++ b/libc/src/math/sqrtf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_SQRTF128_H
#define LLVM_LIBC_SRC_MATH_SQRTF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 sqrtf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SQRTF128_H
diff --git a/libc/src/math/sqrtl.h b/libc/src/math/sqrtl.h
index 52b208d..e632c19 100644
--- a/libc/src/math/sqrtl.h
+++ b/libc/src/math/sqrtl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_SQRTL_H
#define LLVM_LIBC_SRC_MATH_SQRTL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double sqrtl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_SQRTL_H
diff --git a/libc/src/math/tan.h b/libc/src/math/tan.h
index 462c60f..5d0121f 100644
--- a/libc/src/math/tan.h
+++ b/libc/src/math/tan.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TAN_H
#define LLVM_LIBC_SRC_MATH_TAN_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double tan(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TAN_H
diff --git a/libc/src/math/tanf.h b/libc/src/math/tanf.h
index 0d4b9e7..e0f06a8 100644
--- a/libc/src/math/tanf.h
+++ b/libc/src/math/tanf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TANF_H
#define LLVM_LIBC_SRC_MATH_TANF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float tanf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TANF_H
diff --git a/libc/src/math/tanh.h b/libc/src/math/tanh.h
index eadde36..66561ee 100644
--- a/libc/src/math/tanh.h
+++ b/libc/src/math/tanh.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TANH_H
#define LLVM_LIBC_SRC_MATH_TANH_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double tanh(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TANH_H
diff --git a/libc/src/math/tanhf.h b/libc/src/math/tanhf.h
index a0bd1e9..ff9d02e 100644
--- a/libc/src/math/tanhf.h
+++ b/libc/src/math/tanhf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TANHF_H
#define LLVM_LIBC_SRC_MATH_TANHF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float tanhf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TANHF_H
diff --git a/libc/src/math/tgamma.h b/libc/src/math/tgamma.h
index 9210a4b..24590ed 100644
--- a/libc/src/math/tgamma.h
+++ b/libc/src/math/tgamma.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TGAMMA_H
#define LLVM_LIBC_SRC_MATH_TGAMMA_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double tgamma(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TGAMMA_H
diff --git a/libc/src/math/tgammaf.h b/libc/src/math/tgammaf.h
index 0524dee..d28e4c3 100644
--- a/libc/src/math/tgammaf.h
+++ b/libc/src/math/tgammaf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TGAMMAF_H
#define LLVM_LIBC_SRC_MATH_TGAMMAF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float tgammaf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TGAMMAF_H
diff --git a/libc/src/math/totalorderf16.h b/libc/src/math/totalorderf16.h
index db787c9..f539014 100644
--- a/libc/src/math/totalorderf16.h
+++ b/libc/src/math/totalorderf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_TOTALORDERF16_H
#define LLVM_LIBC_SRC_MATH_TOTALORDERF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int totalorderf16(const float16 *x, const float16 *y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TOTALORDERF16_H
diff --git a/libc/src/math/totalordermagf16.h b/libc/src/math/totalordermagf16.h
index eed8bf3..8c6621b 100644
--- a/libc/src/math/totalordermagf16.h
+++ b/libc/src/math/totalordermagf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H
#define LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
int totalordermagf16(const float16 *x, const float16 *y);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TOTALORDERMAGF16_H
diff --git a/libc/src/math/trunc.h b/libc/src/math/trunc.h
index d4fb878..d766aff9 100644
--- a/libc/src/math/trunc.h
+++ b/libc/src/math/trunc.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TRUNC_H
#define LLVM_LIBC_SRC_MATH_TRUNC_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double trunc(double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TRUNC_H
diff --git a/libc/src/math/truncf.h b/libc/src/math/truncf.h
index 3cdf2ee..e666d77 100644
--- a/libc/src/math/truncf.h
+++ b/libc/src/math/truncf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TRUNCF_H
#define LLVM_LIBC_SRC_MATH_TRUNCF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float truncf(float x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TRUNCF_H
diff --git a/libc/src/math/truncf128.h b/libc/src/math/truncf128.h
index df3899c..5eb6116 100644
--- a/libc/src/math/truncf128.h
+++ b/libc/src/math/truncf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_TRUNCF128_H
#define LLVM_LIBC_SRC_MATH_TRUNCF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 truncf128(float128 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TRUNCF128_H
diff --git a/libc/src/math/truncf16.h b/libc/src/math/truncf16.h
index db03c68..6d65980 100644
--- a/libc/src/math/truncf16.h
+++ b/libc/src/math/truncf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_TRUNCF16_H
#define LLVM_LIBC_SRC_MATH_TRUNCF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 truncf16(float16 x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TRUNCF16_H
diff --git a/libc/src/math/truncl.h b/libc/src/math/truncl.h
index 6b4d22d..38f414f 100644
--- a/libc/src/math/truncl.h
+++ b/libc/src/math/truncl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_TRUNCL_H
#define LLVM_LIBC_SRC_MATH_TRUNCL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double truncl(long double x);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_TRUNCL_H
diff --git a/libc/src/math/ufromfp.h b/libc/src/math/ufromfp.h
index 6b40623..f466748 100644
--- a/libc/src/math/ufromfp.h
+++ b/libc/src/math/ufromfp.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFP_H
#define LLVM_LIBC_SRC_MATH_UFROMFP_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double ufromfp(double x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFP_H
diff --git a/libc/src/math/ufromfpf.h b/libc/src/math/ufromfpf.h
index d272cec..40c6773 100644
--- a/libc/src/math/ufromfpf.h
+++ b/libc/src/math/ufromfpf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPF_H
#define LLVM_LIBC_SRC_MATH_UFROMFPF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float ufromfpf(float x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPF_H
diff --git a/libc/src/math/ufromfpf128.h b/libc/src/math/ufromfpf128.h
index b38ef69..785fa82 100644
--- a/libc/src/math/ufromfpf128.h
+++ b/libc/src/math/ufromfpf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPF128_H
#define LLVM_LIBC_SRC_MATH_UFROMFPF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 ufromfpf128(float128 x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPF128_H
diff --git a/libc/src/math/ufromfpf16.h b/libc/src/math/ufromfpf16.h
index c863a2d..07a38bd 100644
--- a/libc/src/math/ufromfpf16.h
+++ b/libc/src/math/ufromfpf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPF16_H
#define LLVM_LIBC_SRC_MATH_UFROMFPF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 ufromfpf16(float16 x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPF16_H
diff --git a/libc/src/math/ufromfpl.h b/libc/src/math/ufromfpl.h
index c7b9331..f05a77d 100644
--- a/libc/src/math/ufromfpl.h
+++ b/libc/src/math/ufromfpl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPL_H
#define LLVM_LIBC_SRC_MATH_UFROMFPL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double ufromfpl(long double x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPL_H
diff --git a/libc/src/math/ufromfpx.h b/libc/src/math/ufromfpx.h
index 00a3c5f..79c413a 100644
--- a/libc/src/math/ufromfpx.h
+++ b/libc/src/math/ufromfpx.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPX_H
#define LLVM_LIBC_SRC_MATH_UFROMFPX_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
double ufromfpx(double x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPX_H
diff --git a/libc/src/math/ufromfpxf.h b/libc/src/math/ufromfpxf.h
index 1740ac3..f6bd8f7 100644
--- a/libc/src/math/ufromfpxf.h
+++ b/libc/src/math/ufromfpxf.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPXF_H
#define LLVM_LIBC_SRC_MATH_UFROMFPXF_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float ufromfpxf(float x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPXF_H
diff --git a/libc/src/math/ufromfpxf128.h b/libc/src/math/ufromfpxf128.h
index 5008b7a..f3b43ff 100644
--- a/libc/src/math/ufromfpxf128.h
+++ b/libc/src/math/ufromfpxf128.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPXF128_H
#define LLVM_LIBC_SRC_MATH_UFROMFPXF128_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float128 ufromfpxf128(float128 x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPXF128_H
diff --git a/libc/src/math/ufromfpxf16.h b/libc/src/math/ufromfpxf16.h
index 9e03353..988092b 100644
--- a/libc/src/math/ufromfpxf16.h
+++ b/libc/src/math/ufromfpxf16.h
@@ -9,13 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPXF16_H
#define LLVM_LIBC_SRC_MATH_UFROMFPXF16_H
-#include "src/__support/macros/config.h"
#include "src/__support/macros/properties/types.h"
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
float16 ufromfpxf16(float16 x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPXF16_H
diff --git a/libc/src/math/ufromfpxl.h b/libc/src/math/ufromfpxl.h
index 13ff936..180b8f9 100644
--- a/libc/src/math/ufromfpxl.h
+++ b/libc/src/math/ufromfpxl.h
@@ -9,12 +9,10 @@
#ifndef LLVM_LIBC_SRC_MATH_UFROMFPXL_H
#define LLVM_LIBC_SRC_MATH_UFROMFPXL_H
-#include "src/__support/macros/config.h"
-
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
long double ufromfpxl(long double x, int rnd, unsigned int width);
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE
#endif // LLVM_LIBC_SRC_MATH_UFROMFPXL_H