hl2sdk/thirdparty/libspng/tests/target_clones.c
2025-02-19 18:36:16 -05:00

12 lines
233 B
C

/* This will only be available for GCC with glibc for the foreseeable future */
__attribute__((target_clones("default,avx2"))) int f(int x)
{
return x + 3;
}
int main(int argc, char **argv)
{
int y = f(39);
return 0;
}