Removing XEINLINE*.
This commit is contained in:
@@ -63,11 +63,11 @@ inline uint64_t Hash128to64(const uint128_t &x) {
|
||||
return b;
|
||||
}
|
||||
|
||||
XEFORCEINLINE uint64_t UNALIGNED_LOAD64(const char *p) {
|
||||
inline uint64_t UNALIGNED_LOAD64(const char *p) {
|
||||
const uint64_t *p64 = (const uint64_t *)p;
|
||||
return *p64;
|
||||
}
|
||||
XEFORCEINLINE uint32_t UNALIGNED_LOAD32(const char *p) {
|
||||
inline uint32_t UNALIGNED_LOAD32(const char *p) {
|
||||
const uint32_t *p32 = (const uint32_t *)p;
|
||||
return *p32;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ typedef enum {
|
||||
XE_GPU_SWIZZLE_R000 = XE_GPU_MAKE_SWIZZLE(R, 0, 0, 0),
|
||||
} XE_GPU_SWIZZLE;
|
||||
|
||||
XEFORCEINLINE uint32_t GpuSwap(uint32_t value, XE_GPU_ENDIAN endianness) {
|
||||
inline uint32_t GpuSwap(uint32_t value, XE_GPU_ENDIAN endianness) {
|
||||
switch (endianness) {
|
||||
default:
|
||||
case XE_GPU_ENDIAN_NONE: // No swap.
|
||||
@@ -89,11 +89,11 @@ XEFORCEINLINE uint32_t GpuSwap(uint32_t value, XE_GPU_ENDIAN endianness) {
|
||||
}
|
||||
}
|
||||
|
||||
XEFORCEINLINE uint32_t GpuToCpu(uint32_t p) {
|
||||
inline uint32_t GpuToCpu(uint32_t p) {
|
||||
return p;
|
||||
}
|
||||
|
||||
XEFORCEINLINE uint32_t GpuToCpu(uint32_t base, uint32_t p) {
|
||||
inline uint32_t GpuToCpu(uint32_t base, uint32_t p) {
|
||||
uint32_t upper = base & 0xFF000000;
|
||||
uint32_t lower = p & 0x00FFFFFF;
|
||||
return upper + lower;// -(((base >> 20) + 0x200) & 0x1000);
|
||||
|
||||
@@ -33,23 +33,6 @@
|
||||
class name; \
|
||||
} } } }
|
||||
|
||||
#if XE_COMPILER_MSVC
|
||||
// http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx
|
||||
#define XEFORCEINLINE static __forceinline
|
||||
#define XENOINLINE __declspec(noinline)
|
||||
#elif XE_COMPILER_GNUC
|
||||
// http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
|
||||
#if (__GNUC__ >= 4)
|
||||
#define XEFORCEINLINE static __inline__ __attribute__((always_inline))
|
||||
#else
|
||||
#define XEFORCEINLINE static __inline__
|
||||
#endif
|
||||
#define XENOINLINE
|
||||
#else
|
||||
#define XEFORCEINLINE
|
||||
#define XENOINLINE
|
||||
#endif // MSVC
|
||||
|
||||
#if XE_COMPILER_MSVC
|
||||
#define XEPACKEDSTRUCT(name, value) \
|
||||
__pragma(pack(push, 1)) struct name##_s value __pragma(pack(pop)); \
|
||||
|
||||
Reference in New Issue
Block a user