17 #ifndef __RIPLEY_SYSTEM_DEP_H__ 18 #define __RIPLEY_SYSTEM_DEP_H__ 20 #define RIPLEY_DLL_API 23 # ifndef RIPLEY_STATIC_LIB 24 # undef RIPLEY_DLL_API 25 # ifdef RIPLEY_EXPORTS 26 # define RIPLEY_DLL_API __declspec(dllexport) 28 # define RIPLEY_DLL_API __declspec(dllimport) 33 #include <escript/DataTypes.h> 37 #include <boost/detail/endian.hpp> 60 unsigned long* v =
reinterpret_cast<unsigned long*
>(val);
61 *v = _byteswap_ulong(*v);
66 unsigned __int64* v =
reinterpret_cast<unsigned __int64*
>(val);
67 *v = _byteswap_uint64(*v);
77 # include <byteswap.h> 78 #elif HAVE_SYS_ENDIAN_H 79 # include <sys/endian.h> 81 # define bswap_32(D) bswap32((D)) 84 # define bswap_64(D) bswap64((D)) 86 #elif HAVE_OSBYTEORDER_H 87 # include <libkern/OSByteOrder.h> 88 # define bswap_32 OSSwapInt32 89 # define bswap_64 OSSwapInt64 90 #else // uh oh, we can't swap bytes... 91 # define bswap_32(D) (D) 92 # define bswap_64(D) (D) 93 #endif // header selection 98 unsigned int* v =
reinterpret_cast<unsigned int*
>(val);
105 uint64_t* v =
reinterpret_cast<uint64_t*
>(val);
114 #endif // __RIPLEY_SYSTEM_DEP_H__ Definition: ripley/src/system_dep.h:50
char * byte_swap64(char *val)
Definition: ripley/src/system_dep.h:103
#define bswap_64(D)
Definition: ripley/src/system_dep.h:92
Definition: ripley/src/system_dep.h:48
Definition: ripley/src/system_dep.h:44
char * byte_swap32(char *val)
Definition: ripley/src/system_dep.h:96
Definition: ripley/src/system_dep.h:43
#define bswap_32(D)
Definition: ripley/src/system_dep.h:91
Definition: ripley/src/AbstractAssembler.h:25
Definition: ripley/src/system_dep.h:49
Definition: ripley/src/system_dep.h:42