WANG Rui
1a8d2eae06
std/math/hardware.d: Fix compile error for LoongArch
...
```
std/math/hardware.d(187):1:19: error: invalid operand for instruction
movfcsr2gr $a0, $r2
```
2024-05-09 14:26:40 +02:00
liushuyu
676710c7b8
std/math/hardware.d: use an alternative register naming ...
...
... for LoongArch64 so that LDC/LLVM can recognize certain fp
instructions
2024-03-23 23:38:07 +01:00
Iain Buclaw
c6e1f98fab
std.math.hardware: Remove mixin around RISCV implementations
2024-01-18 00:44:26 +01:00
Yang Yujie
870eb5d5d6
Add std/math/hardware.d support for LoongArch64.
2023-11-17 09:01:36 +01:00
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