Commit 8368e151 authored by David Conrad's avatar David Conrad Committed by Fiona Glaser

Fix a bug in checkasm and two OSX fixes

MC chroma checkasm test could crash in some situations
Remove -lmx, as it's not needed and the iPhone doesn't have it.
Remove unused sqrtf emulation; it breaks if math.h is included.
parent bde792fe
......@@ -55,9 +55,6 @@
#if (defined(SYS_OPENBSD) && !defined(isfinite)) || defined(SYS_SunOS)
#define isfinite finite
#endif
#if defined(_MSC_VER) || defined(SYS_SunOS) || defined(SYS_MACOSX)
#define sqrtf sqrt
#endif
#ifdef _WIN32
#define rename(src,dst) (unlink(dst), rename(src,dst)) // POSIX says that rename() removes the destination, but win32 doesn't.
#ifndef strtok_r
......
......@@ -179,7 +179,7 @@ case $host_os in
darwin*)
SYS="MACOSX"
CFLAGS="$CFLAGS -falign-loops=16"
LDFLAGS="$LDFLAGS -lm -lmx"
LDFLAGS="$LDFLAGS -lm"
if [ "$pic" = "no" ]; then
CFLAGS="$CFLAGS -mdynamic-no-pic"
fi
......
......@@ -748,7 +748,7 @@ static int check_mc( int cpu_ref, int cpu_new )
x264_mc_functions_t mc_a;
x264_pixel_function_t pixel;
uint8_t *src = &buf1[2*32+2];
uint8_t *src = &buf1[2*64+2];
uint8_t *src2[4] = { &buf1[3*64+2], &buf1[5*64+2],
&buf1[7*64+2], &buf1[9*64+2] };
uint8_t *dst1 = buf3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment