Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Merge remote branch 'upstream-ro/Eden' into Eden-pvr
Browse files Browse the repository at this point in the history
  • Loading branch information
opdenkamp committed Apr 25, 2012
2 parents d7a23b7 + cd20772 commit 048aee3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 deletions.
9 changes: 3 additions & 6 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,9 @@ if test "$host_vendor" = "apple" ; then
LIBS="$LIBS -framework ApplicationServices"
fi
elif test "$use_arch" = "arm"; then
CFLAGS="$CFLAGS -mfloat-abi=softfp -mno-apcs-stack-check"
CXXFLAGS="$CXXFLAGS -mfloat-abi=softfp -mno-apcs-stack-check"
FFMPEG_EXTRACFLAGS="-mfloat-abi=softfp"
CFLAGS="$CFLAGS -mno-apcs-stack-check"
CXXFLAGS="$CXXFLAGS -mno-apcs-stack-check"
FFMPEG_EXTRACFLAGS=""
if test "$use_tegra" = "yes"; then
# Compile for ARMv7a architecture, need to test gcc for vfpv3-d16 support
SAVE_CFLAGS="$CFLAGS"
Expand All @@ -589,9 +589,6 @@ elif test "$use_arch" = "arm"; then
CXXFLAGS="$CXXFLAGS -Wa,-march=armv6 -mtune=cortex-a8 -mthumb-interwork"
use_cpu=cortex-a8])
else
# Compile for ARMv7a architecture, CortexA8 cpu and check for enabled NEON coprocessor
CFLAGS="$CFLAGS -Wa,-march=armv7a -mcpu=cortex-a8"
CXXFLAGS="$CXXFLAGS -Wa,-march=armv7a -mcpu=cortex-a8"
if test "$use_neon" = "yes"; then
CFLAGS="$CFLAGS -mfpu=neon -mvectorize-with-neon-quad"
CXXFLAGS="$CXXFLAGS -mfpu=neon -mvectorize-with-neon-quad"
Expand Down
8 changes: 2 additions & 6 deletions xbmc/utils/MathUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace MathUtils
*/

__asm__ __volatile__ (
"vmov.F64 d1,%[rnd_val] \n\t" // Copy round_to_nearest into a working register (d1 = 0.5)
"fconstd d1,#%G[rnd_val] \n\t" // Copy round_to_nearest into a working register (d1 = 0.5)
"fcmpezd %P[value] \n\t" // Check value against zero (value == 0?)
"fmstat \n\t" // Copy the floating-point status flags into the general-purpose status flags
"it mi \n\t"
Expand All @@ -94,11 +94,7 @@ namespace MathUtils
"vmov %[result],s3 \n\t" // Store the integer result in a general-purpose register (result = s3)
"vcvt.F64.S32 d1,s3 \n\t" // Convert back to floating-point (d1 = (double)s3)
"vsub.F64 d1,%P[value],d1 \n\t" // Calculate the error (d1 = value - d1)
"vmov.F64 d2,%[rnd_val] \n\t" // d2 = 0.5;
"fcmped d1, d2 \n\t" // (d1 == 0.5?)
"fmstat \n\t" // Copy the floating-point status flags into the general-purpose status flags
"it eq \n\t"
"addeq %[result],#1 \n\t" // (if (d1 == d2) result++;)
"fconstd d2,#%G[rnd_val] \n\t" // d2 = 0.5;
: [result] "=r"(i) // Outputs
: [rnd_val] "Dv" (round_to_nearest), [value] "w"(x) // Inputs
: "d1", "d2", "s3" // Clobbers
Expand Down
14 changes: 0 additions & 14 deletions xbmc/windowing/X11/WinSystemX11GLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,6 @@ bool CWinSystemX11GLES::DestroyWindowSystem()
m_eglSurface = NULL;
}

// Needed???
if (m_eglWindow)
{
XDestroyWindow(m_dpy, m_eglWindow);
m_eglWindow = 0;
}

// Needed???
if (m_wmWindow)
{
XDestroyWindow(m_dpy, m_wmWindow);
m_wmWindow = 0;
}

if (m_eglDisplay)
{
eglTerminate(m_eglDisplay);
Expand Down

0 comments on commit 048aee3

Please sign in to comment.