Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
66d65d21
Commit
66d65d21
authored
May 23, 2018
by
Jonathan Wilkes
Browse files
in comment, use abs for parameter instead of our range constants
parent
93fce0fd
Pipeline
#1305
canceled with stage
in 3 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pd/src/m_pd.h
View file @
66d65d21
...
...
@@ -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
)
abs(f) >=
2^65 or < 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
)
abs(f) >=
2^513 or < 2^-511
This is useful for catching extreme values in, say, a filter,
then bashing to zero before ever calculating a denormal. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment