- Updated Coding Standards and adjusted code to fit.
- Restructured test for organization purposes
This commit is contained in:
@@ -55,9 +55,18 @@ int main(int, const char**)
|
||||
flt << "///" << std::endl;
|
||||
|
||||
flt << "" << std::endl;
|
||||
flt << "#include <fennec/memory/bits.h>" << std::endl;
|
||||
|
||||
flt << "#ifndef FENNEC_LANG_FLOAT_H" << std::endl;
|
||||
flt << "#define FENNEC_LANG_FLOAT_H" << std::endl;
|
||||
|
||||
flt << "" << std::endl;
|
||||
|
||||
flt << "#include <fennec/memory/bits.h>" << std::endl;
|
||||
|
||||
flt << "" << std::endl;
|
||||
|
||||
// TODO: Fix this to generate info without using the c++stdlib for platforms without this available.
|
||||
|
||||
flt << "#define FLT_HAS_INFINITY " << std::dec << std::numeric_limits<float>::has_infinity << std::endl;
|
||||
flt << "#define FLT_HAS_QUIET_NAN " << std::dec << std::numeric_limits<float>::has_quiet_NaN << std::endl;
|
||||
flt << "#define FLT_HAS_SIGNALING_NAN " << std::dec << std::numeric_limits<float>::has_signaling_NaN << std::endl;
|
||||
@@ -114,6 +123,10 @@ int main(int, const char**)
|
||||
flt << "#define DBL_DENORM_MIN " << "fennec::bit_cast<double>(0x" << std::hex << std::bit_cast<long long>(std::numeric_limits<double>::denorm_min() ) << "l)" << std::endl;
|
||||
flt << "#define DBL_ROUND_ERR " << "fennec::bit_cast<double>(0x" << std::hex << std::bit_cast<long long>(std::numeric_limits<double>::round_error() ) << "l)" << std::endl;
|
||||
|
||||
flt << "" << std::endl;
|
||||
|
||||
flt << "#endif // FENNEC_LANG_FLOAT_H" << std::endl;
|
||||
|
||||
flt.close();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user