]> git.sesse.net Git - vlc/commitdiff
* src/libvlc.[c,h]: new --(no-)fpu option (mainly for debugging purposes).
authorGildas Bazin <gbazin@videolan.org>
Wed, 16 Mar 2005 21:53:15 +0000 (21:53 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 16 Mar 2005 21:53:15 +0000 (21:53 +0000)
src/libvlc.c
src/libvlc.h

index ab28b25a0eab9be3b617f611b1cfb51a69a8b4e2..60189bb2f185f30ae23153a6c667289acd14d3c6 100644 (file)
@@ -571,6 +571,9 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
 
     /* p_vlc initialization. FIXME ? */
 
+    if( !config_GetInt( p_vlc, "fpu" ) )
+        libvlc.i_cpu &= ~CPU_CAPABILITY_FPU;
+
 #if defined( __i386__ )
     if( !config_GetInt( p_vlc, "mmx" ) )
         libvlc.i_cpu &= ~CPU_CAPABILITY_MMX;
index e1f0af33ff0adc8308b696d90f8f7fc651099826..a2b449384cc73491858a54836c992241042b0c25 100644 (file)
@@ -587,6 +587,11 @@ static char *ppsz_clock_descriptions[] =
     "These options allow you to enable special CPU optimizations.\n" \
     "You should always leave all these enabled." )
 
+#define FPU_TEXT N_("Enable FPU support")
+#define FPU_LONGTEXT N_( \
+    "If your processor has a floating point calculation unit, VLC can take " \
+    "advantage of it.")
+
 #define MMX_TEXT N_("Enable CPU MMX support")
 #define MMX_LONGTEXT N_( \
     "If your processor supports the MMX instructions set, VLC can take " \
@@ -1149,6 +1154,7 @@ vlc_module_begin();
     set_category( CAT_ADVANCED );
     set_subcategory( SUBCAT_ADVANCED_CPU );
     add_category_hint( N_("CPU"), CPU_CAT_LONGTEXT, VLC_TRUE );
+    add_bool( "fpu", 1, NULL, FPU_TEXT, FPU_LONGTEXT, VLC_TRUE );
 #if defined( __i386__ )
     add_bool( "mmx", 1, NULL, MMX_TEXT, MMX_LONGTEXT, VLC_TRUE );
     add_bool( "3dn", 1, NULL, THREE_DN_TEXT, THREE_DN_LONGTEXT, VLC_TRUE );