1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/devel/firmware-utils/files/patch-freebsd.h
Eitan Adler 5a32450718 A collection of utilities to create firmware images for embedded devices,
including many wireless routers from many vendors.

The utilities are collected and maintained by the OpenWrt router project.

WWW: http://www.openwrt.org/

PR:		ports/163537
Submitted by:	Stefan Bethke <stb@lassitu.de>
Feature safe:	yes
2011-12-25 05:10:28 +00:00

13 lines
357 B
C

--- /dev/null 2011-12-22 15:12:10.000000000 +0100
+++ freebsd.h 2011-12-22 15:09:36.970404879 +0100
@@ -0,0 +1,9 @@
+/*
+ *
+ */
+
+#define bswap_8(x) ((x) & 0xff)
+#define bswap_16(x) ((bswap_8(x) << 8) | bswap_8((x) >> 8))
+#define bswap_32(x) ((bswap_16(x) << 16) | bswap_16((x) >> 16))
+#define bswap_64(x) ((bswap_32(x) << 32) | bswap_32((x) >> 32))
+