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:
19
README.md
19
README.md
@@ -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
|
||||
```
|
||||
|
14
dabradio.pro
14
dabradio.pro
@@ -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
|
||||
|
Reference in New Issue
Block a user