We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b91bdf commit a7ade4aCopy full SHA for a7ade4a
1 file changed
src/gpuarray/util.h
@@ -99,18 +99,16 @@ GPUARRAY_PUBLIC void gpuarray_elemwise_collapse(unsigned int n,
99
size_t *dim, ssize_t **strs);
100
101
102
-typedef uint16_t ga_half_t;
103
-
104
/* code strongly inspired from
105
https://github.com/numpy/numpy/blob/master/numpy/core/src/npymath/halffloat.c#L246 */
106
107
-static inline ga_half_t ga_float2half(float f) {
+static inline half_t ga_float2half(float f) {
108
union {
109
float f;
110
uint32_t bits;
111
} bf;
112
113
- ga_half_t h;
+ half_t h;
114
uint16_t bits;
115
} bh;
116
0 commit comments