aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64/all.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-17 23:26:45 +0200
committerlemon <lsof@mailbox.org>2023-06-17 23:26:45 +0200
commit962ad175aee634274b408ead38b13e6bc90e2fe7 (patch)
treecfda733adf56ed12e829f594e0b6d66f0a1a7a70 /amd64/all.h
parentec28e9057e84b92acabb7ebf9122af59738917ad (diff)
basic ELF output
Diffstat (limited to 'amd64/all.h')
-rw-r--r--amd64/all.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/amd64/all.h b/amd64/all.h
index 3b08761..a038ffd 100644
--- a/amd64/all.h
+++ b/amd64/all.h
@@ -13,6 +13,12 @@ enum reg {
};
static inline void
+wr16le(uchar *p, ushort x)
+{
+ p[0] = x >> 0; p[1] = x >> 8;
+}
+
+static inline void
wr32le(uchar *p, uint x)
{
p[0] = x >> 0; p[1] = x >> 8;