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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 01:09:58 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) {
----------------
arsenm wrote:

I don't think we should add this unless it's correctly rounded 

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


More information about the llvm-commits mailing list