diff options
author | Tue Ly <lntue@google.com> | 2022-10-31 16:04:41 -0400 |
---|---|---|
committer | Tue Ly <lntue@google.com> | 2022-10-31 17:23:33 -0400 |
commit | 45233cc1ca26c2fb6eeddd9007c7bac2731557bd (patch) | |
tree | 46c1a5b6be215d50c650c3d1005589d64fb0409e /libc/spec | |
parent | 97b4cc83e16abec8daa67f5dc82f71791c523f43 (diff) | |
download | llvm-45233cc1ca26c2fb6eeddd9007c7bac2731557bd.tar.gz |
[libc][math] Add place-holder implementation for pow function.
Add place-holder implementation for pow function to unblock libc demo
examples.
Reviewed By: michaelrj
Differential Revision: https://reviews.llvm.org/D137109
Diffstat (limited to 'libc/spec')
-rw-r--r-- | libc/spec/stdc.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/spec/stdc.td b/libc/spec/stdc.td index 22e233c5faa9..1c0d7c2dd8d9 100644 --- a/libc/spec/stdc.td +++ b/libc/spec/stdc.td @@ -477,6 +477,8 @@ def StdC : StandardSpec<"stdc"> { FunctionSpec<"nextafter", RetValSpec<DoubleType>, [ArgSpec<DoubleType>, ArgSpec<DoubleType>]>, FunctionSpec<"nextafterl", RetValSpec<LongDoubleType>, [ArgSpec<LongDoubleType>, ArgSpec<LongDoubleType>]>, + FunctionSpec<"pow", RetValSpec<DoubleType>, [ArgSpec<DoubleType>, ArgSpec<DoubleType>]>, + FunctionSpec<"coshf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>, FunctionSpec<"sinhf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>, FunctionSpec<"tanhf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>, |