Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2020-08-17 14:18:33 +0300
committerKenneth Heafield <github@kheafield.com>2020-08-17 14:18:33 +0300
commitc23fcde6afd5540de2d1fa7c67ce10ca99527654 (patch)
tree9239e7cb047b6ede00aebdbcd1715e12eb2d001d
parent392ada9634c51d8c923f22ad5a5d2da4ecc52534 (diff)
Old gcc doesn't like the using declarations for Quantizer
-rw-r--r--interleave.h4
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); \