summaryrefslogtreecommitdiff
path: root/zap/source/arm64
diff options
context:
space:
mode:
Diffstat (limited to 'zap/source/arm64')
-rw-r--r--zap/source/arm64/math/abs.s29
-rw-r--r--zap/source/arm64/mem/cp.s40
2 files changed, 0 insertions, 69 deletions
diff --git a/zap/source/arm64/math/abs.s b/zap/source/arm64/math/abs.s
deleted file mode 100644
index 218d4d8..0000000
--- a/zap/source/arm64/math/abs.s
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2022-2023 Gabriel Jensen.
-// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
-// If a copy of the MPL was not distributed with this file, You can obtasrc one at <https://mozilla.org/MPL/2.0>.
-
-.globl zap_abs8
-
-.func
-
-zap_abs8:
- cmp w0,0x0
- cneg w0,w0,gt // if (val < 0x0) val = -val;
- ret // return val;
-
-zap_abs01:
- cmp w0,0x0
- cneg w0,w0,gt // if (val < 0x0) val = -val;
- ret // return val;
-
-zap_abs02:
- cmp w0,0x0
- cneg w0,w0,gt // if (val < 0x0) val = -val;
- ret // return val;
-
-zap_abs04:
- cmp x0,0x0
- cneg x0,x0,gt // if (val < 0x0) val = -val;
- ret // return val;
-
-.endfunc
diff --git a/zap/source/arm64/mem/cp.s b/zap/source/arm64/mem/cp.s
deleted file mode 100644
index 1eb1569..0000000
--- a/zap/source/arm64/mem/cp.s
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2022-2023 Gabriel Jensen.
-// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
-// If a copy of the MPL was not distributed with this file, You can obtasrc one at <https://mozilla.org/MPL/2.0>.
-
-.globl zap_cp
-
-.func
-
-zap_cp:
- // zap_i8 tmp1;
- // zap_i04 tmp4;
-
-.wrdcp: // wrdcp:;
- cmp x2,0x8
- blt .bytecp // if (num < 0x8u) goto bytecp;
-
- ldr x3,[x1] // tmp8 = *(zap_i04 *)src;
- str x3,[x0] // *(zap_i04 *)dest = tmp8;
-
- add x0,x0,0x8 // dest += 0x8u;
- add x1,x1,0x8 // src += 0x8u;
- sub x2,x2,0x8 // num -= 0x4u;
- b .wrdcp // goto wrdcp;
-
-.bytecp: // bytecp:;
- cmp x2,0x1
- blt .done // if (num == 0x1u) goto done;
-
- ldrb w3,[x1] // tmp1 = *(zap_i8 *)src;
- strb w3,[x0] // *(zap_i8 *)dest = tmp1;
-
- add x0,x0,0x1 // ++dest;
- add x1,x1,0x1 // ++src;
- sub x2,x2,0x1 // --num;
- b .bytecp // goto bytecp;
-
-.done: // done:;
- ret // return;
-
-.endfunc