From 2eb9a200525461f30fe3d21f399d91f525a09ba2 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Fri, 9 Sep 2022 11:22:53 +0100 Subject: [PATCH] There's no longer any good reason to do this; remove it --- src/common/sysutils.cpp | 37 ------------------------------------- src/common/sysutils.h | 2 -- src/faster/R2Stretcher.cpp | 7 ------- 3 files changed, 46 deletions(-) diff --git a/src/common/sysutils.cpp b/src/common/sysutils.cpp index 6f36ae0..ea08347 100644 --- a/src/common/sysutils.cpp +++ b/src/common/sysutils.cpp @@ -166,43 +166,6 @@ void gettimeofday(struct timeval *tv, void *tz) #endif -void system_specific_initialise() -{ -#if defined HAVE_IPP -#ifndef USE_IPP_DYNAMIC_LIBS -#if (IPP_VERSION_MAJOR < 9) - // This was removed in v9 - ippStaticInit(); -#endif -#endif - ippSetDenormAreZeros(1); -#elif defined HAVE_VDSP -#if defined __i386__ || defined __x86_64__ - fesetenv(FE_DFL_DISABLE_SSE_DENORMS_ENV); -#elif defined __arm64__ - fesetenv(FE_DFL_DISABLE_DENORMS_ENV); -#endif -#endif -#if defined __ARMEL__ - // ARM32 - static const unsigned int x = 0x04086060; - static const unsigned int y = 0x03000000; - int r; - asm volatile ( - "fmrx %0, fpscr \n\t" - "and %0, %0, %1 \n\t" - "orr %0, %0, %2 \n\t" - "fmxr fpscr, %0 \n\t" - : "=r"(r) - : "r"(x), "r"(y) - ); -#endif -} - -void system_specific_application_initialise() -{ -} - #ifdef _WIN32 void system_memorybarrier() { diff --git a/src/common/sysutils.h b/src/common/sysutils.h index 9bcdd9a..224bf5e 100644 --- a/src/common/sysutils.h +++ b/src/common/sysutils.h @@ -96,8 +96,6 @@ typedef double process_t; extern const char *system_get_platform_tag(); extern bool system_is_multiprocessor(); -extern void system_specific_initialise(); -extern void system_specific_application_initialise(); #ifdef _WIN32 struct timeval { long tv_sec; long tv_usec; }; diff --git a/src/faster/R2Stretcher.cpp b/src/faster/R2Stretcher.cpp index 2a6091d..f0a53ef 100644 --- a/src/faster/R2Stretcher.cpp +++ b/src/faster/R2Stretcher.cpp @@ -54,8 +54,6 @@ R2Stretcher::m_defaultIncrement = 256; const size_t R2Stretcher::m_defaultFftSize = 2048; -static bool _initialised = false; - R2Stretcher::R2Stretcher(size_t sampleRate, size_t channels, RubberBandStretcher::Options options, @@ -102,11 +100,6 @@ R2Stretcher::R2Stretcher(size_t sampleRate, m_baseFftSize(m_defaultFftSize) { Profiler profiler("R2Stretcher::R2Stretcher"); - - if (!_initialised) { - system_specific_initialise(); - _initialised = true; - } m_log.log(1, "R2Stretcher::R2Stretcher: rate, options", m_sampleRate, options);