]> git.eshelyaron.com Git - emacs.git/commit
Improve bignum comparison (Bug#32463#50)
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Aug 2018 23:13:04 +0000 (16:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Aug 2018 23:13:34 +0000 (16:13 -0700)
commit1d2df2fd03f35ca8d8dfc8b999d8bba3c7c13157
treed399dd6434fc2da905c660eea0ce919e746c8951
parent97d273033b523bc07911c848d4e8bf96cdce0c90
Improve bignum comparison (Bug#32463#50)

* src/data.c (isnan): Remove, as we can assume C99.
(bignumcompare): Remove, folding its functionality
into arithcompare.
(arithcompare): Compare bignums directly here.
Fix bugs when comparing NaNs to bignums.
When comparing a bignum to a fixnum, just look at the
bignum’s sign, as that’s all that is needed.
Decrease scope of locals when this is easy.
* test/src/data-tests.el (data-tests-bignum): Test bignum vs NaN.
src/data.c
test/src/data-tests.el