[llvm] add power function to APFloat and APInt (PR #122788)

Tommy Chiang via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 21:51:19 PST 2025


================
@@ -2263,6 +2263,9 @@ APInt mulhs(const APInt &C1, const APInt &C2);
 /// Returns the high N bits of the multiplication result.
 APInt mulhu(const APInt &C1, const APInt &C2);
 
+/// Compute X^N for N>0.
----------------
oToToT wrote:

`>=0`?

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


More information about the llvm-commits mailing list