Author: gdt
Date: 2007-05-14 08:16:44 -0600 (Mon, 14 May 2007)
New Revision: 5465
Modified:
gnuradio/trunk/usrp/ChangeLog
gnuradio/trunk/usrp/host/lib/legacy/usrp_bytesex.h
Log:
2007-05-14 Greg Troxel <Greg Troxel <[EMAIL PROTECTED]>>
* host/lib/legacy/usrp_bytesex.h: Fix typo in portability code.
Add #warning that it is non-portable.
Modified: gnuradio/trunk/usrp/ChangeLog
===================================================================
--- gnuradio/trunk/usrp/ChangeLog 2007-05-14 14:12:11 UTC (rev 5464)
+++ gnuradio/trunk/usrp/ChangeLog 2007-05-14 14:16:44 UTC (rev 5465)
@@ -1,3 +1,8 @@
+2007-05-14 Greg Troxel <Greg Troxel <[EMAIL PROTECTED]>>
+
+ * host/lib/legacy/usrp_bytesex.h: Fix typo in portability code.
+ Add #warning that it is non-portable.
+
2006-10-10 Greg Troxel <[EMAIL PROTECTED]>
* firmware/include/Makefile.am: avoid nonportable use of $< (first
Modified: gnuradio/trunk/usrp/host/lib/legacy/usrp_bytesex.h
===================================================================
--- gnuradio/trunk/usrp/host/lib/legacy/usrp_bytesex.h 2007-05-14 14:12:11 UTC
(rev 5464)
+++ gnuradio/trunk/usrp/host/lib/legacy/usrp_bytesex.h 2007-05-14 14:16:44 UTC
(rev 5465)
@@ -33,6 +33,9 @@
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#else
+
+#warning Using non-portable code (likely wrong other than ILP32).
+
static inline unsigned short int
bswap_16 (unsigned short int x)
{
@@ -40,7 +43,7 @@
}
static inline unsigned int
-bswap32 (unsigned int x)
+bswap_32 (unsigned int x)
{
return ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) \
| (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24));
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio