-
|
What is the __m128 type that you're using in app_instrinsics.h ? |
Beta Was this translation helpful? Give feedback.
Answered by
bagaffey
Sep 9, 2025
Replies: 1 comment
-
|
That is a special data type for SSE intrinsics. This data type in particular, represents a 128 bit wide SIMD register on x86 arch and x86-64 CPUs that support streaming SIMD extensions (SSE). In the context of the SignOfF32() function, __m128 has 128 bits so it can hold a 4-single precision 32-bit float. Other related data types are __m128d for doubles and __m128i for an integer. Same bit length and one 128-bit wide register but for different datatypes. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
btgvesta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is a special data type for SSE intrinsics. This data type in particular, represents a 128 bit wide SIMD register on x86 arch and x86-64 CPUs that support streaming SIMD extensions (SSE).
In the context of the SignOfF32() function, __m128 has 128 bits so it can hold a 4-single precision 32-bit float.
Other related data types are __m128d for doubles and __m128i for an integer. Same bit length and one 128-bit wide register but for different datatypes.