summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APInt.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use brute-force algorithm for to_string. It doesn't have to be efficientReid Spencer2007-02-141-28/+35
| | | | | | at this point, it just needs to work so we can test things reliably. llvm-svn: 34262
* Make some minor improvements to APInt:Reid Spencer2007-02-131-15/+11
| | | | | | | | | 1. Make all the operators use uppercase 2. Rename APIntRoundToDouble method just RoundToDouble, the APInt is redundant. 3. Turn the class on for compilation. llvm-svn: 34253
* 1. Make APInt::shl work correctly and more efficiently.Zhou Sheng2007-02-121-10/+78
| | | | | | | 2. Add functions to support the numberical conversion between APInt and double/float. llvm-svn: 34201
* Eliminates friend function declaration inside APInt, instead, adds publicZhou Sheng2007-02-091-23/+23
| | | | | | methods as those global function's internal implementation. llvm-svn: 34083
* Switched this file on accidently.Zhou Sheng2007-02-081-1/+1
| | | | llvm-svn: 34054
* As Chris and Reid suggested, remove "isSigned" field from APInt, instead,Zhou Sheng2007-02-081-178/+170
| | | | | | | | add some signed/unsigned arithmetic operation functions into APInt.h to handle the signed/unsigned issue. These functions will be defined inside a namespace "APIntOps" which is inside llvm namespace. llvm-svn: 34053
* As Chris suggested, fixed some problems. (This is the first part)Zhou Sheng2007-02-071-147/+157
| | | | llvm-svn: 33989
* As Reid suggested, fixed some problems.Zhou Sheng2007-02-061-150/+143
| | | | llvm-svn: 33955
* Disable this for now.Chris Lattner2007-02-061-0/+5
| | | | llvm-svn: 33953
* Add a class APInt to represent arbitrary precision constant integral values.Zhou Sheng2007-02-061-0/+1113
It is a functional replacement for common case integer type like "unsigned", "uint64_t", but also allows non-byte-width integer type and large integer value types such as 3-bits, 15-bits, or more than 64-bits of precision. For more details, see pr1043. llvm-svn: 33951
OpenPOWER on IntegriCloud