[libc-commits] [PATCH] D139064: Onboard signbitf to llvmlibc math functions.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Dec 1 09:08:39 PST 2022


sivachandra added inline comments.


================
Comment at: libc/spec/stdc.td:467
 
+          FunctionSpec<"signbitf", RetValSpec<BoolType>, [ArgSpec<FloatType>]>,
+
----------------
Is `signbitf` really specified by the C standard? For that matter, any standard at all? I think standards only specify a generic `signbit` macro which can be implemented as:

```
#define signbit(x) __builtin_signbit(x)
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139064/new/

https://reviews.llvm.org/D139064



More information about the libc-commits mailing list