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:
authorMateusz Chudyk <mateuszchudyk@gmail.com>2020-02-04 14:11:17 +0300
committerMateusz Chudyk <mateuszchudyk@gmail.com>2020-02-07 18:05:53 +0300
commitdcc3492af26cc8d4aaeb98d31263e97b2c86a4db (patch)
treef892c52cf773126a7c3524f1b378b866c67c0062
parentca66ffeb5b8a412ae9307715cd94d3350930a12e (diff)
Remove unused commented code
-rw-r--r--multiply.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/multiply.h b/multiply.h
index 1fc5ed5..abc224c 100644
--- a/multiply.h
+++ b/multiply.h
@@ -561,26 +561,6 @@ INTGEMM_SSSE3 inline static void InnerINTGEMM_SSSE3(
} \
} \
-
-// Find the maximum absolute value of packed float32s.
-/*
-template <class Register> inline static float MaxAbsoluteBackend(const float *begin_float, const float *end_float) {
- assert(end_float > begin_float);
- assert((end_float - begin_float) % (sizeof(Register) / sizeof(float)) == 0);
- const Register *begin = reinterpret_cast<const Register*>(begin_float);
- const Register *end = reinterpret_cast<const Register*>(end_float);
- // Get the sign bit.
- union {float f; int32_t i;} float_convert;
- float_convert.i = 0x7fffffff;
- Register and_me = set1_ps<Register>(float_convert.f);
- Register highest = and_ps(and_me, *begin);
- for (++begin; begin != end; ++begin) {
- Register reg = and_ps(and_me, *begin);
- highest = max_ps(highest, reg);
- }
-
- return MaxFloat32(highest);
-}*/
#define INTGEMM_MAXABSOLUTE(Register, target) \
target static float MaxAbsolute(const float *begin_float, const float *end_float) { \
assert(end_float > begin_float); \