SDL_SSE4_2_INTRINSICS(3)

πŸ’– SDL_SSE4_2_INTRINSICS πŸ’–

okay bestie, so this is a page from the SDL3 functions manual, and today's main character is SDL_SSE4_2_INTRINSICS β€” a macro that only exists when your compiler is out here supporting Intel SSE4.2 intrinsics. she's conditional, she's exclusive, she's giving "you either get me or you don't." πŸ’…


✨ NAME ✨

SDL_SSE4_2_INTRINSICS β€” defined if (and only if) the compiler supports Intel SSE4.2 intrinsics. if and only if, bestie, that's a whole biconditional, we love a strict queen πŸ‘‘


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_intrin.h>

#define SDL_SSE4_2_INTRINSICS 1

like, that's the whole vibe. include the header, and if the stars align (and your compiler agrees), boom, she's 1. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: if this macro is defined, SDL will have already included <nmmintrin.h> for you. no cap. you don't have to do it yourself, she already did it. it's giving "I got you, babes." 🫢

heads up though: this is all conditional. if the macro is not defined, none of that happened, so don't go using SSE4.2 intrinsics like they're just gonna be there. vibe check your preprocessor first. 😭

🌈 AVAILABILITY 🌈

this macro is available since SDL 3.2.0. so if you're on something older, sorry bestie, she wasn't born yet. πŸ™ˆ


πŸŽ€ SEE ALSO πŸŽ€

the whole intrinsic family reunion, they're all iconic, go say hi:


and that's the page!! this one came to you from Simple Directmedia Layer, SDL 3.4.18 β€” tysm for reading, drink some water, compile with -O2, and I'll see you in the next manpage. mwah πŸ’‹πŸ’–βœ¨

πŸ“¦ where this page comes from