[llvm] [APFloat] add power (PR #122889)

Iman Hosseini via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 10:40:16 PST 2025


================
@@ -1536,6 +1536,26 @@ inline APFloat abs(APFloat X) {
   return X;
 }
 
+/// Returns X^N for N >= 0.
+inline APFloat pow(const APFloat &X, int64_t N) {
----------------
ImanHosseini wrote:

I don't think we do: https://libc.llvm.org/headers/math/index.html

https://github.com/llvm/llvm-project/pull/122889


More information about the llvm-commits mailing list