Qt: do not show open options in both normal and advanced UI
[vlc.git] / modules / mmx / memcpy.c
blobd5079686b440143c2fab2f4c268752901ac815ee
1 /*****************************************************************************
2 * memcpy.c : classic memcpy module
3 *****************************************************************************
4 * Copyright (C) 2001 the VideoLAN team
5 * $Id$
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
28 #include <vlc_common.h>
29 #include <vlc_plugin.h>
30 #include <vlc_cpu.h>
32 #define HAVE_MMX
33 #include "../mmx/fastmemcpy.h"
35 static int Activate( vlc_object_t *p_this )
37 if( !(vlc_CPU() & CPU_CAPABILITY_MMX) )
38 return VLC_EGENERIC;
40 VLC_UNUSED(p_this);
41 vlc_fastmem_register( fast_memcpy );
43 return VLC_SUCCESS;
46 vlc_module_begin ()
47 set_category( CAT_ADVANCED )
48 set_subcategory( SUBCAT_ADVANCED_MISC )
49 set_description( N_("MMX memcpy") )
50 add_shortcut( "mmx", "memcpymmx" )
51 set_capability( "memcpy", 100 )
52 set_callbacks( Activate, NULL )
53 vlc_module_end ()