1
0
mirror of https://github.com/JvanKatwijk/dabradio synced 2025-10-06 00:02:49 +02:00

split RPI2 RPI3 use of NEON

This commit is contained in:
JvanKatwijk
2018-04-21 11:10:38 +02:00
parent 7f9eb3e171
commit 44f9f58a9d
2 changed files with 26 additions and 7 deletions

View File

@@ -181,15 +181,26 @@ Audio samples are sent to an audio device using the portaudio library.
If you are compiling/running for an x64 based PC with SSE, then
you could set
```
#CONFIG += NEON
#CONFIG += NEON_RPI2
#CONFIG += NEON_RPI3
CONFIG += SSE
#CONFIG += NO_SSE
```
If you are compiling/running for an RPI2/3, and want to whether pr
not NEON instructions can be used, you could experiment with
If you are compiling/running for an RPI2, and want to check whether or
not NEON instructions can be used, you could set
```
CONFIG += NEON
CONFIG += NEON_RPI2
#CONFIG += NEON_RPI3
#CONFIG += SSE
#CONFIG += NO_SSE
```
If you are compiling/running for an RPI3, and want to check whether or
not NEON instructions can be used, you could set
```
#CONFIG += NEON_RPI2
CONFIG += NEON_RPI3
#CONFIG += SSE
#CONFIG += NO_SSE
```

View File

@@ -210,7 +210,9 @@ DEFINES += __THREADED_BACKEND
DEFINES += PRESET_NAME
#and these one is just experimental,
#CONFIG += NEON
#NO_SSE is always safe
#CONFIG += NEON_RPI2
#CONFIG += NEON_RPI3
#CONFIG += SSE
CONFIG += NO_SSE
}
@@ -324,12 +326,18 @@ qt-audio {
./src/output/Qt-audiodevice.cpp
}
NEON {
DEFINES += NEON_AVAILABLE
# for RPI2 use:
NEON_RPI2 {
DEFINES += NEON_AVAILABLE
QMAKE_CFLAGS += -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4
QMAKE_CXXFLAGS += -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4
HEADERS += ./src/backend/viterbi_768/spiral-neon.h
SOURCES += ./src/backend/viterbi_768/spiral-neon.c
}
# for RPI3 use:
NEON_RPI3 {
DEFINES += NEON_AVAILABLE
# QMAKE_CFLAGS += -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits
# QMAKE_CXXFLAGS += -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits
HEADERS += ./src/backend/viterbi_768/spiral-neon.h