URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Subversion Repositories neorv32
Compare Revisions
- This comparison shows the changes necessary to convert path
/neorv32/trunk/sw/example/floating_point_test
- from Rev 72 to Rev 74
- ↔ Reverse comparison
Rev 72 → Rev 74
/neorv32_zfinx_extension_intrinsics.h
86,7 → 86,7
// ################################################################################################ |
|
/**********************************************************************//** |
* Flush to zero if denormal number. |
* Flush to zero if de-normal number. |
* |
* @warning Subnormal numbers are not supported yet! Flush them to zero. |
* |
97,6 → 97,7
|
float res = tmp; |
|
// flush to zero if subnormal |
if (fpclassify(tmp) == FP_SUBNORMAL) { |
if (signbit(tmp) != 0) { |
res = -0.0f; |
581,6 → 582,12
float opb = subnormal_flush(rs2); |
|
float res = opa + opb; |
|
// make NAN canonical |
if (fpclassify(res) == FP_NAN) { |
res = NAN; |
} |
|
return subnormal_flush(res); |
} |
|
598,6 → 605,12
float opb = subnormal_flush(rs2); |
|
float res = opa - opb; |
|
// make NAN canonical |
if (fpclassify(res) == FP_NAN) { |
res = NAN; |
} |
|
return subnormal_flush(res); |
} |
|