[libc-commits] [PATCH] D76723: [libc] Generate math.h instead of the static file it is currently.
Alex Brachet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Mar 24 12:55:08 PDT 2020
abrachet added inline comments.
================
Comment at: libc/config/linux/api.td:113
+ SimpleMacroDef<"INFINITY", "__builtin_inff()">,
+ SimpleMacroDef<"NAN", "__builtin_nanf()">,
+
----------------
`__builtin_nanf()` takes a `const char *` argument. I have no idea why. https://github.com/llvm/llvm-project/blob/master/clang/lib/AST/ExprConstant.cpp#L12816
================
Comment at: libc/spec/stdc.td:181-182
[
- FunctionSpec<"acos", RetValSpec<DoubleType>, [ArgSpec<DoubleType>]>,
- FunctionSpec<"acosl", RetValSpec<LongDoubleType>, [ArgSpec<LongDoubleType>]>,
+ FunctionSpec<"cosf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
+ FunctionSpec<"sinf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
+
----------------
Should we include these even though we have no implementation of them?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76723/new/
https://reviews.llvm.org/D76723
More information about the libc-commits
mailing list