Skip to content

Commit

Permalink
std.math.hardware: Remove mixin around RISCV implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw authored and dlang-bot committed Jan 17, 2024
1 parent e4d0dd5 commit c6e1f98
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions std/math/hardware.d
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,12 @@ private:
}
else version (RISCV_Any)
{
mixin(`
uint result = void;
asm pure nothrow @nogc
{
"frflags %0" : "=r" (result);
}
return result;
`);
}
else version (LoongArch_Any)
{
Expand Down Expand Up @@ -195,13 +193,11 @@ private:
}
else version (RISCV_Any)
{
mixin(`
uint newValues = 0x0;
asm pure nothrow @nogc
{
"fsflags %0" : : "r" (newValues);
}
`);
}
else version (LoongArch_Any)
{
Expand Down Expand Up @@ -875,14 +871,12 @@ private:
}
else version (RISCV_Any)
{
mixin(`
ControlState cont;
asm pure nothrow @nogc
{
"frcsr %0" : "=r" (cont);
}
return cont;
`);
}
else version (LoongArch_Any)
{
Expand Down Expand Up @@ -930,12 +924,10 @@ private:
}
else version (RISCV_Any)
{
mixin(`
asm pure nothrow @nogc
{
"fscsr %0" : : "r" (newState);
}
`);
}
else version (LoongArch_Any)
{
Expand Down

0 comments on commit c6e1f98

Please sign in to comment.