mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
s/memcpy/_mesa_memcpy/, s/FREE/_mesa_free/
This commit is contained in:
parent
deadd47aab
commit
ca2db58166
4 changed files with 8 additions and 8 deletions
|
|
@ -1173,7 +1173,7 @@ static void free_funcs( struct dynfn *l )
|
|||
foreach_s (f, tmp, l) {
|
||||
remove_from_list( f );
|
||||
_mesa_exec_free( f->code );
|
||||
FREE( f );
|
||||
_mesa_free( f );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,10 +57,10 @@ do { \
|
|||
char *start = (char *)&FUNC; \
|
||||
char *end = (char *)&FUNC##_end; \
|
||||
insert_at_head( &CACHE, dfn ); \
|
||||
dfn->key[0] = key[0]; \
|
||||
dfn->key[1] = key[1]; \
|
||||
dfn->code = _mesa_exec_malloc( end - start ); \
|
||||
memcpy (dfn->code, start, end - start); \
|
||||
dfn->key[0] = key[0]; \
|
||||
dfn->key[1] = key[1]; \
|
||||
dfn->code = _mesa_exec_malloc( end - start ); \
|
||||
_mesa_memcpy(dfn->code, start, end - start); \
|
||||
} \
|
||||
while ( 0 )
|
||||
|
||||
|
|
|
|||
|
|
@ -1039,7 +1039,7 @@ static void free_funcs( struct dynfn *l )
|
|||
foreach_s (f, tmp, l) {
|
||||
remove_from_list( f );
|
||||
_mesa_exec_free( f->code );
|
||||
FREE( f );
|
||||
_mesa_free( f );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ do { \
|
|||
char *end = (char *)&FUNC##_end; \
|
||||
insert_at_head( &CACHE, dfn ); \
|
||||
dfn->key = key; \
|
||||
dfn->code = _mesa_exec_malloc( end - start ); \
|
||||
memcpy (dfn->code, start, end - start); \
|
||||
dfn->code = _mesa_exec_malloc( end - start ); \
|
||||
_mesa_memcpy(dfn->code, start, end - start); \
|
||||
} \
|
||||
while ( 0 )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue