mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-25 22:09:35 +00:00
Use FIXED2FLOATRECIP16
Replace 1.5258789e-05f with FIXED2FLOATRECIP16
This commit is contained in:
parent
16dd8145f8
commit
31ced0362a
|
@ -1,10 +1,11 @@
|
|||
#include "RSP.h"
|
||||
#include "N64.h"
|
||||
#include "arm_neon.h"
|
||||
#include "GBI.h"
|
||||
|
||||
void RSP_LoadMatrix( f32 mtx[4][4], u32 address )
|
||||
{
|
||||
f32 recip = 1.5258789e-05f;
|
||||
f32 recip = FIXED2FLOATRECIP16;
|
||||
|
||||
struct _N64Matrix
|
||||
{
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#include "RSP.h"
|
||||
#include "GBI.h"
|
||||
|
||||
void RSP_LoadMatrix( f32 mtx[4][4], u32 address )
|
||||
{
|
||||
f32 recip = 1.5258789e-05f;
|
||||
|
||||
struct _N64Matrix
|
||||
{
|
||||
s16 integer[4][4];
|
||||
|
@ -14,5 +13,5 @@ void RSP_LoadMatrix( f32 mtx[4][4], u32 address )
|
|||
|
||||
for (i = 0; i < 4; i++)
|
||||
for (j = 0; j < 4; j++)
|
||||
mtx[i][j] = (f32)(n64Mat->integer[i][j^1]) + (f32)(n64Mat->fraction[i][j^1]) * recip;
|
||||
mtx[i][j] = (f32)(n64Mat->integer[i][j^1]) + _FIXED2FLOAT(n64Mat->fraction[i][j^1],16);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#include "RSP.h"
|
||||
#include "GBI.h"
|
||||
|
||||
void RSP_LoadMatrix( f32 mtx[4][4], u32 address )
|
||||
{
|
||||
f32 recip = 1.5258789e-05f;
|
||||
f32 recip = FIXED2FLOATRECIP16;
|
||||
#if defined (WIN32_ASM)
|
||||
__asm {
|
||||
mov esi, dword ptr [RDRAM];
|
||||
|
|
Loading…
Reference in New Issue
Block a user