Revision 4caf9db3 host/include/uhd/utils/byteswap.ipp

b/host/include/uhd/utils/byteswap.ipp
117 117
    #endif
118 118
}
119 119

  
120
template<typename T> UHD_INLINE T uhd::wtohx(T num){
121
    #ifdef BOOST_BIG_ENDIAN
122
        return uhd::byteswap(num);
123
    #else
124
        return num;
125
    #endif
126
}
127

  
128
template<typename T> UHD_INLINE T uhd::htowx(T num){
129
    #ifdef BOOST_BIG_ENDIAN
130
        return uhd::byteswap(num);
131
    #else
132
        return num;
133
    #endif
134
}
135

  
120 136
#endif /* INCLUDED_UHD_UTILS_BYTESWAP_IPP */

Also available in: Unified diff