Skip to content

Commit

Permalink
configure: remove cpu clips tests
Browse files Browse the repository at this point in the history
we are no longer compiling libsamplerate so they are unneccesary
  • Loading branch information
ulmus-scott authored and linuxdude42 committed Nov 8, 2021
1 parent b648e3d commit 5ac083c
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions mythtv/configure
Expand Up @@ -2005,8 +2005,6 @@ MYTHTV_CONFIG_LIST='

MYTHTV_HAVE_LIST='
byteswap_h
cpu_clips_negative
cpu_clips_positive
fe_can_2g_modulation
ftime
getifaddrs
Expand Down Expand Up @@ -5598,57 +5596,6 @@ if ! disabled network; then
fi
fi

# "CPU_CLIP" test for SRC / libsamplerate
# test positive wrap
check_exec -lm << EOF && enable cpu_clips_positive
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
int main (void)
{ double fval ;
int k, ival ;
fval = 1.0 * 0x7FFFFFFF ;
for (k = 0 ; k < 100 ; k++)
{
ival = (lrint (fval)) >> 24 ;
if (ival != 127)
return 1 ;
fval *= 1.2499999 ;
} ;
return 0 ;
}
EOF

# test negative wrap
check_exec -lm << EOF && enable cpu_clips_negative
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
int main (void)
{
double fval ;
int k, ival ;
fval = -8.0 * 0x10000000 ;
for (k = 0 ; k < 100 ; k++)
{
ival = (lrint (fval)) >> 24 ;
if (ival != -128)
return 1 ;
fval *= 1.2499999 ;
} ;
return 0 ;
}
EOF
require_pkg_config samplerate samplerate samplerate.h src_get_version -lm

# required to compile inline sse with some compilers
Expand Down

0 comments on commit 5ac083c

Please sign in to comment.