summaryrefslogtreecommitdiff
path: root/System.c
diff options
context:
space:
mode:
Diffstat (limited to 'System.c')
-rw-r--r--System.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/System.c b/System.c
index 68742d4..be3bbc7 100644
--- a/System.c
+++ b/System.c
@@ -326,3 +326,8 @@ bool Systemitoa(char* str, size_t sz, int16_t value)
return false;
}
+
+uint32_t SystemGetHyp(uint16_t x, uint16_t y)
+{
+ return (uint32_t)((uint32_t)(x * x) + (uint32_t)(y * y));
+}