mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-11-10 04:42:50 +01:00
3d7bf376fd
Tuning to enable ARM NEON SIMD performance improvements: - NEON detection in configure file - Remove manual loop unrolling, gcc autovectorization does better job without manually unrolled loops. - Avoid unaligned pointer accesses when using NEON
23 lines
597 B
Bash
Executable File
23 lines
597 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This script compiles SoundTouch dynamic-link library for GNU environment
|
|
# with wrapper functions that are easier to import to Java / Mono / etc
|
|
#
|
|
|
|
arch=$(uname -m)
|
|
flags=""
|
|
|
|
if [[ $arch == *"86"* ]]; then
|
|
# Intel x86/x64 architecture
|
|
flags="$flags -mstackrealign -msse"
|
|
|
|
if [[ $arch == *"_64" ]]; then
|
|
flags="$flags -fPIC"
|
|
fi
|
|
fi
|
|
|
|
echo "Building SoundTouchDLL for $arch with flags:$flags"
|
|
|
|
g++ -O3 -ffast-math -shared $flags -DDLL_EXPORTS -fvisibility=hidden -I../../include \
|
|
-I../SoundTouch -o SoundTouchDll.so SoundTouchDLL.cpp ../SoundTouch/*.cpp
|