From b70eadecefee362017950e75d638180a7e647110 Mon Sep 17 00:00:00 2001 From: XProger Date: Thu, 1 Dec 2022 16:07:39 +0300 Subject: [PATCH] #368 GBA matrix rotation optimization --- src/platform/gba/asm/matrixRotate.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/gba/asm/matrixRotate.s b/src/platform/gba/asm/matrixRotate.s index 32d1419b..a406af89 100644 --- a/src/platform/gba/asm/matrixRotate.s +++ b/src/platform/gba/asm/matrixRotate.s @@ -12,8 +12,8 @@ mul \t, \y, \cos mla \t, \x, \sin, \t mul \x, \cos, \x - rsb \y, \y, #0 - mla \x, \y, \sin, \x + mul \y, \sin, \y + sub \x, \y mov \y, \t, asr #FIXED_SHIFT mov \x, \x, asr #FIXED_SHIFT .endm