================ @@ -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