mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
Emulate lrintf with simple truncation if it isn't available.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1851 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
31dfb317fa
commit
03d9863980
2 changed files with 10 additions and 0 deletions
|
|
@ -266,6 +266,9 @@ AC_CHECK_FUNCS([getopt_long], [], [AC_CHECK_LIB([iberty], [getopt_long])])
|
||||||
|
|
||||||
#### Check for functions ####
|
#### Check for functions ####
|
||||||
|
|
||||||
|
# ISO
|
||||||
|
AC_CHECK_FUNCS([lrintf])
|
||||||
|
|
||||||
# POSIX
|
# POSIX
|
||||||
AC_FUNC_FORK
|
AC_FUNC_FORK
|
||||||
AC_FUNC_GETGROUPS
|
AC_FUNC_GETGROUPS
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,13 @@ static double bessel(double x){
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* crude lrintf for non-C99 systems.
|
||||||
|
*/
|
||||||
|
#ifndef HAVE_LFRINTF
|
||||||
|
#define lrintf(x) ((long int)(x))
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* builds a polyphase filterbank.
|
* builds a polyphase filterbank.
|
||||||
* @param factor resampling factor
|
* @param factor resampling factor
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue