Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
memcpy.c
Package: vlc-1.0.5.zip [view]
Upload User: kjfoods
Upload Date: 2020-07-06
Package Size: 29949k
Code Size: 3k
Category:
midi program
Development Platform:
Unix_Linux
- /*****************************************************************************
- * memcpy.c : classic memcpy module
- *****************************************************************************
- * Copyright (C) 2001 the VideoLAN team
- * $Id: cae7f2fb7e511e2a7954e4af7c3d9578d4675539 $
- *
- * Authors: Samuel Hocevar <sam@zoy.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
- /*****************************************************************************
- * Preamble
- *****************************************************************************/
- #ifdef HAVE_CONFIG_H
- # include "config.h"
- #endif
- #include <vlc_common.h>
- #include <vlc_plugin.h>
- #undef HAVE_MMX
- #undef HAVE_MMX2
- #undef HAVE_SSE
- #undef HAVE_SSE2
- #undef HAVE_3DNOW
- #undef HAVE_ALTIVEC
- #if defined( MODULE_NAME_IS_memcpy3dn )
- # define PRIORITY 100
- # define HAVE_3DNOW
- #elif defined( MODULE_NAME_IS_memcpymmx )
- # define PRIORITY 100
- # define HAVE_MMX
- #elif defined( MODULE_NAME_IS_memcpymmxext )
- # define PRIORITY 200
- # define HAVE_MMX2
- #else
- # define PRIORITY 50
- #endif
- /*****************************************************************************
- * Extern prototype
- *****************************************************************************/
- #ifndef MODULE_NAME_IS_memcpy
- # define fast_memcpy fast_memcpy
- # include "fastmemcpy.h"
- #endif
- /*****************************************************************************
- * Module initializer
- *****************************************************************************/
- static int Activate ( vlc_object_t *p_this )
- {
- #ifndef MODULE_NAME_IS_memcpy
- vlc_fastmem_register( fast_memcpy, NULL );
- #endif
- return VLC_SUCCESS;
- }
- /*****************************************************************************
- * Module descriptor
- *****************************************************************************/
- vlc_module_begin ()
- set_category( CAT_ADVANCED )
- set_subcategory( SUBCAT_ADVANCED_MISC )
- #ifdef MODULE_NAME_IS_memcpy
- set_description( N_("libc memcpy") )
- add_shortcut( "c" )
- add_shortcut( "libc" )
- #elif defined( MODULE_NAME_IS_memcpy3dn )
- set_description( N_("3D Now! memcpy") )
- add_requirement( 3DNOW )
- add_shortcut( "3dn" )
- add_shortcut( "3dnow" )
- add_shortcut( "memcpy3dn" )
- add_shortcut( "memcpy3dnow" )
- #elif defined( MODULE_NAME_IS_memcpymmx )
- set_description( N_("MMX memcpy") )
- add_requirement( MMX )
- add_shortcut( "mmx" )
- add_shortcut( "memcpymmx" )
- #elif defined( MODULE_NAME_IS_memcpymmxext )
- set_description( N_("MMX EXT memcpy") )
- add_requirement( MMXEXT )
- add_shortcut( "mmxext" )
- add_shortcut( "memcpymmxext" )
- #endif
- set_capability( "memcpy", PRIORITY )
- set_callbacks( Activate, NULL )
- vlc_module_end ()