Author: tkreuzer
Date: Thu Jul 22 18:29:54 2010
New Revision: 48189
URL:
http://svn.reactos.org/svn/reactos?rev=48189&view=rev
Log:
reduce diff to trunk
Modified:
branches/ros-amd64-bringup/reactos/lib/drivers/oskittcp/include/freebsd/src/sys/machine/endian.h
Modified:
branches/ros-amd64-bringup/reactos/lib/drivers/oskittcp/include/freebsd/src/sys/machine/endian.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/d…
==============================================================================
---
branches/ros-amd64-bringup/reactos/lib/drivers/oskittcp/include/freebsd/src/sys/machine/endian.h
[iso-8859-1] (original)
+++
branches/ros-amd64-bringup/reactos/lib/drivers/oskittcp/include/freebsd/src/sys/machine/endian.h
[iso-8859-1] Thu Jul 22 18:29:54 2010
@@ -56,25 +56,8 @@
#include <sys/cdefs.h>
#endif
-static inline unsigned long __byte_swap_long ( unsigned long i )
-{
- char dst[4];
- char* src = (char*)&i;
- dst[0] = src[3];
- dst[1] = src[2];
- dst[2] = src[1];
- dst[3] = src[0];
- return *(unsigned long*)&dst[0];
-}
-
-static inline unsigned short __byte_swap_word ( unsigned short i )
-{
- char dst[2];
- char* src = (char*)&i;
- dst[0] = src[1];
- dst[1] = src[0];
- return *(unsigned short*)&dst[0];
-}
+#define __byte_swap_long RtlUlongByteSwap
+#define __byte_swap_word RtlUshortByteSwap
/*
* Macros for network/external number representation conversion.