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 π
SDL_AVX_INTRINSICS(3)β the littler sibling πSDL_AVX512F_INTRINSICS(3)β the big flex one π₯
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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms