|
| 1 | +#ifndef THC_GENERIC_FILE |
| 2 | +#error "You must define THC_GENERIC_FILE before including THGenerateAllTypes.h" |
| 3 | +#endif |
| 4 | + |
| 5 | +#define THCTypeIdxByte 1 |
| 6 | +#define THCTypeIdxChar 2 |
| 7 | +#define THCTypeIdxShort 3 |
| 8 | +#define THCTypeIdxInt 4 |
| 9 | +#define THCTypeIdxLong 5 |
| 10 | +#define THCTypeIdxFloat 6 |
| 11 | +#define THCTypeIdxDouble 7 |
| 12 | +#define THCTypeIdx_(T) TH_CONCAT_2(THCTypeIdx,T) |
| 13 | + |
| 14 | +#define real unsigned char |
| 15 | +#define accreal long |
| 16 | +#define Real Byte |
| 17 | +#define CReal CudaByte |
| 18 | +#define THC_REAL_IS_BYTE |
| 19 | +#line 1 THC_GENERIC_FILE |
| 20 | +/*#line 1 "THByteStorage.h"*/ |
| 21 | +#include THC_GENERIC_FILE |
| 22 | +#undef real |
| 23 | +#undef accreal |
| 24 | +#undef Real |
| 25 | +#undef CReal |
| 26 | +#undef THC_REAL_IS_BYTE |
| 27 | + |
| 28 | +#define real char |
| 29 | +#define accreal long |
| 30 | +#define Real Char |
| 31 | +#define CReal CudaChar |
| 32 | +#define THC_REAL_IS_CHAR |
| 33 | +#line 1 THC_GENERIC_FILE |
| 34 | +#include THC_GENERIC_FILE |
| 35 | +#undef real |
| 36 | +#undef accreal |
| 37 | +#undef Real |
| 38 | +#undef CReal |
| 39 | +#undef THC_REAL_IS_CHAR |
| 40 | + |
| 41 | +#define real short |
| 42 | +#define accreal long |
| 43 | +#define Real Short |
| 44 | +#define CReal CudaShort |
| 45 | +#define THC_REAL_IS_SHORT |
| 46 | +#line 1 THC_GENERIC_FILE |
| 47 | +#include THC_GENERIC_FILE |
| 48 | +#undef real |
| 49 | +#undef accreal |
| 50 | +#undef Real |
| 51 | +#undef CReal |
| 52 | +#undef THC_REAL_IS_SHORT |
| 53 | + |
| 54 | +#define real int |
| 55 | +#define accreal long |
| 56 | +#define Real Int |
| 57 | +#define CReal CudaInt |
| 58 | +#define THC_REAL_IS_INT |
| 59 | +#line 1 THC_GENERIC_FILE |
| 60 | +#include THC_GENERIC_FILE |
| 61 | +#undef real |
| 62 | +#undef accreal |
| 63 | +#undef Real |
| 64 | +#undef CReal |
| 65 | +#undef THC_REAL_IS_INT |
| 66 | + |
| 67 | +#define real long |
| 68 | +#define accreal long |
| 69 | +#define Real Long |
| 70 | +#define CReal CudaLong |
| 71 | +#define THC_REAL_IS_LONG |
| 72 | +#line 1 THC_GENERIC_FILE |
| 73 | +#include THC_GENERIC_FILE |
| 74 | +#undef real |
| 75 | +#undef accreal |
| 76 | +#undef Real |
| 77 | +#undef CReal |
| 78 | +#undef THC_REAL_IS_LONG |
| 79 | + |
| 80 | +#define real float |
| 81 | +#define accreal double |
| 82 | +#define Real Float |
| 83 | +#define CReal Cuda |
| 84 | +#define THC_REAL_IS_FLOAT |
| 85 | +#line 1 THC_GENERIC_FILE |
| 86 | +#include THC_GENERIC_FILE |
| 87 | +#undef real |
| 88 | +#undef accreal |
| 89 | +#undef Real |
| 90 | +#undef CReal |
| 91 | +#undef THC_REAL_IS_FLOAT |
| 92 | + |
| 93 | +#define real double |
| 94 | +#define accreal double |
| 95 | +#define Real Double |
| 96 | +#define CReal CudaDouble |
| 97 | +#define THC_REAL_IS_DOUBLE |
| 98 | +#line 1 THC_GENERIC_FILE |
| 99 | +#include THC_GENERIC_FILE |
| 100 | +#undef real |
| 101 | +#undef accreal |
| 102 | +#undef Real |
| 103 | +#undef CReal |
| 104 | +#undef THC_REAL_IS_DOUBLE |
| 105 | + |
| 106 | +#undef THCTypeIdxByte |
| 107 | +#undef THCTypeIdxChar |
| 108 | +#undef THCTypeIdxShort |
| 109 | +#undef THCTypeIdxInt |
| 110 | +#undef THCTypeIdxLong |
| 111 | +#undef THCTypeIdxFloat |
| 112 | +#undef THCTypeIdxDouble |
| 113 | + |
| 114 | +#undef THC_GENERIC_FILE |
0 commit comments