return r;
}
-static inline unsigned
-align(unsigned x, unsigned m)
-{
- return (x + m - 1) & ~(m - 1);
-}
-
static inline void
get_scissors(struct gl_framebuffer *fb, int *x, int *y, int *w, int *h)
{
#ifndef MACROS_H
#define MACROS_H
+#include "util/u_math.h"
#include "imports.h"
#endif
}
-/** Copy a 4-element float vector */
-static inline void
-COPY_4FV(GLfloat dst[4], const GLfloat src[4])
-{
- /* memcpy seems to be most efficient */
- memcpy(dst, src, sizeof(GLfloat) * 4);
-}
-
/** Copy \p SZ elements into a 4-element vector */
#define COPY_SZ_4V(DST, SZ, SRC) \
do { \
(DST)[3] *= S; \
} while (0)
-/** Assignment */
-#define ASSIGN_4V( V, V0, V1, V2, V3 ) \
-do { \
- V[0] = V0; \
- V[1] = V1; \
- V[2] = V2; \
- V[3] = V3; \
-} while(0)
-
/*@}*/