projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop macro wrappers for the aligned memory functions
[mesa.git]
/
src
/
mesa
/
math
/
m_matrix.c
diff --git
a/src/mesa/math/m_matrix.c
b/src/mesa/math/m_matrix.c
index e810d6deb8272297edd5e20f866a2d281f7c57d3..ef8a40fbecb040477952dfe8849e3a8a998312bd 100644
(file)
--- a/
src/mesa/math/m_matrix.c
+++ b/
src/mesa/math/m_matrix.c
@@
-1484,7
+1484,7
@@
_math_matrix_loadf( GLmatrix *mat, const GLfloat *m )
void
_math_matrix_ctr( GLmatrix *m )
{
void
_math_matrix_ctr( GLmatrix *m )
{
- m->m = (GLfloat *)
ALIGN_MALLOC
( 16 * sizeof(GLfloat), 16 );
+ m->m = (GLfloat *)
_mesa_align_malloc
( 16 * sizeof(GLfloat), 16 );
if (m->m)
memcpy( m->m, Identity, sizeof(Identity) );
m->inv = NULL;
if (m->m)
memcpy( m->m, Identity, sizeof(Identity) );
m->inv = NULL;
@@
-1503,11
+1503,11
@@
void
_math_matrix_dtr( GLmatrix *m )
{
if (m->m) {
_math_matrix_dtr( GLmatrix *m )
{
if (m->m) {
-
ALIGN_FREE
( m->m );
+
_mesa_align_free
( m->m );
m->m = NULL;
}
if (m->inv) {
m->m = NULL;
}
if (m->inv) {
-
ALIGN_FREE
( m->inv );
+
_mesa_align_free
( m->inv );
m->inv = NULL;
}
}
m->inv = NULL;
}
}
@@
-1523,7
+1523,7
@@
void
_math_matrix_alloc_inv( GLmatrix *m )
{
if (!m->inv) {
_math_matrix_alloc_inv( GLmatrix *m )
{
if (!m->inv) {
- m->inv = (GLfloat *)
ALIGN_MALLOC
( 16 * sizeof(GLfloat), 16 );
+ m->inv = (GLfloat *)
_mesa_align_malloc
( 16 * sizeof(GLfloat), 16 );
if (m->inv)
memcpy( m->inv, Identity, 16 * sizeof(GLfloat) );
}
if (m->inv)
memcpy( m->inv, Identity, 16 * sizeof(GLfloat) );
}