Skip to content

Commit

Permalink
improve optimisations for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechnobear committed Feb 22, 2018
1 parent d75dd24 commit a476cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ elseif (UNIX)
message(STATUS "BELA optimized")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -ftree-vectorize --fast-math")
else ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a -mfpu=neon -mfloat-abi=hard -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -fPIC")
endif (BELA)
else ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST")
Expand Down

2 comments on commit a476cfc

@giuliomoro
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious what ARM devices this improves the performance on ... ?

@TheTechnobear
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 years ago, so hard to say :)
I’d guess I did it for rPI at the time …. and probably had read vfp was preferred choice.
( possibly in situations where doubles are used … I don’t use doubles but some 3rd party code might)

Please sign in to comment.