media/libsoundtouch/src/soundtouch_config.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 #include "mozilla/SSE.h"
     3 #ifdef MOZ_SAMPLE_TYPE_FLOAT32
     4 #define SOUNDTOUCH_FLOAT_SAMPLES 1
     5 #else
     6 #define SOUNDTOUCH_INTEGER_SAMPLES 1
     7 #endif
     9 #ifndef MOZILLA_PRESUME_SSE
    10 #ifdef MOZ_SAMPLE_TYPE_FLOAT32
    11 #define SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS 1
    12 #endif
    13 #endif
    15 #ifndef MOZILLA_PRESUME_MMX
    16 #ifdef MOZ_SAMPLE_TYPE_S16
    17 #define SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS 1
    18 #endif
    19 #endif

mercurial