Quickly Porting Inline SSE/SSE2 Applications
Symptom
Some applications use the GCC functions implemented by SSE/SSE2. However, GCC does not provide the functions of the ARM64 platform version. Therefore, the functions for the ARM64 platform need to be implemented.
Procedure
Some functions of the ARM64 platform are implemented by certain open source code. You can download the code from https://github.com/open-estuary/sse2neon.git.
Perform the following operations:
- Copy the SSE2NEON.h file in the downloaded project to the project to be ported.
- Delete the following code from the source code file:
#include <xmmintrin.h>
#include <emmintrin.h>
- Add the header file SSE2NEON.h to the source code.
Parent topic: Source Code Modification