diff --git a/internal/cgen/base/pixconv-submodule-x86-avx2.c b/internal/cgen/base/pixconv-submodule-x86-avx2.c index 4e50a806..a380decf 100644 --- a/internal/cgen/base/pixconv-submodule-x86-avx2.c +++ b/internal/cgen/base/pixconv-submodule-x86-avx2.c @@ -437,6 +437,9 @@ wuffs_base__pixel_swizzler__swizzle_ycc__convert_rgbx_x86_avx2( } } +#if defined(__GNUC__) && !defined(__clang__) +// No-op. +#else WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET("pclmul,popcnt,sse4.2,avx2") static const uint8_t* // wuffs_base__pixel_swizzler__swizzle_ycc__upsample_inv_h2v2_triangle_x86_avx2( @@ -636,5 +639,6 @@ wuffs_base__pixel_swizzler__swizzle_ycc__upsample_inv_h2v2_triangle_x86_avx2( return dst_ptr; } +#endif #endif // defined(WUFFS_BASE__CPU_ARCH__X86_64) // ‼ WUFFS MULTI-FILE SECTION -x86_avx2 diff --git a/internal/cgen/base/pixconv-submodule-ycck.c b/internal/cgen/base/pixconv-submodule-ycck.c index 2a67bb2e..be29c6f6 100644 --- a/internal/cgen/base/pixconv-submodule-ycck.c +++ b/internal/cgen/base/pixconv-submodule-ycck.c @@ -37,6 +37,9 @@ wuffs_base__pixel_swizzler__swizzle_ycc__convert_rgbx_x86_avx2( const uint8_t* up1, const uint8_t* up2); +#if defined(__GNUC__) && !defined(__clang__) +// No-op. +# else WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET("pclmul,popcnt,sse4.2,avx2") static const uint8_t* // wuffs_base__pixel_swizzler__swizzle_ycc__upsample_inv_h2v2_triangle_x86_avx2( @@ -47,6 +50,7 @@ wuffs_base__pixel_swizzler__swizzle_ycc__upsample_inv_h2v2_triangle_x86_avx2( uint32_t h1v2_bias_ignored, bool first_column, bool last_column); +#endif #endif // defined(WUFFS_BASE__CPU_ARCH__X86_64) // -------- diff --git a/release/c/wuffs-unsupported-snapshot.c b/release/c/wuffs-unsupported-snapshot.c index 79bd1c13..00bbd14f 100644 --- a/release/c/wuffs-unsupported-snapshot.c +++ b/release/c/wuffs-unsupported-snapshot.c @@ -23589,6 +23589,9 @@ wuffs_base__pixel_swizzler__swizzle_ycc__convert_rgbx_x86_avx2( const uint8_t* up1, const uint8_t* up2); +#if defined(__GNUC__) && !defined(__clang__) +// No-op. +# else WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET("pclmul,popcnt,sse4.2,avx2") static const uint8_t* // wuffs_base__pixel_swizzler__swizzle_ycc__upsample_inv_h2v2_triangle_x86_avx2( @@ -23599,6 +23602,7 @@ wuffs_base__pixel_swizzler__swizzle_ycc__upsample_inv_h2v2_triangle_x86_avx2( uint32_t h1v2_bias_ignored, bool first_column, bool last_column); +#endif #endif // defined(WUFFS_BASE__CPU_ARCH__X86_64) // -------- @@ -24963,6 +24967,9 @@ wuffs_base__pixel_swizzler__swizzle_ycc__convert_rgbx_x86_avx2( } } +#if defined(__GNUC__) && !defined(__clang__) +// No-op. +#else WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET("pclmul,popcnt,sse4.2,avx2") static const uint8_t* // wuffs_base__pixel_swizzler__swizzle_ycc__upsample_inv_h2v2_triangle_x86_avx2( @@ -25162,6 +25169,7 @@ wuffs_base__pixel_swizzler__swizzle_ycc__upsample_inv_h2v2_triangle_x86_avx2( return dst_ptr; } +#endif #endif // defined(WUFFS_BASE__CPU_ARCH__X86_64) // ‼ WUFFS MULTI-FILE SECTION -x86_avx2