| Age | Commit message (Collapse) | Author |
|
MSVC's implementation of numeric_limits currently generates incorrect
signaling NaNs. The resulting values are actually quiet NaNs instead.
This commit is based off of a solution by shuffle2. The only
difference is a template specialization for floats is also added
to cover all bases
|
|
These aren't necessary, since the stdlib provides equivalents.
|
|
|
|
|
|
Also remove unused pow2/pow2f functions.
|
|
|
|
Also remove unused pow2/pow2f functions.
|
|
|
|
A previous PR changed a whole lot of min/maxes to std::min/std::max
but made a mistake here and used a templated min which cast it's
arguments to unsigned instead of casting return value.
This resulted in glitchy artifacts in bright areas (See issue 7439)
I rewrote the code to use a proper clamping function so it's cleaner
to read.
|
|
|
|
The constants were one nibble too short and the lower 51 bits don't
actually have to be zero.
|
|
|