- Nov 02, 2007
-
-
Neil Booth authored
Restore an assertion that arithmetic can be performed on this format. llvm-svn: 43638
-
- Nov 01, 2007
-
-
Neil Booth authored
llvm-svn: 43627
-
Neil Booth authored
memory rather than in a copy of the APFloat. This avoids problems when the destination is wider than our significand and is cleaner. Also provide deterministic values in all cases where conversion fails, namely zero for NaNs and the minimal or maximal value respectively for underflow or overflow. llvm-svn: 43626
-
- Oct 26, 2007
-
-
Hartmut Kaiser authored
Silenced VC++ warning. llvm-svn: 43372
-
- Oct 18, 2007
-
-
Chris Lattner authored
and tblgen requires rtti. llvm-svn: 43127
-
- Oct 15, 2007
-
-
Neil Booth authored
integer conversion. In some such cases this makes us one or two orders of magnitude faster than NetBSD's libc. Glibc seems to have a similar fast path. Also, tighten up some upper bounds to save a bit of memory. llvm-svn: 42984
-
- Oct 14, 2007
-
-
Neil Booth authored
llvm-svn: 42966
-
Neil Booth authored
so, and clean up the checks by putting them in an inline function. llvm-svn: 42965
-
Neil Booth authored
memory for the significand once up-front. Also ignore insignificant trailing zeroes; this saves unnecessary multiplications later. llvm-svn: 42964
-
- Oct 13, 2007
-
-
Neil Booth authored
If the power of 5 is exact, and the reciprocal exact, the error is zero not one half-ulps. This prevents an infinite loop in rare cases. llvm-svn: 42950
-
- Oct 12, 2007
-
-
Neil Booth authored
llvm-svn: 42913
-
Neil Booth authored
from user input strings. Such conversions are more intricate and subtle than they may appear; it is unlikely I have got it completely right first time. I would appreciate being informed of any bugs and incorrect roundings you might discover. llvm-svn: 42912
-
Neil Booth authored
llvm-svn: 42911
-
Neil Booth authored
If we're trying to be arbitrary precision, unsigned char clearly won't cut it. Needed for dec->bin conversions. llvm-svn: 42910
-
Neil Booth authored
llvm-svn: 42909
-
- Oct 11, 2007
-
-
Dale Johannesen authored
No compile-time support for constant operations yet, just format transformations. Make readers and writers work. Split constants into 2 doubles in Legalize. llvm-svn: 42865
-
- Oct 09, 2007
-
-
Chris Lattner authored
llvm-svn: 42815
-
Dan Gohman authored
llvm-svn: 42788
-
Chris Lattner authored
llvm-svn: 42781
-
- Oct 08, 2007
-
-
Dan Gohman authored
commands and into the common code. llvm-svn: 42752
-
Neil Booth authored
llvm-svn: 42746
-
Neil Booth authored
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
-
- Oct 07, 2007
-
-
Neil Booth authored
llvm-svn: 42735
-
Neil Booth authored
convertFromZeroExtendedInteger can be simplified as it doesn't need to make a copy of the source bignum. llvm-svn: 42734
-
Neil Booth authored
It used to modify its argument in-place. This interface is saner and the implementation more efficient. It will be needed for decimal->binary conversion. llvm-svn: 42733
-
Neil Booth authored
input. APInt unfortunately zero-extends signed integers, so Dale modified the function to expect zero-extended input. Make this assumption explicit in the function name. llvm-svn: 42732
-
Neil Booth authored
llvm-svn: 42729
-
- Oct 06, 2007
-
-
Neil Booth authored
llvm-svn: 42690
-
Chris Lattner authored
llvm-svn: 42687
-
Neil Booth authored
llvm-svn: 42670
-
Neil Booth authored
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
-
- Oct 04, 2007
-
-
Neil Booth authored
Useful for diagnostics and debugging. llvm-svn: 42598
-
- Oct 03, 2007
-
-
Chris Lattner authored
llvm-svn: 42589
-
Chris Lattner authored
to giving it iterators. llvm-svn: 42586
-
Neil Booth authored
it const. Preparation for APFloat -> hexadecimal string conversion. llvm-svn: 42576
-
- Sep 30, 2007
-
-
Dale Johannesen authored
llvm-svn: 42483
-
- Sep 26, 2007
-
-
Neil Booth authored
llvm-svn: 42373
-
Dale Johannesen authored
cases with undefined behavior. llvm-svn: 42328
-
- Sep 25, 2007
-
-
Dale Johannesen authored
of zero, infinity, and NaNs. llvm-svn: 42298
-
- Sep 22, 2007
-
-
Neil Booth authored
llvm-svn: 42220
-