summaryrefslogtreecommitdiff
path: root/arm9/asm/MATH.s
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2020-05-23 07:23:16 -0400
committerGitHub <noreply@github.com>2020-05-23 07:23:16 -0400
commit0b01c7d1c57c4e21fdb0069b3ac4f9c7276b3cc1 (patch)
tree2f30c7bd3c7300bba75a1738b08faa16de57cea2 /arm9/asm/MATH.s
parent79a7e3dac84f719ca4d0131ac2e30e2c6a4bd73e (diff)
parent936ea8a0134ed8095f9496ebe1571866509530d7 (diff)
Merge pull request #104 from Cleverking2003/master
Decompile libmath
Diffstat (limited to 'arm9/asm/MATH.s')
-rw-r--r--arm9/asm/MATH.s25
1 files changed, 0 insertions, 25 deletions
diff --git a/arm9/asm/MATH.s b/arm9/asm/MATH.s
deleted file mode 100644
index 8e127de0..00000000
--- a/arm9/asm/MATH.s
+++ /dev/null
@@ -1,25 +0,0 @@
- .include "asm/macros.inc"
- .include "global.inc"
-
- .text
-
- arm_func_start MATH_CountPopulation
-MATH_CountPopulation: ; 0x020DDC5C
- ldr r1, _020DDC94 ; =0x55555555
- ldr r2, _020DDC98 ; =0x33333333
- and r1, r1, r0, lsr #0x1
- sub r0, r0, r1
- and r1, r0, r2
- and r0, r2, r0, lsr #0x2
- add r1, r1, r0
- ldr r0, _020DDC9C ; =0x0F0F0F0F
- add r1, r1, r1, lsr #0x4
- and r0, r1, r0
- add r0, r0, r0, lsr #0x8
- add r0, r0, r0, lsr #0x10
- and r0, r0, #0xff
- bx lr
- .balign 4
-_020DDC94: .word 0x55555555
-_020DDC98: .word 0x33333333
-_020DDC9C: .word 0x0F0F0F0F