diff options
| author | 2023-06-18 22:26:53 +0200 | |
|---|---|---|
| committer | 2023-06-18 22:26:53 +0200 | |
| commit | 4f979636327bb1acb371d3094554da6cc4672973 (patch) | |
| tree | f1bdf1546eb83991339c1c8eeaf77cbbeb16ff21 /amd64/all.h | |
| parent | b246b0f1f617d34560402c734630369145c2dee1 (diff) | |
add endian.h for endian dependent stuff
Diffstat (limited to 'amd64/all.h')
| -rw-r--r-- | amd64/all.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/amd64/all.h b/amd64/all.h index a038ffd..42f4d23 100644 --- a/amd64/all.h +++ b/amd64/all.h @@ -12,26 +12,6 @@ enum reg { #undef R }; -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; - p[2] = x >> 16; p[3] = x >> 24; -} - -static inline void -wr64le(uchar *p, uvlong x) -{ - wr32le(p+0, x>>00); - wr32le(p+4, x>>32); -} - void amd64_isel(struct function *); void amd64_emit(struct function *); |