SDL_AVX2_INTRINSICS(3)

πŸ’– SDL_AVX2_INTRINSICS(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're talking about one (1) very specific macro and honestly? she's iconic. this is SDL_AVX2_INTRINSICS, and she's here to tell you whether your compiler is cool enough to do Intel AVX2 intrinsics. no cap.


✨ NAME ✨

SDL_AVX2_INTRINSICS β€” defined if (and only if) the compiler supports Intel AVX2 intrinsics. that "if and only if" is doing so much work fr fr, it's giving mathematically precise. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_intrin.h>

#define SDL_AVX2_INTRINSICS 1

look at her. short. sweet. main character energy. 🌸


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie: if this macro is defined, then SDL will have already included <immintrin.h>. like, she did it for you. you don't gotta lift a finger. the header's already in the group chat. 🫢

that's it. that's the whole vibe check. you just check whether the macro exists and you know your answer. ✨


πŸ‘‘ AVAILABILITY πŸ‘‘

this macro has been serving since SDL 3.2.0. so if you're on anything older… yeah, she wasn't born yet, sorry babe. 😭


🌈 SEE ALSO 🌈

go read those next, iykyk. ⭐


Simple Directmedia Layer πŸŽ€ SDL 3.4.18 πŸŽ€ SDL_AVX2_INTRINSICS(3)

and that's the whole page bestie!! brought to you by the Simple Directmedia Layer girlies, straight outta SDL 3.4.18 β€” mwah, go compile something cute πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from