Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
775af761
Commit
775af761
authored
Sep 21, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eval: test isnan(sqrt(-1)) instead of just sqrt(-1)
sqrt(-1) returns "some NaN", it's not specified which exactly.
parent
05fc9e40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
eval.c
libavutil/eval.c
+1
-1
eval
tests/ref/fate/eval
+2
-2
No files found.
libavutil/eval.c
View file @
775af761
...
...
@@ -608,7 +608,7 @@ int main(int argc, char **argv)
"ceil(123.123)"
,
"ceil(-123.123)"
,
"sqrt(1764)"
,
"
sqrt(-1
)"
,
"
isnan(sqrt(-1)
)"
,
"not(1)"
,
"not(NAN)"
,
"not(0)"
,
...
...
tests/ref/fate/eval
View file @
775af761
...
...
@@ -136,8 +136,8 @@ Evaluating 'ceil(-123.123)'
Evaluating 'sqrt(1764)'
'sqrt(1764)' -> 42.000000
Evaluating '
sqrt(-1
)'
'
sqrt(-1)' -> -nan
Evaluating '
isnan(sqrt(-1)
)'
'
isnan(sqrt(-1))' -> 1.000000
Evaluating 'not(1)'
'not(1)' -> 0.000000
...
...
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