diff options
Diffstat (limited to 'lib/THC/THCGenerateAllTypes.h')
-rw-r--r-- | lib/THC/THCGenerateAllTypes.h | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/lib/THC/THCGenerateAllTypes.h b/lib/THC/THCGenerateAllTypes.h new file mode 100644 index 0000000..4793d06 --- /dev/null +++ b/lib/THC/THCGenerateAllTypes.h @@ -0,0 +1,114 @@ +#ifndef THC_GENERIC_FILE +#error "You must define THC_GENERIC_FILE before including THGenerateAllTypes.h" +#endif + +#define THCTypeIdxByte 1 +#define THCTypeIdxChar 2 +#define THCTypeIdxShort 3 +#define THCTypeIdxInt 4 +#define THCTypeIdxLong 5 +#define THCTypeIdxFloat 6 +#define THCTypeIdxDouble 7 +#define THCTypeIdx_(T) TH_CONCAT_2(THCTypeIdx,T) + +#define real unsigned char +#define accreal long +#define Real Byte +#define CReal CudaByte +#define THC_REAL_IS_BYTE +#line 1 THC_GENERIC_FILE +/*#line 1 "THByteStorage.h"*/ +#include THC_GENERIC_FILE +#undef real +#undef accreal +#undef Real +#undef CReal +#undef THC_REAL_IS_BYTE + +#define real char +#define accreal long +#define Real Char +#define CReal CudaChar +#define THC_REAL_IS_CHAR +#line 1 THC_GENERIC_FILE +#include THC_GENERIC_FILE +#undef real +#undef accreal +#undef Real +#undef CReal +#undef THC_REAL_IS_CHAR + +#define real short +#define accreal long +#define Real Short +#define CReal CudaShort +#define THC_REAL_IS_SHORT +#line 1 THC_GENERIC_FILE +#include THC_GENERIC_FILE +#undef real +#undef accreal +#undef Real +#undef CReal +#undef THC_REAL_IS_SHORT + +#define real int +#define accreal long +#define Real Int +#define CReal CudaInt +#define THC_REAL_IS_INT +#line 1 THC_GENERIC_FILE +#include THC_GENERIC_FILE +#undef real +#undef accreal +#undef Real +#undef CReal +#undef THC_REAL_IS_INT + +#define real long +#define accreal long +#define Real Long +#define CReal CudaLong +#define THC_REAL_IS_LONG +#line 1 THC_GENERIC_FILE +#include THC_GENERIC_FILE +#undef real +#undef accreal +#undef Real +#undef CReal +#undef THC_REAL_IS_LONG + +#define real float +#define accreal double +#define Real Float +#define CReal Cuda +#define THC_REAL_IS_FLOAT +#line 1 THC_GENERIC_FILE +#include THC_GENERIC_FILE +#undef real +#undef accreal +#undef Real +#undef CReal +#undef THC_REAL_IS_FLOAT + +#define real double +#define accreal double +#define Real Double +#define CReal CudaDouble +#define THC_REAL_IS_DOUBLE +#line 1 THC_GENERIC_FILE +#include THC_GENERIC_FILE +#undef real +#undef accreal +#undef Real +#undef CReal +#undef THC_REAL_IS_DOUBLE + +#undef THCTypeIdxByte +#undef THCTypeIdxChar +#undef THCTypeIdxShort +#undef THCTypeIdxInt +#undef THCTypeIdxLong +#undef THCTypeIdxFloat +#undef THCTypeIdxDouble + +#undef THC_GENERIC_FILE |