[libc-commits] [libc] [libc][stdfix] Add abs functions for signed fixed point types. (PR #81823)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Feb 15 14:56:01 PST 2024
================
@@ -7,6 +7,13 @@ def StdcExt : StandardSpec<"stdc_ext"> {
[], // types
[], // enums
[ // functions
+ GuardedFunctionSpec<"abshr", RetValSpec<ShortFractType>, [ArgSpec<ShortFractType>], "LIBC_COMPILER_HAS_FIXED_POINT">,
----------------
michaelrj-google wrote:
in that case can we add a `#warning` to stdfix.h for if they don't have fixed point available?
https://github.com/llvm/llvm-project/pull/81823
More information about the libc-commits
mailing list