1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-15 07:54:13 +00:00
Bruce Mitchener 95b482d5d5
Use gcc / clang overflow builtins. (#142)
* Use gcc / clang overflow builtins.

This avoids expensive checks for overflow that employ undefined
behavior.

This is a step along the way towards replacing the old hand-written
assembler that did the same thing in terms of using the CPU's
overflow detection.

* Remove unimplemented SPARC asm for multiplication, divide, and remainder.

This wasn't implemented before, and for multiplication, it is now
implemented for gcc and friends using overflow detection.

* Remove USE_INLINE_ARITH.

Now that we have the compiler built-ins for detecting overflow,
we don't need custom assembly for it for each platform.

For now, we keep, but still don't use, the code that do a hot
path through the dispatch loop for some math. This code isn't
actually running or in use, but it is separate from how the
other inline arithmetic was being performed. These are the
`fast_op_*` functions that are implemented in assembler.
2021-01-21 00:27:31 -08:00
..
2020-09-04 16:27:23 -07:00
2021-01-05 10:26:02 -08:00
2020-12-10 08:07:35 -08:00
2020-12-28 10:10:43 -08:00
2020-12-10 08:07:35 -08:00
2021-01-01 08:55:24 -08:00
2021-01-01 08:55:24 -08:00
2020-12-10 08:07:35 -08:00
2021-01-05 10:26:02 -08:00
2021-01-05 10:26:02 -08:00
2020-12-07 11:03:05 -08:00
2021-01-05 10:26:02 -08:00
2020-12-21 18:09:14 +00:00
2021-01-05 10:26:02 -08:00