Lines Matching defs:safe_mul

57 static _X_INLINE int safe_mul(int a, int b)
353 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, n));
354 if (0 + safe_pad(safe_mul(compsize, n)) < 0) {
370 (void) memcpy((void *)(gc->pc + 12), (void *)(lists), safe_mul(compsize, n));
382 __glXSendLargeCommand(gc, pc, 16, lists, safe_mul(compsize, n));
1930 const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
1931 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
1937 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
1959 const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
1960 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
1966 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2012 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
2013 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
2020 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2043 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
2044 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
2051 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2073 const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
2074 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
2080 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2102 const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
2103 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
2109 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2155 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
2156 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
2163 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2186 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
2187 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
2194 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2285 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
2286 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
2293 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2316 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
2317 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
2324 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2410 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
2411 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
2418 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2441 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
2442 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
2449 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2472 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLdouble)));
2473 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLdouble))) < 0) {
2480 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLdouble)));
2503 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
2504 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
2511 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2534 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
2535 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
2542 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
3054 const GLuint cmdlen = 12 + safe_pad(safe_mul(mapsize, 1 * sizeof(GLfloat)));
3055 if (0 + safe_pad(safe_mul(mapsize, 1 * sizeof(GLfloat))) < 0) {
3071 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 1 * sizeof(GLfloat)));
3083 __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 1 * sizeof(GLfloat)));
3092 const GLuint cmdlen = 12 + safe_pad(safe_mul(mapsize, 1 * sizeof(GLuint)));
3093 if (0 + safe_pad(safe_mul(mapsize, 1 * sizeof(GLuint))) < 0) {
3109 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 1 * sizeof(GLuint)));
3121 __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 1 * sizeof(GLuint)));
3130 const GLuint cmdlen = 12 + safe_pad(safe_mul(mapsize, 1 * sizeof(GLushort)));
3131 if (0 + safe_pad(safe_mul(mapsize, 1 * sizeof(GLushort))) < 0) {
3147 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 1 * sizeof(GLushort)));
3159 __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 1 * sizeof(GLushort)));
4307 const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 1 * sizeof(GLuint)));
4309 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) < 0) {
4325 (void) memcpy((void *)(pc + 4), (void *)(textures), safe_mul(n, 1 * sizeof(GLuint)));
4346 const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 1 * sizeof(GLuint)));
4347 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) < 0) {
4358 (void) memcpy((void *)(pc + 4), (void *)(textures), safe_mul(n, 1 * sizeof(GLuint)));
4479 const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) + safe_pad(safe_mul(n, 1 * sizeof(GLclampf)));
4480 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) + safe_pad(safe_mul(n, 1 * sizeof(GLclampf))) < 0) {
4491 (void) memcpy((void *)(gc->pc + 8), (void *)(textures), safe_mul(n, 1 * sizeof(GLuint)));
4492 (void) memcpy((void *)(gc->pc + 8 + safe_mul(n, 1 * sizeof(GLuint))), (void *)(priorities), safe_mul(n, 1 * sizeof(GLclampf)));
4638 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
4639 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
4646 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
4656 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
4657 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
4664 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
4995 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
4996 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
5003 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
5026 const GLuint cmdlen = 12 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
5027 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
5034 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
6274 const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat)));
6275 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLfloat))) < 0) {
6281 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
6303 const GLuint cmdlen = 8 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint)));
6304 if (0 + safe_pad(safe_mul(compsize, 1 * sizeof(GLint))) < 0) {
6310 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
6485 const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 1 * sizeof(GLuint)));
6487 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) < 0) {
6503 (void) memcpy((void *)(pc + 4), (void *)(ids), safe_mul(n, 1 * sizeof(GLuint)));
6685 const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 1 * sizeof(GLenum)));
6686 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLenum))) < 0) {
6701 (void) memcpy((void *)(gc->pc + 8), (void *)(bufs), safe_mul(n, 1 * sizeof(GLenum)));
6712 __glXSendLargeCommand(gc, pc, 12, bufs, safe_mul(n, 1 * sizeof(GLenum)));
7097 const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 1 * sizeof(GLuint)));
7098 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) < 0) {
7109 (void) memcpy((void *)(pc + 4), (void *)(programs), safe_mul(n, 1 * sizeof(GLuint)));
7504 const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 1 * sizeof(GLuint)));
7505 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) < 0) {
7516 (void) memcpy((void *)(gc->pc + 8), (void *)(framebuffers), safe_mul(n, 1 * sizeof(GLuint)));
7526 const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 1 * sizeof(GLuint)));
7527 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) < 0) {
7538 (void) memcpy((void *)(gc->pc + 8), (void *)(renderbuffers), safe_mul(n, 1 * sizeof(GLuint)));
7827 const GLuint cmdlen = 4 + safe_pad(safe_mul(n, 1 * sizeof(GLuint)));
7828 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) < 0) {
7839 (void) memcpy((void *)(pc + 4), (void *)(ids), safe_mul(n, 1 * sizeof(GLuint)));
8018 const GLuint cmdlen = 16 + safe_pad(safe_mul(num, 4 * sizeof(GLdouble)));
8019 if (0 + safe_pad(safe_mul(num, 4 * sizeof(GLdouble))) < 0) {
8032 (void) memcpy((void *)(gc->pc + 16), (void *)(params), safe_mul(num, 4 * sizeof(GLdouble)));
8042 const GLuint cmdlen = 16 + safe_pad(safe_mul(num, 4 * sizeof(GLfloat)));
8043 if (0 + safe_pad(safe_mul(num, 4 * sizeof(GLfloat))) < 0) {
8056 (void) memcpy((void *)(gc->pc + 16), (void *)(params), safe_mul(num, 4 * sizeof(GLfloat)));
8066 const GLuint cmdlen = 8 + safe_pad(safe_mul(n, 1 * sizeof(GLuint)));
8067 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLuint))) < 0) {
8078 (void) memcpy((void *)(gc->pc + 8), (void *)(ids), safe_mul(n, 1 * sizeof(GLuint)));
8435 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 1 * sizeof(GLdouble)));
8436 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLdouble))) < 0) {
8448 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 1 * sizeof(GLdouble)));
8458 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 1 * sizeof(GLfloat)));
8459 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLfloat))) < 0) {
8471 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 1 * sizeof(GLfloat)));
8481 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 1 * sizeof(GLshort)));
8482 if (0 + safe_pad(safe_mul(n, 1 * sizeof(GLshort))) < 0) {
8494 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 1 * sizeof(GLshort)));
8504 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 2 * sizeof(GLdouble)));
8505 if (0 + safe_pad(safe_mul(n, 2 * sizeof(GLdouble))) < 0) {
8517 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 2 * sizeof(GLdouble)));
8527 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 2 * sizeof(GLfloat)));
8528 if (0 + safe_pad(safe_mul(n, 2 * sizeof(GLfloat))) < 0) {
8540 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 2 * sizeof(GLfloat)));
8550 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 2 * sizeof(GLshort)));
8551 if (0 + safe_pad(safe_mul(n, 2 * sizeof(GLshort))) < 0) {
8563 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 2 * sizeof(GLshort)));
8573 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 3 * sizeof(GLdouble)));
8574 if (0 + safe_pad(safe_mul(n, 3 * sizeof(GLdouble))) < 0) {
8586 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 3 * sizeof(GLdouble)));
8596 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 3 * sizeof(GLfloat)));
8597 if (0 + safe_pad(safe_mul(n, 3 * sizeof(GLfloat))) < 0) {
8609 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 3 * sizeof(GLfloat)));
8619 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 3 * sizeof(GLshort)));
8620 if (0 + safe_pad(safe_mul(n, 3 * sizeof(GLshort))) < 0) {
8632 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 3 * sizeof(GLshort)));
8642 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 4 * sizeof(GLdouble)));
8643 if (0 + safe_pad(safe_mul(n, 4 * sizeof(GLdouble))) < 0) {
8655 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4 * sizeof(GLdouble)));
8665 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 4 * sizeof(GLfloat)));
8666 if (0 + safe_pad(safe_mul(n, 4 * sizeof(GLfloat))) < 0) {
8678 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4 * sizeof(GLfloat)));
8688 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 4 * sizeof(GLshort)));
8689 if (0 + safe_pad(safe_mul(n, 4 * sizeof(GLshort))) < 0) {
8701 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4 * sizeof(GLshort)));
8711 const GLuint cmdlen = 12 + safe_pad(safe_mul(n, 4 * sizeof(GLubyte)));
8712 if (0 + safe_pad(safe_mul(n, 4 * sizeof(GLubyte))) < 0) {
8724 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4 * sizeof(GLubyte)));