From 63c38056c3b7bf9563207db9169d37973a068bd9 Mon Sep 17 00:00:00 2001 From: who-knows-who Date: Wed, 21 Oct 2020 14:10:56 +0100 Subject: Matched file unk_0201CBEC.s --- arm9/src/unk_0201CBEC.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 arm9/src/unk_0201CBEC.c (limited to 'arm9/src') diff --git a/arm9/src/unk_0201CBEC.c b/arm9/src/unk_0201CBEC.c new file mode 100644 index 00000000..0e75c3ff --- /dev/null +++ b/arm9/src/unk_0201CBEC.c @@ -0,0 +1,12 @@ +#include "global.h" +#include "fx.h" + +int FUN_0201CBEC(int a0, int a1, int a2, int a3); + +THUMB_FUNC int FUN_0201CBEC(int a0, int a1, int a2, int a3) { + + int r0 = a0 - a2; + int r2 = a1 - a3; + + return FX_Sqrt((r0 * r0 + r2 * r2) << 0xc) >> 0xc; +} \ No newline at end of file -- cgit v1.2.3