Unified · Split
| @@ -785,11 +785,13 @@ EOF · 784 unmodified lines | |||
| 785 | check_mathfunc(){ | 785 | check_mathfunc(){ |
| 786 | log check_mathfunc "$@" | 786 | log check_mathfunc "$@" |
| 787 | func=$1 | 787 | func=$1 |
| 788 | shift | 788 | narg=$2 |
| 789 | shift 2 | ||
| 790 | test $narg = 2 && args="f, g" || args="f" | ||
| 789 | disable $func | 791 | disable $func |
| 790 | check_ld "$@" <<EOF && enable $func | 792 | check_ld "$@" <<EOF && enable $func |
| 791 | #include <math.h> | 793 | #include <math.h> |
| 792 | float foo(float f) { return $func(f); } | 794 | float foo(float f, float g) { return $func($args); } |
| 793 | int main(void){ return 0; } | 795 | int main(void){ return 0; } |
| 794 | EOF | 796 | EOF |
| 795 | } | 797 | } |
| @@ -3306,8 +3308,12 @@ done · 2510 unmodified lines | |||
| 3306 | check_lib math.h sin -lm && LIBM="-lm" | 3308 | check_lib math.h sin -lm && LIBM="-lm" |
| 3307 | enabled vaapi && require vaapi va/va.h vaInitialize -lva | 3309 | enabled vaapi && require vaapi va/va.h vaInitialize -lva |
| 3308 | 3310 | ||
| 3311 | atan2f_args=2 | ||
| 3312 | ldexpf_args=2 | ||
| 3313 | powf_args=2 | ||
| 3314 | |||
| 3309 | for func in $MATH_FUNCS; do | 3315 | for func in $MATH_FUNCS; do |
| 3310 | check_mathfunc $func | 3316 | eval check_mathfunc $func \${${func}_args:-1} |
| 3311 | done | 3317 | done |
| 3312 | 3318 | ||
| 3313 | # these are off by default, so fail if requested and not available | 3319 | # these are off by default, so fail if requested and not available |