Skip to content
Snippets Groups Projects
Commit 93fce0fd authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix off-by-one error in the comments

parent 40a25a2a
No related branches found
No related tags found
1 merge request!213use uint32_t to ensure alignment in union, improve comments
......@@ -786,7 +786,7 @@ static inline int PD_BADFLOAT(t_float f)
/* Test to find unusually large or small normal values, in
addition to denormals, NANs and infs:
f > abs(2^65) or < abs(2^-63)
f >= abs(2^65) or < abs(2^-63)
This is useful for catching extreme values in, say, a filter,
then bashing to zero before ever calculating a denormal. */
......@@ -816,7 +816,7 @@ static inline int PD_BADFLOAT(t_float f)
/* Test to find unusually large or small normal values, in
addition to denormals, NANs and infs:
f > abs(2^513) or < abs(2^-511)
f >= abs(2^513) or < abs(2^-511)
This is useful for catching extreme values in, say, a filter,
then bashing to zero before ever calculating a denormal. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment