[vlc-devel] commit: use _exit() instead of exit() when checking CPU capabilities ( Martin T. Sandsmark )
git version control
git at videolan.org
Tue Dec 29 19:31:40 CET 2009
vlc-1.0-bugfix | branch: master | Martin T. Sandsmark <sandsmark at samfundet.no> | Tue Dec 29 16:31:33 2009 +0100| [0438337635650f81432cf0430a9a90668b9c9d06] | committer: Jean-Baptiste Kempf
use _exit() instead of exit() when checking CPU capabilities
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc-1.0-bugfix.git/?a=commit;h=0438337635650f81432cf0430a9a90668b9c9d06
---
src/misc/cpu.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 2a52426..f5a0190 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -172,7 +172,7 @@ uint32_t CPUCapabilities( void )
{
/* Test a SSE instruction */
__asm__ __volatile__ ( "xorps %%xmm0,%%xmm0\n" : : );
- exit(0);
+ _exit(0);
}
if( check_OS_capability( "SSE", pid ) )
i_capabilities |= CPU_CAPABILITY_SSE;
@@ -188,7 +188,7 @@ uint32_t CPUCapabilities( void )
{
/* Test a SSE2 instruction */
__asm__ __volatile__ ( "movupd %%xmm0, %%xmm0\n" : : );
- exit(0);
+ _exit(0);
}
if( check_OS_capability( "SSE2", pid ) )
i_capabilities |= CPU_CAPABILITY_SSE2;
@@ -212,7 +212,7 @@ uint32_t CPUCapabilities( void )
{
/* Test a 3D Now! instruction */
__asm__ __volatile__ ( "pfadd %%mm0,%%mm0\n" "femms\n" : : );
- exit(0);
+ _exit(0);
}
if( check_OS_capability( "3D Now!", pid ) )
i_capabilities |= CPU_CAPABILITY_3DNOW;
@@ -252,7 +252,7 @@ out:
"vand %%v0, %%v0, %%v0"
:
: "r" (-1));
- exit(0);
+ _exit(0);
}
if( check_OS_capability( "Altivec", pid ) )
More information about the vlc-devel
mailing list