You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on getting gtest executables to compile for kernel mode, so that I can run my tests on the target hardware. The EXPECT_NEAR tests in gtest rely on nextafter(). So my tests fail to link, because libm doesn't have a definition for nextafter().
Does anyone know why this function was not included in libm? I can add it myself, but I'm wondering if there is a fundamental reason that I need to be aware of for why it isn't already present.
Using libmcs isn't an option for me, because RISC-V RV64 uses 128 bit long double, and libmcs only supports 64 bit long double in order to comply with IEEE-754. I tried newlib, but the cmath header fails to compile due to references to the undeclared long double versions of the math functions, which is the same symptom I get when I compile libmcs without long double.
Verification
I have verified before submitting the report.
The text was updated successfully, but these errors were encountered:
Description
I'm working on getting
gtest
executables to compile for kernel mode, so that I can run my tests on the target hardware. The EXPECT_NEAR tests ingtest
rely onnextafter()
. So my tests fail to link, becauselibm
doesn't have a definition fornextafter()
.Does anyone know why this function was not included in
libm
? I can add it myself, but I'm wondering if there is a fundamental reason that I need to be aware of for why it isn't already present.Using
libmcs
isn't an option for me, because RISC-V RV64 uses 128 bit long double, andlibmcs
only supports 64 bitlong double
in order to comply with IEEE-754. I triednewlib
, but thecmath
header fails to compile due to references to the undeclaredlong double
versions of the math functions, which is the same symptom I get when I compilelibmcs
withoutlong double
.Verification
The text was updated successfully, but these errors were encountered: