Data Structures |
| union | fi_type |
Defines |
| #define | ADD_POINTERS(A, B) ( (GLubyte *) (A) + (uintptr_t) (B) ) |
| #define | MAX_GLUSHORT 0xffff |
| #define | MAX_GLUINT 0xffffffff |
| #define | DEG2RAD (M_PI/180.0) |
| #define | SQRTF(X) (float) sqrt((float) (X)) |
| #define | INV_SQRTF(X) (1.0F / SQRTF(X)) /* this is faster on a P4 */ |
| #define | LOG2(x) ((GLfloat) (log(x) * 1.442695F)) |
| #define | IS_INF_OR_NAN(x) (!finite(x)) |
| #define | IS_NEGATIVE(x) (x < 0.0F) |
| #define | DIFFERENT_SIGNS(x, y) ((x) * (y) <= 0.0F && (x) - (y) != 0.0F) |
| #define | CEILF(x) ((GLfloat) ceil(x)) |
| #define | FLOORF(x) ((GLfloat) floor(x)) |
| #define | FABSF(x) ((GLfloat) fabs(x)) |
| #define | LOGF(x) ((GLfloat) log(x)) |
| #define | EXPF(x) ((GLfloat) exp(x)) |
| #define | LDEXPF(x, y) ((GLfloat) ldexp(x,y)) |
| #define | FREXPF(x, y) ((GLfloat) frexp(x,y)) |
| #define | IROUND(f) ((int) (((f) >= 0.0F) ? ((f) + 0.5F) : ((f) - 0.5F))) |
| #define | IROUND_POS(f) (IROUND(f)) |
| #define | IFLOOR(x) ifloor(x) |
| #define | ICEIL(x) iceil(x) |
| #define | UNCLAMPED_FLOAT_TO_UBYTE(ub, f) ub = ((GLubyte) IROUND(CLAMP((f), 0.0F, 1.0F) * 255.0F)) |
| #define | CLAMPED_FLOAT_TO_UBYTE(ub, f) ub = ((GLubyte) IROUND((f) * 255.0F)) |
| #define | START_FAST_MATH(x) x = 0 |
| #define | END_FAST_MATH(x) (void)(x) |
|
| #define | LONGSTRING |
|
| #define | MALLOC(BYTES) _mesa_malloc(BYTES) |
| #define | CALLOC(BYTES) _mesa_calloc(BYTES) |
| #define | MALLOC_STRUCT(T) (struct T *) _mesa_malloc(sizeof(struct T)) |
| #define | CALLOC_STRUCT(T) (struct T *) _mesa_calloc(sizeof(struct T)) |
| #define | FREE(PTR) _mesa_free(PTR) |
| #define | ALIGN_MALLOC(BYTES, N) _mesa_align_malloc(BYTES, N) |
| #define | ALIGN_CALLOC(BYTES, N) _mesa_align_calloc(BYTES, N) |
| #define | ALIGN_MALLOC_STRUCT(T, N) (struct T *) _mesa_align_malloc(sizeof(struct T), N) |
| #define | ALIGN_CALLOC_STRUCT(T, N) (struct T *) _mesa_align_calloc(sizeof(struct T), N) |
| #define | ALIGN_FREE(PTR) _mesa_align_free(PTR) |
| #define | MEMCPY(DST, SRC, BYTES) _mesa_memcpy(DST, SRC, BYTES) |
| #define | MEMSET(DST, VAL, N) _mesa_memset(DST, VAL, N) |
Functions |
| static INLINE int | ifloor (float f) |
| static INLINE int | iceil (float f) |
| static INLINE int | _mesa_is_pow_two (int x) |
| static INLINE GLboolean | _mesa_little_endian (void) |
| void * | _mesa_malloc (size_t bytes) |
| void * | _mesa_calloc (size_t bytes) |
| void | _mesa_free (void *ptr) |
| void * | _mesa_align_malloc (size_t bytes, unsigned long alignment) |
| void * | _mesa_align_calloc (size_t bytes, unsigned long alignment) |
| void | _mesa_align_free (void *ptr) |
| void * | _mesa_align_realloc (void *oldBuffer, size_t oldSize, size_t newSize, unsigned long alignment) |
| void * | _mesa_exec_malloc (GLuint size) |
| void | _mesa_exec_free (void *addr) |
| void * | _mesa_realloc (void *oldBuffer, size_t oldSize, size_t newSize) |
| void * | _mesa_memcpy (void *dest, const void *src, size_t n) |
| void | _mesa_memset (void *dst, int val, size_t n) |
| void | _mesa_memset16 (unsigned short *dst, unsigned short val, size_t n) |
| void | _mesa_bzero (void *dst, size_t n) |
| int | _mesa_memcmp (const void *s1, const void *s2, size_t n) |
| double | _mesa_sin (double a) |
| float | _mesa_sinf (float a) |
| double | _mesa_cos (double a) |
| float | _mesa_asinf (float x) |
| float | _mesa_atanf (float x) |
| double | _mesa_sqrtd (double x) |
| float | _mesa_sqrtf (float x) |
| float | _mesa_inv_sqrtf (float x) |
| void | _mesa_init_sqrt_table (void) |
| double | _mesa_pow (double x, double y) |
| int | _mesa_ffs (int i) |
| int | _mesa_ffsll (long long i) |
| unsigned int | _mesa_bitcount (unsigned int n) |
| GLhalfARB | _mesa_float_to_half (float f) |
| float | _mesa_half_to_float (GLhalfARB h) |
| void * | _mesa_bsearch (const void *key, const void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)) |
| char * | _mesa_getenv (const char *var) |
| char * | _mesa_strstr (const char *haystack, const char *needle) |
| char * | _mesa_strncat (char *dest, const char *src, size_t n) |
| char * | _mesa_strcpy (char *dest, const char *src) |
| char * | _mesa_strncpy (char *dest, const char *src, size_t n) |
| size_t | _mesa_strlen (const char *s) |
| int | _mesa_strcmp (const char *s1, const char *s2) |
| int | _mesa_strncmp (const char *s1, const char *s2, size_t n) |
| char * | _mesa_strdup (const char *s) |
| int | _mesa_atoi (const char *s) |
| double | _mesa_strtod (const char *s, char **end) |
| int | _mesa_sprintf (char *str, const char *fmt,...) |
| int | _mesa_snprintf (char *str, size_t size, const char *fmt,...) |
| void | _mesa_printf (const char *fmtString,...) |
| void | _mesa_fprintf (FILE *f, const char *fmtString,...) |
| int | _mesa_vsprintf (char *str, const char *fmt, va_list args) |
| void | _mesa_warning (__GLcontext *gc, const char *fmtString,...) |
| void | _mesa_problem (const __GLcontext *ctx, const char *fmtString,...) |
| void | _mesa_error (__GLcontext *ctx, GLenum error, const char *fmtString,...) |
| void | _mesa_debug (const __GLcontext *ctx, const char *fmtString,...) |
| void | _mesa_exit (int status) |