From 9ec211d18bddec789dba1eded7b5a8d677847cbc Mon Sep 17 00:00:00 2001 From: Michael Toutonghi Date: Fri, 6 Jul 2018 14:16:25 -0700 Subject: [PATCH] use portable load_constants --- src/crypto/verus_hash.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/crypto/verus_hash.cpp b/src/crypto/verus_hash.cpp index 459872be3..aeae9712b 100644 --- a/src/crypto/verus_hash.cpp +++ b/src/crypto/verus_hash.cpp @@ -97,16 +97,15 @@ void (*CVerusHashV2::haraka512Function)(unsigned char *out, const unsigned char void CVerusHashV2::init() { - // load and tweak the haraka constants - load_constants(); - load_constants_port(); - if (IsCPUVerusOptimized()) { + load_constants(); haraka512Function = &haraka512; } else { + // load and tweak the haraka constants + load_constants_port(); haraka512Function = &haraka512_port; } }