RetroArch
lauxlib.h
Go to the documentation of this file.
1 /*
2 ** $Id: lauxlib.h,v 1.131.1.1 2017/04/19 17:20:42 roberto Exp $
3 ** Auxiliary functions for building Lua libraries
4 ** See Copyright Notice in lua.h
5 */
6 
7 
8 #ifndef lauxlib_h
9 #define lauxlib_h
10 
11 
12 #include <stddef.h>
13 #include <stdio.h>
14 
15 #include "lua.h"
16 
17 
18 
19 /* extra error code for 'luaL_loadfilex' */
20 #define LUA_ERRFILE (LUA_ERRERR+1)
21 
22 
23 /* key, in the registry, for table of loaded modules */
24 #define LUA_LOADED_TABLE "_LOADED"
25 
26 
27 /* key, in the registry, for table of preloaded loaders */
28 #define LUA_PRELOAD_TABLE "_PRELOAD"
29 
30 
31 typedef struct luaL_Reg {
32  const char *name;
34 } luaL_Reg;
35 
36 
37 #define LUAL_NUMSIZES (sizeof(lua_Integer)*16 + sizeof(lua_Number))
38 
40 #define luaL_checkversion(L) \
41  luaL_checkversion_(L, LUA_VERSION_NUM, LUAL_NUMSIZES)
42 
43 LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
44 LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);
45 LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len);
46 LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg);
47 LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg,
48  size_t *l);
49 LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg,
50  const char *def, size_t *l);
53 
56  lua_Integer def);
57 
58 LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg);
59 LUALIB_API void (luaL_checktype) (lua_State *L, int arg, int t);
61 
62 LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname);
63 LUALIB_API void (luaL_setmetatable) (lua_State *L, const char *tname);
64 LUALIB_API void *(luaL_testudata) (lua_State *L, int ud, const char *tname);
65 LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname);
66 
67 LUALIB_API void (luaL_where) (lua_State *L, int lvl);
68 LUALIB_API int (luaL_error) (lua_State *L, const char *fmt, ...);
69 
70 LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def,
71  const char *const lst[]);
72 
73 LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname);
74 LUALIB_API int (luaL_execresult) (lua_State *L, int stat);
75 
76 /* predefined references */
77 #define LUA_NOREF (-2)
78 #define LUA_REFNIL (-1)
79 
80 LUALIB_API int (luaL_ref) (lua_State *L, int t);
81 LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
82 
83 LUALIB_API int (luaL_loadfilex) (lua_State *L, const char *filename,
84  const char *mode);
85 
86 #define luaL_loadfile(L,f) luaL_loadfilex(L,f,NULL)
87 
88 LUALIB_API int (luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz,
89  const char *name, const char *mode);
90 LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s);
91 
93 
95 
96 LUALIB_API const char *(luaL_gsub) (lua_State *L, const char *s, const char *p,
97  const char *r);
98 
99 LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup);
100 
101 LUALIB_API int (luaL_getsubtable) (lua_State *L, int idx, const char *fname);
102 
104  const char *msg, int level);
105 
106 LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
107  lua_CFunction openf, int glb);
108 
109 /*
110 ** ===============================================================
111 ** some useful macros
112 ** ===============================================================
113 */
114 
115 
116 #define luaL_newlibtable(L,l) \
117  lua_createtable(L, 0, sizeof(l)/sizeof((l)[0]) - 1)
118 
119 #define luaL_newlib(L,l) \
120  (luaL_checkversion(L), luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))
121 
122 #define luaL_argcheck(L, cond,arg,extramsg) \
123  ((void)((cond) || luaL_argerror(L, (arg), (extramsg))))
124 #define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL))
125 #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL))
126 
127 #define luaL_typename(L,i) lua_typename(L, lua_type(L,(i)))
128 
129 #define luaL_dofile(L, fn) \
130  (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0))
131 
132 #define luaL_dostring(L, s) \
133  (luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0))
134 
135 #define luaL_getmetatable(L,n) (lua_getfield(L, LUA_REGISTRYINDEX, (n)))
136 
137 #define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
138 
139 #define luaL_loadbuffer(L,s,sz,n) luaL_loadbufferx(L,s,sz,n,NULL)
140 
141 
142 /*
143 ** {======================================================
144 ** Generic Buffer manipulation
145 ** =======================================================
146 */
147 
148 typedef struct luaL_Buffer {
149  char *b; /* buffer address */
150  size_t size; /* buffer size */
151  size_t n; /* number of characters in buffer */
153  char initb[LUAL_BUFFERSIZE]; /* initial buffer */
154 } luaL_Buffer;
155 
156 
157 #define luaL_addchar(B,c) \
158  ((void)((B)->n < (B)->size || luaL_prepbuffsize((B), 1)), \
159  ((B)->b[(B)->n++] = (c)))
160 
161 #define luaL_addsize(B,s) ((B)->n += (s))
162 
164 LUALIB_API char *(luaL_prepbuffsize) (luaL_Buffer *B, size_t sz);
165 LUALIB_API void (luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l);
166 LUALIB_API void (luaL_addstring) (luaL_Buffer *B, const char *s);
170 LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz);
171 
172 #define luaL_prepbuffer(B) luaL_prepbuffsize(B, LUAL_BUFFERSIZE)
173 
174 /* }====================================================== */
175 
176 
177 
178 /*
179 ** {======================================================
180 ** File handles for IO library
181 ** =======================================================
182 */
183 
184 /*
185 ** A file handle is a userdata with metatable 'LUA_FILEHANDLE' and
186 ** initial structure 'luaL_Stream' (it may contain other fields
187 ** after that initial structure).
188 */
189 
190 #define LUA_FILEHANDLE "FILE*"
191 
192 
193 typedef struct luaL_Stream {
194  FILE *f; /* stream (NULL for incompletely created streams) */
195  lua_CFunction closef; /* to close stream (NULL for closed streams) */
196 } luaL_Stream;
197 
198 /* }====================================================== */
199 
200 
201 
202 /* compatibility with old module system */
203 #if defined(LUA_COMPAT_MODULE)
204 
205 LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname,
206  int sizehint);
207 LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname,
208  const luaL_Reg *l, int nup);
209 
210 #define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0))
211 
212 #endif
213 
214 
215 /*
216 ** {==================================================================
217 ** "Abstraction Layer" for basic report of messages and errors
218 ** ===================================================================
219 */
220 
221 /* print a string */
222 #if !defined(lua_writestring)
223 #define lua_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
224 #endif
225 
226 /* print a newline and flush the output */
227 #if !defined(lua_writeline)
228 #define lua_writeline() (lua_writestring("\n", 1), fflush(stdout))
229 #endif
230 
231 /* print an error message */
232 #if !defined(lua_writestringerror)
233 #define lua_writestringerror(s,p) \
234  (fprintf(stderr, (s), (p)), fflush(stderr))
235 #endif
236 
237 /* }================================================================== */
238 
239 
240 /*
241 ** {============================================================
242 ** Compatibility with deprecated conversions
243 ** =============================================================
244 */
245 #if defined(LUA_COMPAT_APIINTCASTS)
246 
247 #define luaL_checkunsigned(L,a) ((lua_Unsigned)luaL_checkinteger(L,a))
248 #define luaL_optunsigned(L,a,d) \
249  ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
250 
251 #define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
252 #define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d)))
253 
254 #define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n)))
255 #define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d)))
256 
257 #endif
258 /* }============================================================ */
259 
260 
261 
262 #endif
263 
264 
LUALIB_API void *() luaL_checkudata(lua_State *L, int ud, const char *tname)
Definition: lauxlib.c:333
LUALIB_API lua_Number() luaL_optnumber(lua_State *L, int arg, lua_Number def)
Definition: lauxlib.c:417
GLuint const GLchar * name
Definition: glext.h:6671
GLenum GLint ref
Definition: glext.h:6668
GLenum mode
Definition: glext.h:6857
LUALIB_API void() luaL_addvalue(luaL_Buffer *B)
Definition: lauxlib.c:558
LUALIB_API void() luaL_where(lua_State *L, int lvl)
Definition: lauxlib.c:205
LUALIB_API void() luaL_checkversion_(lua_State *L, lua_Number ver, size_t sz)
Definition: lauxlib.c:1033
LUALIB_API int() luaL_argerror(lua_State *L, int arg, const char *extramsg)
Definition: lauxlib.c:164
LUALIB_API void() luaL_addlstring(luaL_Buffer *B, const char *s, size_t l)
Definition: lauxlib.c:528
LUALIB_API const char *() luaL_checklstring(lua_State *L, int arg, size_t *l)
Definition: lauxlib.c:390
lua_State * L
Definition: lauxlib.h:152
LUALIB_API int() luaL_fileresult(lua_State *L, int stat, const char *fname)
Definition: lauxlib.c:234
Ιστορικό Εικόνα Πληροφορίες Όλοι Οι Χρήστες Χειρίζονται Το Μενού Αριστερό Αναλογικό Αριστερό Αναλογικό Αριστερό Αναλογικό Y Αριστερό Αναλογικό Δεξί Αναλογικό X Δεξί Αναλογικό Δεξί Αναλογικό Y Δεξί Αναλογικό Σκανδάλη Όπλου Όπλο Aux A Όπλο Aux C Όπλο Select Όπλο D pad Κάτω Όπλο D pad Δεξιά Νεκρή Ζώνη Αναλογικού Σύνδεση Όλων Λήξη Χρόνου Σύνδεσης Hide Unbound Core Input Descriptors Κατάλογος Συσκευών Κατάλογος Ποντικιού Duty Cycle Keyboard Gamepad Mapping Enable Κουμπί B(κάτω)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
GLdouble GLdouble t
Definition: glext.h:6398
GLenum GLsizei len
Definition: glext.h:7389
LUALIB_API int() luaL_callmeta(lua_State *L, int obj, const char *e)
Definition: lauxlib.c:788
GLdouble s
Definition: glext.h:6390
LUALIB_API void() luaL_traceback(lua_State *L, lua_State *L1, const char *msg, int level)
Definition: lauxlib.c:125
LUALIB_API int() luaL_ref(lua_State *L, int t)
Definition: lauxlib.c:595
LUALIB_API void() luaL_checkstack(lua_State *L, int sz, const char *msg)
Definition: lauxlib.c:368
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
LUA_NUMBER lua_Number
Definition: lua.h:89
LUALIB_API void() luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup)
Definition: lauxlib.c:934
LUALIB_API lua_Integer() luaL_optinteger(lua_State *L, int arg, lua_Integer def)
Definition: lauxlib.c:440
LUALIB_API char *() luaL_buffinitsize(lua_State *L, luaL_Buffer *B, size_t sz)
Definition: lauxlib.c:577
LUA_INTEGER lua_Integer
Definition: lua.h:93
Compilador Desconocido Dispositivo desconectado del puerto El archivo ya existe Guardándolo en el búfer de respaldo Conexión obtenida Dirección pública Poniendo disco en bandeja As dejado el juego Se ha unido con el dispositivo de entrada *s *s se ha unido como jugador u Una conexión de netplay probablemente no este usando RetroArch o esté usando una versión antigua de RetroArch use la misma versión use la misma versión Este núcleo no soporta juego en red entre diferentes sistemas Contraseña incorrecta Un cliente de juego en red se ha desconectado No tienes permiso para jugar El dispositivo de entrada pedido no esta disponible Cliente de juego en red s pausado Dar a los núcleos renderizados por hardware un contexto privado Evita tener que asumir cambios en el estado del hardware entre cuadros Ajusta la apariencia del menú Mejora el rendimiento a costa de la latencia y posiblemente algunos tirones Usar solo si no puede obtener máxima velocidad de otra manera Auto detectar Capacidades Conectando al puerto Lo no Contraseña Nombre de usuario Fin de la lista Lista de logros Continuar usando el modo Hardcore de logros Escanear Contenido Importar contenido Preguntar Bloquear frames Controlador de Audio Activar audio Turbo Zona Muerta Variación máxima de sincronía de audio Frecuencia de muestreo de Control de frecuencia dinámico Audio Volumen de WASAPI Mode Exclusivo WASAPI Tamaño del búfer compartido Cargar autom archivos de personalización Cargar Shaders automáticamente Confirmar Salir Desplazar hacia arriba Mostrar teclado Controles básicos del menú Información Desplazar hacia arriba Mostrar teclado No sobrescribir SaveRAM al cargar URL de recursos del Buildbot Permitir cámara Truco Iniciar búsqueda de trucos Archivo de trucos Cargar archivo de Cargar archivo de Guardar archivo de trucos como Descripción Tablas de clasificación Logros Bloqueado Probar logros No oficiales Desbloqueado Logros modo informativo Cerrar Cargar configuración Guardar configuración al salir Base de datos Tamaño del historial Menú rápido Descargas Contadores de núcleo Información del núcleo Categorías Nombre del núcleo Permisos Fabricante del sistema Controles Instalar or Restaurar un núcleo Núcleo instalado exitosamente Núcleo Extraer automáticamente el archivo descargado Actualizador de núcleos Arquitectura de Núcleos de Cursor Relación personalizada Seleccionar bases de datos Favoritos< Predeterminada > No se ha encontrado la carpeta Abrir Cerrar la bandeja de discos Índice de disco No importa Descargar núcleo Forzar DPI Controladores Chequear si falta Firmware antes de cargar Fondos de pantalla dinámicos Color de resaltado del menú Desactivado Favoritos Incluir detalles de memoria Sincronizar Velocidad de frames Usar opciones de núcleo para cada juego si existen Archivo de opciones del juego Solucionar problemas de Audio Video Controles básicos del menú Cargando contenido ¿Qué es un núcleo Historial Imágenes Información Todos controlan el menú Analógico izq Analógico izq Analógico izq Y Analógico izq Analógico der X Analógico der Analógico der Y Analógico der Activar Auto configuración Asignar todo Tiempo limite para asignar Ocultar descripciones de entrada sin asignar de los núcleo Indice de dispositivo Indice de ratón Ciclo de trabajo Activar mapeo de Teclado Mando Botón D pad ABAJO Botón Botón L1(LB)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT
LUALIB_API const char *() luaL_tolstring(lua_State *L, int idx, size_t *len)
Definition: lauxlib.c:810
LUALIB_API int() luaL_error(lua_State *L, const char *fmt,...)
Definition: lauxlib.c:223
LUALIB_API lua_Integer() luaL_len(lua_State *L, int idx)
Definition: lauxlib.c:798
LUALIB_API int() luaL_newmetatable(lua_State *L, const char *tname)
Definition: lauxlib.c:299
Definition: lauxlib.h:31
LUALIB_API void() luaL_buffinit(lua_State *L, luaL_Buffer *B)
Definition: lauxlib.c:569
bool l
Definition: connect_wiiupro.c:37
LUALIB_API void() luaL_unref(lua_State *L, int t, int ref)
Definition: lauxlib.c:616
LUALIB_API const char *() luaL_optlstring(lua_State *L, int arg, const char *def, size_t *l)
Definition: lauxlib.c:397
LUALIB_API void() luaL_setmetatable(lua_State *L, const char *tname)
Definition: lauxlib.c:312
GLint level
Definition: glext.h:6293
char * b
Definition: lauxlib.h:149
LUALIB_API int() luaL_checkoption(lua_State *L, int arg, const char *def, const char *const lst[])
Definition: lauxlib.c:348
static const unsigned char msg[]
Definition: ccm.c:375
size_t n
Definition: lauxlib.h:151
struct luaL_Stream luaL_Stream
LUALIB_API void *() luaL_testudata(lua_State *L, int ud, const char *tname)
Definition: lauxlib.c:318
LUALIB_API int() luaL_getmetafield(lua_State *L, int obj, const char *e)
Definition: lauxlib.c:772
LUALIB_API lua_State *() luaL_newstate(void)
Definition: lauxlib.c:1026
GLfloat GLfloat p
Definition: glext.h:9809
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 idx
Definition: pixman-arm-neon-asm.h:96
LUALIB_API const char *() luaL_gsub(lua_State *L, const char *s, const char *p, const char *r)
Definition: lauxlib.c:991
#define FILE
Definition: file_stream_transforms.h:35
size_t size
Definition: lauxlib.h:150
Definition: lauxlib.h:193
LUALIB_API void() luaL_requiref(lua_State *L, const char *modname, lua_CFunction openf, int glb)
Definition: lauxlib.c:971
const char * name
Definition: lauxlib.h:32
LUALIB_API void() luaL_checktype(lua_State *L, int arg, int t)
Definition: lauxlib.c:378
LUALIB_API void() luaL_pushresultsize(luaL_Buffer *B, size_t sz)
Definition: lauxlib.c:552
lua_CFunction func
Definition: lauxlib.h:33
LUALIB_API char *() luaL_prepbuffsize(luaL_Buffer *B, size_t sz)
Definition: lauxlib.c:505
LUALIB_API int() luaL_execresult(lua_State *L, int stat)
Definition: lauxlib.c:274
struct luaL_Reg luaL_Reg
LUALIB_API lua_Number() luaL_checknumber(lua_State *L, int arg)
Definition: lauxlib.c:408
LUALIB_API void() luaL_checkany(lua_State *L, int arg)
Definition: lauxlib.c:384
LUALIB_API int() luaL_getsubtable(lua_State *L, int idx, const char *fname)
Definition: lauxlib.c:951
LUALIB_API void() luaL_addstring(luaL_Buffer *B, const char *s)
Definition: lauxlib.c:537
Ιστορικό Εικόνα Πληροφορίες Όλοι Οι Χρήστες Χειρίζονται Το Μενού Αριστερό Αναλογικό Αριστερό Αναλογικό Αριστερό Αναλογικό Y Αριστερό Αναλογικό Δεξί Αναλογικό X Δεξί Αναλογικό Δεξί Αναλογικό Y Δεξί Αναλογικό Σκανδάλη Όπλου Όπλο Aux A Όπλο Aux C Όπλο Select Όπλο D pad Κάτω Όπλο D pad Δεξιά Νεκρή Ζώνη Αναλογικού Σύνδεση Όλων Λήξη Χρόνου Σύνδεσης Hide Unbound Core Input Descriptors Κατάλογος Συσκευών Κατάλογος Ποντικιού Duty Cycle Keyboard Gamepad Mapping Enable Κουμπί D pad κάτω Κουμπί Κουμπί L(πίσω)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT
Definition: lauxlib.h:148
#define LUAL_BUFFERSIZE
Definition: luaconf.h:761
int(* lua_CFunction)(lua_State *L)
Definition: lua.h:105
LUALIB_API void() luaL_pushresult(luaL_Buffer *B)
Definition: lauxlib.c:542
struct luaL_Buffer luaL_Buffer
#define LUALIB_API
Definition: luaconf.h:260
LUALIB_API int() luaL_loadbufferx(lua_State *L, const char *buff, size_t sz, const char *name, const char *mode)
Definition: lauxlib.c:755
LUALIB_API int() luaL_loadfilex(lua_State *L, const char *filename, const char *mode)
Definition: lauxlib.c:703
LUALIB_API int() luaL_loadstring(lua_State *L, const char *s)
Definition: lauxlib.c:764
Definition: lstate.h:178
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d &reg2 endm macro vzip8 reg2 vzip d d &reg2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld [DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld fname[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp local skip1 beq endif SRC MASK if dst_r_bpp DST_R else add endif PF add sub src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head pixblock_size cache_preload_simple process_pixblock_tail pixinterleave dst_w_basereg irp beq endif process_pixblock_tail_head tst beq irp if pixblock_size chunk_size tst beq pixld_src SRC pixld MASK if DST_R else pixld DST_R endif if src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head if pixblock_size cache_preload_simple endif process_pixblock_tail pixinterleave dst_w_basereg irp if pixblock_size chunk_size tst beq if DST_W else pixst DST_W else mov ORIG_W endif add lsl if lsl endif if lsl endif lsl endif lsl endif lsl endif subs mov DST_W if regs_shortage str endif bge start_of_loop_label endm macro generate_composite_function
Definition: pixman-arm-neon-asm.h:600
LUALIB_API lua_Integer() luaL_checkinteger(lua_State *L, int arg)
Definition: lauxlib.c:430
char initb[LUAL_BUFFERSIZE]
Definition: lauxlib.h:153
lua_CFunction closef
Definition: lauxlib.h:195
FILE * f
Definition: lauxlib.h:194
GLsizei GLsizei GLuint * obj
Definition: glext.h:6682