Mattias Engdegård
35478f3f76
Calc: fix arithmetic right shift sign bit detection
...
Arithmetic right shift didn't compute the bit to shift in correctly.
For example, #x600000000 right-shifted 8 steps (with 32 bit word size)
resulted in #xff000000 rather than 0. (Bug#43764)
* lisp/calc/calc-bin.el (calcFunc-ash): Fix condition.
* test/lisp/calc/calc-tests.el (calc-tests--clip, calc-tests--lsh)
(calc-tests--rsh, calc-tests--ash, calc-tests--rash, calc-tests--rot):
New.
(calc-shift-binary): New test.
2020-10-09 11:24:15 +02:00
..
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-10-09 11:24:15 +02:00
2020-09-14 11:19:22 +02:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-04-24 20:19:37 +02:00
2020-01-01 00:59:52 +00:00
2020-10-02 22:24:54 +02:00
2020-01-01 00:59:52 +00:00
2020-09-11 13:02:59 +02:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-03-27 18:11:18 +01:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-05-14 10:28:51 +02:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-04-24 20:19:37 +02:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-09-06 16:56:54 +02:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-10-01 15:28:15 +02:00
2020-01-01 00:59:52 +00:00
2020-08-11 21:04:12 +02:00
2020-09-11 13:02:59 +02:00
2020-01-01 00:59:52 +00:00
2020-09-10 21:58:26 +03:00
2020-09-15 18:03:50 +02:00
2020-01-01 00:59:52 +00:00