diff options
author | Kenneth Heafield <github@kheafield.com> | 2020-08-17 14:18:33 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2020-08-17 14:18:33 +0300 |
commit | c23fcde6afd5540de2d1fa7c67ce10ca99527654 (patch) | |
tree | 9239e7cb047b6ede00aebdbcd1715e12eb2d001d | |
parent | 392ada9634c51d8c923f22ad5a5d2da4ecc52534 (diff) |
Old gcc doesn't like the using declarations for Quantizer
-rw-r--r-- | interleave.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interleave.h b/interleave.h index bcf4d68..4e36286 100644 --- a/interleave.h +++ b/interleave.h @@ -179,7 +179,7 @@ template <class Register> static inline void Transpose8InLane( // ... ... #define INTGEMM_PREPARE_B_8(target, QuantClass) \ target static inline void PrepareB(const float *input, int8_t *output_shadow, float quant_mult, Index rows, Index cols) { \ - using Quantizer = typename QuantClass; \ + typedef typename QuantClass Quantizer; \ using Register = typename Quantizer::Register; \ Quantizer q = Quantizer(quant_mult); \ /* Currently all multipliers have a stride of 8 columns.*/ \ @@ -214,7 +214,7 @@ target static inline void PrepareB(const float *input, int8_t *output_shadow, fl #define INTGEMM_PREPARE_B_16(target, QuantClass) \ target static inline void PrepareB(const float *input, int16_t *output_shadow, float quant_mult, Index rows, Index cols) { \ - using Quantizer = typename QuantClass; \ + typedef typename QuantClass Quantizer; \ using Register = typename Quantizer::Register; \ Quantizer q = Quantizer(quant_mult); \ assert(cols % 8 == 0); \ |