Skip to content

fix hmax functions in SIMDWrapper.h

Niklas Stefan Nolte requested to merge NN_numeric_limits_simdwrapper into master

this fixes the hmax functions in SIMDWrapper.

std::numeric_limits<float>::min() (not intuitively imho) returns the float value with the lowest absolute value (1.7e-38).
Intended to be used here is the largest negative float value (-3.7e+38), which you get by calling std::numeric_limits<float>::lowest().

Funny side fact: std::numeric_limits<int>::min() does not return 0, but -2 billion.

Edited by Niklas Stefan Nolte

Merge request reports