mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-02 13:13:17 +00:00
Currently we find SSE3 and SSE4.1 code mixed togehter along with generic code in one file. This introduces the risk that the compiler exidantly mixes SSE4.1 instructions into an SSE3, or even worse into a generic code path. This commit splits the SSE3 and SSE4.1 code into separate files and compiles them with the matching target options. Change-Id: I846e190e92f1258cd412d1b2d79b539e204e04b3
19 lines
625 B
Makefile
19 lines
625 B
Makefile
all: main.o convolve_base.o convolve.o convolve_sse_3.o
|
|
gcc -g -Wall ./*.o -o convtest -losmocore
|
|
|
|
clean:
|
|
rm -f ./*.o
|
|
rm -f ./convtest
|
|
|
|
main.o: main.c
|
|
gcc -g -Wall -c main.c
|
|
|
|
convolve_base.o: ../../Transceiver52M/common/convolve_base.c
|
|
gcc -std=c99 -c ../../Transceiver52M/common/convolve_base.c
|
|
|
|
convolve.o: ../../Transceiver52M/x86/convolve.c
|
|
gcc -std=c99 -c ../../Transceiver52M/x86/convolve.c -I ../../Transceiver52M/common/ -msse3 -DHAVE_SSE3
|
|
|
|
convolve_sse_3.o: ../../Transceiver52M/x86/convolve_sse_3.c
|
|
gcc -std=c99 -c ../../Transceiver52M/x86/convolve_sse_3.c -I ../../Transceiver52M/common/ -msse3 -DHAVE_SSE3
|