DARWIN -> __MACOSX__
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include "arch/Dialog/Dialog.h"
|
||||
#include <float.h>
|
||||
|
||||
#if defined(DARWIN)
|
||||
#if defined(__MACOSX__)
|
||||
# include <vecLib/vBLAS.h>
|
||||
#endif
|
||||
|
||||
@@ -81,7 +81,7 @@ void RageVec3TransformNormal( RageVector3* pOut, const RageVector3* pV, const Ra
|
||||
|
||||
void RageVec4TransformCoord( RageVector4* pOut, const RageVector4* pV, const RageMatrix* pM )
|
||||
{
|
||||
#if defined(DARWIN)
|
||||
#if defined(__MACOSX__)
|
||||
// (M^t * v)^t = v^t * M
|
||||
cblas_sgemv(CblasRowMajor, CblasTrans, 4, 4, 1, &pM->m00, 4, &pV->x, 1,
|
||||
0, &pOut->x, 1);
|
||||
@@ -126,7 +126,7 @@ RageMatrix RageMatrix::GetTranspose() const
|
||||
|
||||
void RageMatrixMultiply( RageMatrix* pOut, const RageMatrix* pA, const RageMatrix* pB )
|
||||
{
|
||||
#if defined(DARWIN)
|
||||
#if defined(__MACOSX__)
|
||||
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, 4, 4, 4, 1,
|
||||
&pB->m00, 4, &pA->m00, 4, 0, &pOut->m00, 4);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user