shithub: sl

Download patch

ref: 1f2e5dd1254ad165b9c8bfae855b1de5f608ed9b
parent: 73d13740483f22edd24956e5fe179d8dd059c94b
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
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;