Lines 14-23
Link Here
|
14 |
set(ARCH arm) |
14 |
set(ARCH arm) |
15 |
set(NEON False) |
15 |
set(NEON False) |
16 |
set(NEON_FLAGS "-mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp") |
16 |
set(NEON_FLAGS "-mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp") |
17 |
elseif(CPU MATCHES "cortex-a7" OR CPU MATCHES "cortex-a53") |
17 |
elseif(CPU MATCHES "cortex-a7") |
18 |
set(ARCH arm) |
18 |
set(ARCH arm) |
19 |
set(NEON True) |
19 |
set(NEON True) |
20 |
set(NEON_FLAGS "-fPIC -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -mvectorize-with-neon-quad") |
20 |
set(NEON_FLAGS "-fPIC -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -mvectorize-with-neon-quad") |
|
|
21 |
elseif(CPU STREQUAL cortex-a53) |
22 |
set(ARCH arm) |
23 |
set(NEON True) |
24 |
set(NEON_FLAGS "-fPIC -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=crypto-neon-fp-armv8 -march=armv8-a+crc -funsafe-math-optimizations -mvectorize-with-neon-quad") |
21 |
else() |
25 |
else() |
22 |
message(SEND_ERROR "Unknown CPU: ${CPU}") |
26 |
message(SEND_ERROR "Unknown CPU: ${CPU}") |
23 |
endif() |
27 |
endif() |