From 2966eac64f549bb5f5f79ddace14dd0bc59c3270 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 22 Mar 2019 15:50:15 -0700 Subject: Get rid of ZT_FAST_MEMCPY because this is not really needed. --- node/Utils.hpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'node/Utils.hpp') diff --git a/node/Utils.hpp b/node/Utils.hpp index 60393a34..86db8b02 100644 --- a/node/Utils.hpp +++ b/node/Utils.hpp @@ -44,44 +44,6 @@ #include "Constants.hpp" -#ifdef __LINUX__ -//#if (defined(_MSC_VER) || defined(__GNUC__)) && (defined(__amd64) || defined(__amd64__) || defined(__x86_64) || defined(__x86_64__) || defined(__AMD64) || defined(__AMD64__) || defined(_M_X64)) -#if 0 -#include -static inline void ZT_FAST_MEMCPY(void *a,const void *b,unsigned long k) -{ - char *aa = reinterpret_cast(a); - const char *bb = reinterpret_cast(b); - while (k >= 64) { - __m128 t1 = _mm_loadu_ps(reinterpret_cast(bb)); - __m128 t2 = _mm_loadu_ps(reinterpret_cast(bb + 16)); - __m128 t3 = _mm_loadu_ps(reinterpret_cast(bb + 32)); - __m128 t4 = _mm_loadu_ps(reinterpret_cast(bb + 48)); - _mm_storeu_ps(reinterpret_cast(aa),t1); - _mm_storeu_ps(reinterpret_cast(aa + 16),t2); - _mm_storeu_ps(reinterpret_cast(aa + 32),t3); - _mm_storeu_ps(reinterpret_cast(aa + 48),t4); - bb += 64; - aa += 64; - k -= 64; - } - while (k >= 16) { - __m128 t1 = _mm_loadu_ps(reinterpret_cast(bb)); - _mm_storeu_ps(reinterpret_cast(aa),t1); - bb += 16; - aa += 16; - k -= 16; - } - for(unsigned long i=0;i