diff --git a/libc/newhdrgen/yaml/math.yaml b/libc/newhdrgen/yaml/math.yaml index a244a307a206..b4ee7f539c2c 100644 --- a/libc/newhdrgen/yaml/math.yaml +++ b/libc/newhdrgen/yaml/math.yaml @@ -2361,37 +2361,37 @@ functions: - stdc return_type: int arguments: - - type: double * - - type: double * + - type: const double * + - type: const double * - name: totalordermagf standards: - stdc return_type: int arguments: - - type: float * - - type: float * + - type: const float * + - type: const float * - name: totalordermagl standards: - stdc return_type: int arguments: - - type: long double * - - type: long double * + - type: const long double * + - type: const long double * - name: totalordermagf128 standards: - stdc return_type: int arguments: - - type: float128 * - - type: float128 * + - type: const float128 * + - type: const float128 * guard: LIBC_TYPES_HAS_FLOAT128 - name: totalordermagf16 standards: - stdc return_type: int arguments: - - type: _Float16 * - - type: _Float16 * + - type: const _Float16 * + - type: const _Float16 * guard: LIBC_TYPES_HAS_FLOAT16 - name: trunc standards: diff --git a/libc/spec/stdc.td b/libc/spec/stdc.td index 74afb60725b7..8497acbfd62f 100644 --- a/libc/spec/stdc.td +++ b/libc/spec/stdc.td @@ -752,11 +752,11 @@ def StdC : StandardSpec<"stdc"> { GuardedFunctionSpec<"totalorderf16", RetValSpec, [ArgSpec, ArgSpec], "LIBC_TYPES_HAS_FLOAT16">, GuardedFunctionSpec<"totalorderf128", RetValSpec, [ArgSpec, ArgSpec], "LIBC_TYPES_HAS_FLOAT128">, - FunctionSpec<"totalordermag", RetValSpec, [ArgSpec, ArgSpec]>, - FunctionSpec<"totalordermagf", RetValSpec, [ArgSpec, ArgSpec]>, - FunctionSpec<"totalordermagl", RetValSpec, [ArgSpec, ArgSpec]>, - GuardedFunctionSpec<"totalordermagf16", RetValSpec, [ArgSpec, ArgSpec], "LIBC_TYPES_HAS_FLOAT16">, - GuardedFunctionSpec<"totalordermagf128", RetValSpec, [ArgSpec, ArgSpec], "LIBC_TYPES_HAS_FLOAT128">, + FunctionSpec<"totalordermag", RetValSpec, [ArgSpec, ArgSpec]>, + FunctionSpec<"totalordermagf", RetValSpec, [ArgSpec, ArgSpec]>, + FunctionSpec<"totalordermagl", RetValSpec, [ArgSpec, ArgSpec]>, + GuardedFunctionSpec<"totalordermagf16", RetValSpec, [ArgSpec, ArgSpec], "LIBC_TYPES_HAS_FLOAT16">, + GuardedFunctionSpec<"totalordermagf128", RetValSpec, [ArgSpec, ArgSpec], "LIBC_TYPES_HAS_FLOAT128">, FunctionSpec<"getpayload", RetValSpec, [ArgSpec]>, FunctionSpec<"getpayloadf", RetValSpec, [ArgSpec]>,