summaryrefslogtreecommitdiff
path: root/zap/source/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'zap/source/amd64')
-rw-r--r--zap/source/amd64/mem/memcat.c14
-rw-r--r--zap/source/amd64/mem/memfnd.S2
-rw-r--r--zap/source/amd64/mem/strcat.c19
-rw-r--r--zap/source/amd64/mem/strfnd.S2
4 files changed, 2 insertions, 35 deletions
diff --git a/zap/source/amd64/mem/memcat.c b/zap/source/amd64/mem/memcat.c
deleted file mode 100644
index 2b50ba7..0000000
--- a/zap/source/amd64/mem/memcat.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- Copyright 2022 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 obtain one at https://mozilla.org/MPL/2.0/.
-*/
-
-#include <zap/priv.h>
-
-#include <zap/mem.h>
-
-void zap_memcat(void const * const _lptr,zap_sz const _llen,void const * const _rptr,zap_sz const _rlen,void * const _buf) {
- zap_memcp(_lptr,_llen,_buf);
- zap_memcp(_rptr,_rlen,(unsigned char *)_buf + _llen);
-}
diff --git a/zap/source/amd64/mem/memfnd.S b/zap/source/amd64/mem/memfnd.S
index 0b5a47e..e1f8c30 100644
--- a/zap/source/amd64/mem/memfnd.S
+++ b/zap/source/amd64/mem/memfnd.S
@@ -46,5 +46,5 @@ zap_memfnd:
# Not found:
.nfnd:
- movq $0xFFFFFFFFFFFFFFFF,addr # addr = FFFFFFFFFFFFFFFF
+ movq $0xFFFFFFFFFFFFFFFF,addr # addr = 0xFFFFFFFFFFFFFFFF
ret # return addr
diff --git a/zap/source/amd64/mem/strcat.c b/zap/source/amd64/mem/strcat.c
deleted file mode 100644
index f7f66c8..0000000
--- a/zap/source/amd64/mem/strcat.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- Copyright 2022 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 obtain one at https://mozilla.org/MPL/2.0/.
-*/
-
-#include <zap/priv.h>
-
-#include <zap/mem.h>
-
-#include <stddef.h>
-
-void zap_strcat(char const * const _lstr,char const * const _rstr,char * const _buf) {
- zap_sz const llen = zap_strlen (_lstr);
- zap_sz const rlen = zap_strlen (_rstr);
- zap_memcp(_lstr,llen,_buf);
- zap_memcp(_rstr,rlen,_buf + llen);
- _buf[llen + rlen] = '\x0';
-}
diff --git a/zap/source/amd64/mem/strfnd.S b/zap/source/amd64/mem/strfnd.S
index d9c99f3..f2f94fa 100644
--- a/zap/source/amd64/mem/strfnd.S
+++ b/zap/source/amd64/mem/strfnd.S
@@ -44,5 +44,5 @@ zap_strfnd:
# Not found:
.nfnd:
- movq $0xFFFFFFFFFFFFFFFF,addr # addr = FFFFFFFFFFFFFFFF
+ movq $0xFFFFFFFFFFFFFFFF,addr # addr = 0xFFFFFFFFFFFFFFFF
ret # return addr