shithub: femtolisp

Download patch

ref: 04e2c93067759dd7376b293a40699e86a16d3262
parent: 49717af9002a3be1f535799fb1804c42eeb4d187
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Nov 14 11:44:05 EST 2024

plan9: no longer need bswap* stuff

--- a/plan9/platform.h
+++ b/plan9/platform.h
@@ -86,14 +86,6 @@
 #define __unlikely(x) (x)
 #define __likely(x) (x)
 
-#define bswap_16(x) (((x) & 0x00ff) << 8 | ((x) & 0xff00) >> 8)
-#define bswap_32(x) \
-    ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
-    (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
-#define bswap_64(x) \
-    (uint64_t)bswap_32((x) & 0xffffffffULL)<<32 | \
-    (uint64_t)bswap_32(((x)>>32) & 0xffffffffULL)
-
 typedef s8int int8_t;
 typedef s16int int16_t;
 typedef s32int int32_t;