Commit graph

9 commits

Author SHA1 Message Date
Iain Buclaw
5a9919c802 std.math.hardware: Use forceOp in another ieeeFlags test 2022-12-04 20:26:28 +01:00
Iain Buclaw
2e1f8de817 std.math.hardware: Fix broken IEEE FP flags tests
1. The `pragma(inline, false)` doesn't do what the author thinks it does
   (Issue 23520).
2. Change that introduced `blockopt` seems to have a slight
   misunderstanding about what constant propagation is (`a /= 0.0L` can
   always be constant propagated regardless of what surrounds it).
3. Undocument tests that depend on the need for forcing operations to
   disarm the optimizer, and replace with simple tests behind StdDdoc.
2022-12-03 00:17:36 +01:00
Ast-x64
0c56468d19 RISCV: Fix wrong ExceptionMask values
According to RISCV specifications
https://riscv.org/wp-content/uploads/2019/12/riscv-spec-20191213.pdf,
figure 11.2, the mask flags should be NX, UF, OF, DZ, NV in order.
2022-06-16 20:22:10 +00:00
Luís Ferreira
19c6e8d251 chore(math/hardware): align spaces by 4 instead of by 3
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-05-09 18:42:23 +00:00
Walter Bright
13d84801e7 declaring templates inside static foreach is not reliable 2021-06-08 10:57:08 +00:00
Martin Kinkelin
a5b66d6614 std.math.hardware: Remove unused InlineAsm_X87* version declarations 2021-05-29 14:50:32 +02:00
berni44
0c4dcb32a0 Narrow imports in std.math. 2021-04-19 22:32:55 +02:00
berni44
4a4af2d78e std.math: Move hardware support into hardware submodule. 2021-04-19 10:46:14 +02:00
berni44
7031340f5f Add empty submodules to std.math. 2021-04-04 11:56:27 +02:00