Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
e29b2a0e
Commit
e29b2a0e
authored
May 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the new registration mechanism for memcpy/memset
parent
b04c6c66
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
include/vlc_common.h
include/vlc_common.h
+2
-4
modules/misc/memcpy/memcpy.c
modules/misc/memcpy/memcpy.c
+2
-6
modules/misc/memcpy/memcpyaltivec.c
modules/misc/memcpy/memcpyaltivec.c
+1
-1
No files found.
include/vlc_common.h
View file @
e29b2a0e
...
...
@@ -883,15 +883,13 @@ VLC_EXPORT( int, __vlc_execve, ( vlc_object_t *p_object, int i_argc, char *const
#define CPU_CAPABILITY_ALTIVEC (1<<16)
#define CPU_CAPABILITY_FPU (1<<31)
VLC_EXPORT
(
unsigned
,
vlc_CPU
,
(
void
)
);
VLC_EXPORT
(
void
*
,
vlc_memcpy
,
(
void
*
,
const
void
*
,
size_t
)
);
VLC_EXPORT
(
void
*
,
vlc_memset
,
(
void
*
,
int
,
size_t
)
);
typedef
void
*
(
*
vlc_memcpy_t
)
(
void
*
tgt
,
const
void
*
src
,
size_t
n
);
typedef
void
*
(
*
vlc_memset_t
)
(
void
*
tgt
,
int
c
,
size_t
n
);
VLC_EXPORT
(
void
,
vlc_fastmem_register
,
(
vlc_memcpy_t
cpy
,
vlc_memset_t
set
)
);
VLC_EXPORT
(
void
*
,
vlc_memcpy
,
(
v
lc_object_t
*
,
v
oid
*
,
const
void
*
,
size_t
)
);
VLC_EXPORT
(
void
*
,
vlc_memset
,
(
v
lc_object_t
*
,
v
oid
*
,
int
,
size_t
)
);
VLC_EXPORT
(
void
*
,
vlc_memcpy
,
(
void
*
,
const
void
*
,
size_t
)
);
VLC_EXPORT
(
void
*
,
vlc_memset
,
(
void
*
,
int
,
size_t
)
);
/*****************************************************************************
* I18n stuff
...
...
modules/misc/memcpy/memcpy.c
View file @
e29b2a0e
...
...
@@ -64,12 +64,8 @@
*****************************************************************************/
static
int
Activate
(
vlc_object_t
*
p_this
)
{
#ifdef MODULE_NAME_IS_memcpy
p_this
->
p_libvlc
->
pf_memcpy
=
memcpy
;
p_this
->
p_libvlc
->
pf_memset
=
memset
;
#else
p_this
->
p_libvlc
->
pf_memcpy
=
fast_memcpy
;
p_this
->
p_libvlc
->
pf_memset
=
NULL
;
#ifndef MODULE_NAME_IS_memcpy
vlc_fastmem_register
(
fast_memcpy
,
NULL
);
#endif
return
VLC_SUCCESS
;
...
...
modules/misc/memcpy/memcpyaltivec.c
View file @
e29b2a0e
...
...
@@ -47,7 +47,7 @@ static void * fast_memcpy ( void * to, const void * from, size_t len );
*****************************************************************************/
static
int
Activate
(
vlc_object_t
*
p_this
)
{
p_this
->
p_libvlc
->
pf_memcpy
=
fast_memcpy
;
vlc_fastmem_register
(
fast_memcpy
,
NULL
)
;
return
VLC_SUCCESS
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment