From 11e2d407ce4a45da8c6981abfd34883cb9174840 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 7 Jun 2010 15:10:37 -0700 Subject: Created a common usrp dsp utils to handle register word calculations. (also switched to boost endian define to avoid c compiler check) --- host/lib/transport/convert_types.cpp | 3 ++- host/lib/transport/gen_vrt.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'host/lib/transport') diff --git a/host/lib/transport/convert_types.cpp b/host/lib/transport/convert_types.cpp index 43503025a..374479eee 100644 --- a/host/lib/transport/convert_types.cpp +++ b/host/lib/transport/convert_types.cpp @@ -20,6 +20,7 @@ #include #include //endianness conversion #include +#include #include using namespace uhd; @@ -44,7 +45,7 @@ static const float floats_per_short = float(1.0/shorts_per_float); } // set a boolean flag that indicates the endianess -#ifdef HAVE_BIG_ENDIAN +#ifdef BOOST_BIG_ENDIAN static const bool is_big_endian = true; #else static const bool is_big_endian = false; diff --git a/host/lib/transport/gen_vrt.py b/host/lib/transport/gen_vrt.py index 1417240ab..3279ae225 100755 --- a/host/lib/transport/gen_vrt.py +++ b/host/lib/transport/gen_vrt.py @@ -33,10 +33,11 @@ TMPL_TEXT = """ \#include \#include +\#include \#include //define the endian macros to convert integers -\#ifdef HAVE_BIG_ENDIAN +\#ifdef BOOST_BIG_ENDIAN \#define BE_MACRO(x) (x) \#define LE_MACRO(x) uhd::byteswap(x) \#else -- cgit v1.2.3