Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
0b61d3c0f2a818355e6bfcbf79c4f47875c10b15
/
Modules
/
_decimal
3f5db39
Fix a few typos and a double semicolon. Patch by Eitan Adler.
by Ezio Melotti
· 12 years ago
eb8c451
Since the return type of format() is not a Decimal, raise ValueError instead of
by Stefan Krah
· 12 years ago
752bfb7
Remove trailing whitespace.
by Stefan Krah
· 12 years ago
59a4a93
Issue #16422: Use strings for rounding mode constants for better readability
by Stefan Krah
· 12 years ago
e3dff55
Issue #16753: Define __GNUC_STDC_INLINE__ to an integer (same as gcc).
by Stefan Krah
· 12 years ago
f03eee1
Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD.
by Stefan Krah
· 12 years ago
66a6f3f
Fix Visual Studio build.
by Stefan Krah
· 12 years ago
fdf1a34
Issue #16745: Hide symbols in _decimal.so.
by Stefan Krah
· 12 years ago
fb7f580
Issue #16745: Hide a couple of symbols by making them local.
by Stefan Krah
· 12 years ago
9a4ff43
Issue #15783: Support None default values in the Context() constructor.
by Stefan Krah
· 12 years ago
040e311
Issue #15783: Except for the number methods, the C version of decimal now
by Stefan Krah
· 12 years ago
6e46704
Accept Unicode legacy strings in the Decimal constructor.
by Stefan Krah
· 12 years ago
0f82b76
Issue #16431: Finally, consider all permutations.
by Stefan Krah
· 12 years ago
ed16eff
Issue #16431: Also fix the opposite direction.
by Stefan Krah
· 12 years ago
f4abc7b
Issue #16431: Use the type information when constructing a Decimal subtype
by Stefan Krah
· 12 years ago
a0346e5
Support gcc's -ansi flag: use "__asm__" instead of "asm".
by Stefan Krah
· 12 years ago
e59aa8c
Revert 29506c7db353 (build output should be accurate).
by Stefan Krah
· 12 years ago
5c9a589
merge
by Christian Heimes
· 12 years ago
72c9946
Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C
by Christian Heimes
· 12 years ago
9a3f05e
Make it clear that the pi function is modified for benchmarking purposes.
by Stefan Krah
· 12 years ago
6b6a1df
Restore the benchmark order to avoid waiting for decimal.py if just the
by Stefan Krah
· 12 years ago
6cf50c5
Fix whitespace.
by Brett Cannon
· 12 years ago
63092fe
Fix whitespace.
by Brett Cannon
· 12 years ago
d266c44
Make the decimal bench file run under Python 2.7.
by Brett Cannon
· 12 years ago
7e6523f
Use C-style comments.
by Stefan Krah
· 12 years ago
76e1217
Issue #15882: Change _decimal to accept any coefficient tuple when
by Stefan Krah
· 12 years ago
fc33d4c
Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs.
by Mark Dickinson
· 12 years ago
f21587e
mpd_qpowmod(): calculate result with zero-exponent for compatibility with
by Stefan Krah
· 12 years ago
17183a2
Use zero bottom margin.
by Stefan Krah
· 12 years ago
ad5b439
In the 32-bit build, dec_hash() raised InvalidOperation if the operand
by Stefan Krah
· 12 years ago
2fd502f
1) Use _mpd_basedivmod() regardless of the length of the dividend. This is
by Stefan Krah
· 12 years ago
b9e36b9
Add unused parameter to a couple of METH_NOARGS functions. The previous
by Stefan Krah
· 12 years ago
26a1c7a
Fix Visual Studio warning.
by Stefan Krah
· 12 years ago
e574402
Issue #7652: Clean up _mpd_qinvroot() and mark it LIBMPDEC_ONLY. Use the
by Stefan Krah
· 12 years ago
d57caf3
Remove ISSUES.txt.
by Stefan Krah
· 12 years ago
5431e30
After 79d2eb29c755 it is no longer necessary to zero the output array:
by Stefan Krah
· 12 years ago
c35a8e5
Proactive reliability fix for broken FPUs: The base conversion functions
by Stefan Krah
· 12 years ago
1edab78
Update test script to Visual Studio 2010.
by Stefan Krah
· 12 years ago
39e810e
Make the benchmark more fair for _decimal/decimal.py by setting context.prec
by Stefan Krah
· 12 years ago
78f0756
Speed up _decimal by another 10-15% by caching the thread local context
by Stefan Krah
· 12 years ago
3077ab8
Whitespace.
by Stefan Krah
· 12 years ago
50b0a36
Fix comment.
by Stefan Krah
· 12 years ago
2238501
Many cleanups of redundant code in mpd_qrem_near():
by Stefan Krah
· 12 years ago
9c1feb8
Add comments to the power functions, in particular to _mpd_qpow_real().
by Stefan Krah
· 12 years ago
c62bd13
1) State the relative errors of the power functions for integer exponents.
by Stefan Krah
· 12 years ago
b783293
1) Fix signature of _mpd_qpow_uint(): contrary to the comment base is constant.
by Stefan Krah
· 12 years ago
88e1977
1) Replace long-winded abort() construct by assert().
by Stefan Krah
· 12 years ago
9253862
1) State restrictions for the transform length.
by Stefan Krah
· 12 years ago
afc0c77
Add one extra comparison to the _mpd_shortmul() case to avoid repetitive code.
by Stefan Krah
· 12 years ago
5248a2d
Enumerate all cases in the overflow detection strategy in mpd_qlog10().
by Stefan Krah
· 12 years ago
1cf6dfc
1) List relative error for _mpd_qln10().
by Stefan Krah
· 12 years ago
7bda265
1) The overflow detection in mpd_qln() has a surprising number of case splits.
by Stefan Krah
· 12 years ago
a3394bc
1) Add error analysis comments to mpd_qln10() and _mpd_qln().
by Stefan Krah
· 12 years ago
67ee1d0
word.digits are always initialized before use in the Taylor series loop,
by Stefan Krah
· 12 years ago
0271766
Use workctx instead of ctx for cosmetic reasons. Also zero-pad the result
by Stefan Krah
· 12 years ago
4d3e0a6
Improve Underflow handling in the correct-rounding loop. The case for
by Stefan Krah
· 12 years ago
9a5beec
Improve comments.
by Stefan Krah
· 12 years ago
5ddbcfc
Pad the result with zeros just before the final rounding.
by Stefan Krah
· 12 years ago
30c35e8
Do not clobber existing flags.
by Stefan Krah
· 12 years ago
e34a209
Fix Visual Studio warning.
by Stefan Krah
· 12 years ago
696d10f
Changes in _mpd_qexp(): -----------------------
by Stefan Krah
· 12 years ago
9d3a5ae
Defensive programming: mpd_isspecial(r) already implies mpd_isspecial(q), but
by Stefan Krah
· 13 years ago
3c23a87
The divmod function for large numbers now has an ACL2 proof. Related changes:
by Stefan Krah
· 13 years ago
c51b7fd
1) Simplify comment -- one has to read the complete proof (available in ACL2)
by Stefan Krah
· 13 years ago
5d0d2e2
Explain the strategy to avoid huge alignment shifts in _mpd_qadd() in detail.
by Stefan Krah
· 13 years ago
ed4b21f
Cosmetic change: initialize digits to 1 (redundant).
by Stefan Krah
· 13 years ago
bc771e9
Remove redundant finalization of the result.
by Stefan Krah
· 13 years ago
aecaf0b
Fix comments and whitespace.
by Stefan Krah
· 13 years ago
6369f77
Support mythical ones' complement machines.
by Stefan Krah
· 13 years ago
140893c
The previous code is correct, but hard to verify: The libmpdec documentation
by Stefan Krah
· 13 years ago
ec766a6
1) Remove claim of an input invariant that is only true for static mpd_t.
by Stefan Krah
· 13 years ago
7b544ca
Fix stale comment.
by Stefan Krah
· 13 years ago
cc74b6a
Issue #14478: Cache the hash of a Decimal in the C version.
by Stefan Krah
· 13 years ago
e37f8b2
Issue #14520: Add __sizeof__() method to the Decimal object.
by Stefan Krah
· 13 years ago
f69aef7
Resize the coefficient to MPD_MINALLOC also if the requested size is below
by Stefan Krah
· 13 years ago
dd159ce
Speed up _decimal by 30-40% for numerical workloads by improving the cache
by Stefan Krah
· 13 years ago
94ef3e4
Use the MPD() accessor macro.
by Stefan Krah
· 13 years ago
dc36efa
1) Fix comment.
by Stefan Krah
· 13 years ago
4771cca
Whitespace.
by Stefan Krah
· 13 years ago
871b96b
Reduce array size.
by Stefan Krah
· 13 years ago
a616948
Formatting.
by Stefan Krah
· 13 years ago
ff3eca0
Allow printing a leading '-' and the maximum number of exponent digits
by Stefan Krah
· 13 years ago
0774e9b
Raise InvalidOperation if exponents of zeros are clamped during exact
by Stefan Krah
· 13 years ago
91c0274
Improve comments.
by Stefan Krah
· 13 years ago
5100171
Clear the context flags if a context is initialized from the DefaultContext.
by Stefan Krah
· 13 years ago
41e0310
Fix Overflow exception in the bignum factorial benchmark that is due to
by Stefan Krah
· 13 years ago
0e41981
Use abort() rather than exit() to appease tools like rpmlint. abort() is used
by Stefan Krah
· 13 years ago
fe17b2b
Raise MemoryError instead of InvalidOperation/MallocError for compatibility
by Stefan Krah
· 13 years ago
c64150b
Fix formatting after removing tabs.
by Stefan Krah
· 13 years ago
cd9e1d0
Whitespace.
by Stefan Krah
· 13 years ago
b6405ef
Use the same exception hierarchy as decimal.py. FloatOperation now also
by Stefan Krah
· 13 years ago
7cc5521
Whitespace.
by Stefan Krah
· 13 years ago
1919b7e
Issue #7652: Integrate the decimal floating point libmpdec library to speed
by Stefan Krah
· 13 years ago