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
25a21c58
Commit
25a21c58
authored
Oct 31, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eval-test: add some otherwise untested functions.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
54a48d2f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
eval.c
libavutil/eval.c
+5
-0
eval
tests/ref/fate/eval
+15
-0
No files found.
libavutil/eval.c
View file @
25a21c58
...
...
@@ -791,6 +791,11 @@ int main(int argc, char **argv)
"taylor(eq(mod(ld(1),4),1)-eq(mod(ld(1),4),3), PI/2, 1)"
,
"root(sin(ld(0))-1, 2)"
,
"root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)"
,
"7000000B*random(0)"
,
"squish(2)"
,
"gauss(0.1)"
,
"hypot(4,3)"
,
"gcd(30,55)*min(9,1)"
,
NULL
};
...
...
tests/ref/fate/eval
View file @
25a21c58
...
...
@@ -217,5 +217,20 @@ Evaluating 'root(sin(ld(0))-1, 2)'
Evaluating 'root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)'
'root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)' -> 60.965601
Evaluating '7000000B*random(0)'
'7000000B*random(0)' -> 0.003078
Evaluating 'squish(2)'
'squish(2)' -> 0.000335
Evaluating 'gauss(0.1)'
'gauss(0.1)' -> 0.396953
Evaluating 'hypot(4,3)'
'hypot(4,3)' -> 5.000000
Evaluating 'gcd(30,55)*min(9,1)'
'gcd(30,55)*min(9,1)' -> 5.000000
12.700000 == 12.7
0.931323 == 0.931322575
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