The R Project SVN R

Rev

Rev 83452 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83452 Rev 84088
Line 112... Line 112...
112
#ifdef _LIBC
112
#ifdef _LIBC
113
# include <byteswap.h>
113
# include <byteswap.h>
114
# define SWAP(i) bswap_32 (i)
114
# define SWAP(i) bswap_32 (i)
115
#else
115
#else
116
static inline nls_uint32
116
static inline nls_uint32
117
# ifdef __cplusplus
117
//# ifdef __cplusplus
118
SWAP (nls_uint32 i)
118
SWAP (nls_uint32 i)
119
# else
119
//# else
120
SWAP (i)
120
//SWAP (i)
121
     nls_uint32 i;
121
//     nls_uint32 i;
122
# endif
122
//# endif
123
{
123
{
124
  return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
124
  return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
125
}
125
}
126
#endif
126
#endif
127
 
127