Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
1aa07aa2
Commit
1aa07aa2
authored
Oct 26, 2012
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: fix tests for 2-arg math functions
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
ca7f5911
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
configure
configure
+9
-3
No files found.
configure
View file @
1aa07aa2
...
...
@@ -785,11 +785,13 @@ EOF
check_mathfunc
(){
log check_mathfunc
"
$@
"
func
=
$1
shift
narg
=
$2
shift
2
test
$narg
=
2
&&
args
=
"f, g"
||
args
=
"f"
disable
$func
check_ld
"
$@
"
<<
EOF
&& enable
$func
#include <math.h>
float foo(float f
) { return
$func
(f
); }
float foo(float f
, float g) { return
$func
(
$args
); }
int main(void){ return 0; }
EOF
}
...
...
@@ -3306,8 +3308,12 @@ done
check_lib math.h sin
-lm
&&
LIBM
=
"-lm"
enabled vaapi
&&
require vaapi va/va.h vaInitialize
-lva
atan2f_args
=
2
ldexpf_args
=
2
powf_args
=
2
for
func
in
$MATH_FUNCS
;
do
check_mathfunc
$func
eval
check_mathfunc
$func
\$
{
${
func
}
_args:-1
}
done
# these are off by default, so fail if requested and not available
...
...
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