fix test 92 not failing properly on GCC/amd64

This commit is contained in:
tevador
2020-05-06 13:48:53 +02:00
parent 6a764e90d0
commit 148b923f71
3 changed files with 24 additions and 3 deletions
+15
View File
@@ -157,6 +157,21 @@ void rx_set_rounding_mode(uint32_t mode) {
}
}
uint32_t rx_get_rounding_mode() {
switch (fegetround()) {
case FE_DOWNWARD:
return RoundDown;
case FE_UPWARD:
return RoundUp;
case FE_TOWARDZERO:
return RoundToZero;
case FE_TONEAREST:
return RoundToNearest;
default:
UNREACHABLE;
}
}
#endif
#ifdef RANDOMX_USE_X87