History log of /llvm-project/llvm/lib/Support/APInt.cpp (Results 326 – 350 of 434)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# bdc24ada 25-Mar-2008 Dan Gohman <gohman@apple.com>

A quick nm audit turned up several fixed tables and objects that were
marked read-write. Use const so that they can be allocated in a
read-only segment.

llvm-svn: 48800


# 9a11a017 16-Mar-2008 Bill Wendling <isanbard@gmail.com>

Add assert for non-hexadecimal radixes.

llvm-svn: 48421


# 4e97e948 07-Mar-2008 Evan Cheng <evan.cheng@apple.com>

Fix a typo. It's causing consumer-typeset to miscompile. Perhaps more.

llvm-svn: 48035


# 105c1d41 29-Feb-2008 Dan Gohman <gohman@apple.com>

Add support to APInt for shift and rotate operations with APInt
instead of uint32_t for the shift/rotate count operand type.

llvm-svn: 47741


# 901540f1 19-Feb-2008 Ted Kremenek <kremenek@apple.com>

Fixed bug in APInt::Profile() where the BitWidth field was not included in the
profile of the APSInt object. This caused unexpected Profile collisions where
none should have occurred.

llvm-svn: 47338


# c354ebdd 14-Feb-2008 Dan Gohman <gohman@apple.com>

Fix a warning about comparison between signed and unsigned,
being consistent with the rest of the APInt implementation.

llvm-svn: 47138


# 8b4fa9dc 13-Feb-2008 Dan Gohman <gohman@apple.com>

Add countTrailingOnes member functions to APInt.

llvm-svn: 47086


Revision tags: llvmorg-2.2.0
# 5c75d54c 19-Jan-2008 Ted Kremenek <kremenek@apple.com>

Added FoldingSet style 'profiling' support for APInt.

llvm-svn: 46188


# f3ebc3f3 29-Dec-2007 Chris Lattner <sabre@nondot.org>

Remove attribution from file headers, per discussion on llvmdev.

llvm-svn: 45418


# ee6af40c 24-Dec-2007 Anton Korobeynikov <asl@math.spbu.ru>

Cygwin defines uint32_t as unsigned long. Unbreak call to std::min in this case

llvm-svn: 45342


# 0b1df1d3 11-Dec-2007 Reid Spencer <rspencer@reidspencer.com>

Don't have APInt.cpp depend upon DerivedTypes.h. This helps with splitting the
Support libraries separately into their own module.

llvm-svn: 44852


# 893fe3bb 23-Nov-2007 Chris Lattner <sabre@nondot.org>

Fix PR1816, by correcting the broken definition of APInt::countTrailingZeros.

llvm-svn: 44296


# c2c4c745 23-Nov-2007 Chris Lattner <sabre@nondot.org>

Fix APInt::countTrailingZeros to return BitWidth if the input is zero instead of returning some random large number.

llvm-svn: 44294


# 7e74b17a 12-Oct-2007 Neil Booth <neil@daikokuya.co.uk>

Don't attempt to mask no bits

llvm-svn: 42909


# b618216e 08-Oct-2007 Neil Booth <neil@daikokuya.co.uk>

Add a new function tcExtract for extracting a bignum from an
arbitrary range of bits embedded in the middle of another bignum.
This kind of operation is desirable in many cases of software
floating p

Add a new function tcExtract for extracting a bignum from an
arbitrary range of bits embedded in the middle of another bignum.
This kind of operation is desirable in many cases of software
floating point, e.g. converting bignum integers to floating point
numbers of fixed precision (you want to extract the precision most
significant bits).

Elsewhere, add an assertion, and exit the shift functions early if
the shift count is zero.

llvm-svn: 42745

show more ...


# c8b650ab 06-Oct-2007 Neil Booth <neil@daikokuya.co.uk>

Fix and clarify some comments.

llvm-svn: 42670


# 0ea72a9a 06-Oct-2007 Neil Booth <neil@daikokuya.co.uk>

Generalize tcFullMultiply so that the operands can be of differing
part widths. Also, return the number of parts actually required to
hold the result's value.
Remove an over-cautious condition from

Generalize tcFullMultiply so that the operands can be of differing
part widths. Also, return the number of parts actually required to
hold the result's value.
Remove an over-cautious condition from rounding of float->hex conversion.

llvm-svn: 42669

show more ...


Revision tags: llvmorg-2.1.0
# 4230512f 21-Sep-2007 Dale Johannesen <dalej@apple.com>

Change APFloat::convertFromInteger to take the incoming
bit width instead of number of words allocated, which
makes it actually work for int->APF conversions.
Adjust callers. Add const to one of the

Change APFloat::convertFromInteger to take the incoming
bit width instead of number of words allocated, which
makes it actually work for int->APF conversions.
Adjust callers. Add const to one of the APInt constructors
to prevent surprising match when called with const
argument.

llvm-svn: 42210

show more ...


# 00064e1b 17-Sep-2007 Devang Patel <dpatel@apple.com>

Do not hide APInt::dump() inside #ifndef NDEBUG.

llvm-svn: 42068


# 98d3a08d 14-Sep-2007 Dale Johannesen <dalej@apple.com>

Remove the assumption that FP's are either float or
double from some of the many places in the optimizers
it appears, and do something reasonable with x86
long double.
Make APInt::dump() public, remo

Remove the assumption that FP's are either float or
double from some of the many places in the optimizers
it appears, and do something reasonable with x86
long double.
Make APInt::dump() public, remove newline, use it to
dump ConstantSDNode's.
Allow APFloats in FoldingSet.
Expand X86 backend handling of long doubles (conversions
to/from int, mostly).

llvm-svn: 41967

show more ...


# b0f158cf 23-Aug-2007 Chris Lattner <sabre@nondot.org>

rename APInt::toString -> toStringUnsigned for symmetry with toStringSigned()

Add an APSInt::toString() method.

llvm-svn: 41309


# fe02c1f9 20-Aug-2007 Chris Lattner <sabre@nondot.org>

initial checkin of Neil's APFloat work.

llvm-svn: 41203


# 6b69568f 16-Aug-2007 Chris Lattner <sabre@nondot.org>

This adds a bunch of static functions that implement unsigned
two's complement bignum arithmetic. They could be used to
implement much of APInt, but the idea is they are enough to
implement APFloat

This adds a bunch of static functions that implement unsigned
two's complement bignum arithmetic. They could be used to
implement much of APInt, but the idea is they are enough to
implement APFloat as well, which the current APInt interface
is not suited for.

Patch by Neil Booth!

llvm-svn: 41124

show more ...


Revision tags: llvmorg-2.0.0
# b6af1aae 19-May-2007 Reid Spencer <rspencer@reidspencer.com>

Fix an assertion introduced by my last change to the toString method. We
can't use getZExtValue() to extract the low order bits for each digit.
Instead, we need to access the low order word directly.

Fix an assertion introduced by my last change to the toString method. We
can't use getZExtValue() to extract the low order bits for each digit.
Instead, we need to access the low order word directly.

llvm-svn: 37242

show more ...


# 5c138133 17-May-2007 Reid Spencer <rspencer@reidspencer.com>

Get rid of leading zeros in the output of toString.

llvm-svn: 37175


1...<<1112131415161718