aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64/all.h
diff options
context:
space:
mode:
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;