1 /*****************************************************************************
2 * memcpy.c : classic memcpy module
3 *****************************************************************************
4 * Copyright (C) 2001 the VideoLAN team
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 /*****************************************************************************
26 *****************************************************************************/
32 #include <vlc_common.h>
33 #include <vlc_plugin.h>
42 #if defined( MODULE_NAME_IS_memcpy3dn )
45 #elif defined( MODULE_NAME_IS_memcpymmx )
48 #elif defined( MODULE_NAME_IS_memcpymmxext )
55 /*****************************************************************************
57 *****************************************************************************/
58 #ifndef MODULE_NAME_IS_memcpy
59 # define fast_memcpy fast_memcpy
60 # include "fastmemcpy.h"
63 /*****************************************************************************
65 *****************************************************************************/
66 static int Activate ( vlc_object_t *p_this )
69 #ifndef MODULE_NAME_IS_memcpy
70 vlc_fastmem_register( fast_memcpy, NULL );
76 /*****************************************************************************
78 *****************************************************************************/
80 set_category( CAT_ADVANCED )
81 set_subcategory( SUBCAT_ADVANCED_MISC )
82 #ifdef MODULE_NAME_IS_memcpy
83 set_description( N_("libc memcpy") )
85 add_shortcut( "libc" )
86 #elif defined( MODULE_NAME_IS_memcpy3dn )
87 set_description( N_("3D Now! memcpy") )
88 add_requirement( 3DNOW )
90 add_shortcut( "3dnow" )
91 add_shortcut( "memcpy3dn" )
92 add_shortcut( "memcpy3dnow" )
93 #elif defined( MODULE_NAME_IS_memcpymmx )
94 set_description( N_("MMX memcpy") )
95 add_requirement( MMX )
97 add_shortcut( "memcpymmx" )
98 #elif defined( MODULE_NAME_IS_memcpymmxext )
99 set_description( N_("MMX EXT memcpy") )
100 add_requirement( MMXEXT )
101 add_shortcut( "mmxext" )
102 add_shortcut( "memcpymmxext" )
104 set_capability( "memcpy", PRIORITY )
105 set_callbacks( Activate, NULL )