diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 05:39:56 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 05:39:56 +0000 |
commit | af8fb1984674db462bc6923ed54db0275c78b711 (patch) | |
tree | 8b8a2df1022542d5ef3147b421c88ab6dd819eac /include | |
parent | 9e57414e69345ea68afd23eb7c7e010940fe5866 (diff) | |
download | external_llvm-af8fb1984674db462bc6923ed54db0275c78b711.tar.gz external_llvm-af8fb1984674db462bc6923ed54db0275c78b711.tar.bz2 external_llvm-af8fb1984674db462bc6923ed54db0275c78b711.zip |
Add a square root function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/APInt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index 702bd7156f..0e127b8c44 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -686,6 +686,9 @@ public: double signedRoundToDouble() const { return roundToDouble(true); } + + /// @brief Compute the square root + APInt sqrt() const; }; inline bool operator==(uint64_t V1, const APInt& V2) { |