shithub: femtolisp

Download patch

ref: dbead6060a9577e0a013bd98e57d6b592ae4a7e3
parent: 5bedf304eecaf53564599861a4335e93ec988b7b
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Nov 15 20:04:35 EST 2024

posix platform: remove unused macros

--- a/posix/platform.h
+++ b/posix/platform.h
@@ -63,18 +63,6 @@
 #define __likely(x) __builtin_expect(!!(x), 1)
 #endif
 
-#ifdef HAVE_BYTESWAP
-#include <byteswap.h>
-#else
-#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)
-#endif
-
 #define PATHSEP '/'
 #define PATHSEPSTRING "/"
 #define PATHLISTSEP ':'
@@ -89,7 +77,3 @@
 
 #include "mp.h"
 #include "utf.h"
-
-#ifndef HAVE_BITREVERSE32
-uint32_t __builtin_bitreverse32(uint32_t x);
-#endif