avx512/div: add 256-bit fallbacks
@@ -47,7 +47,11 @@ simde_mm512_div_ps (simde__m512 a, simde__m512 b) {
a_ = simde__m512_to_private(a),
b_ = simde__m512_to_private(b);
- #if defined(SIMDE_VECTOR_SUBSCRIPT_OPS)
+ #if SIMDE_NATURAL_VECTOR_SIZE_LE(256)
+ for (size_t i = 0 ; i < (sizeof(r_.m256) / sizeof(r_.m256[0])) ; i++) {
+ r_.m256[i] = simde_mm256_div_ps(a_.m256[i], b_.m256[i]);
+ }
+ #elif defined(SIMDE_VECTOR_SUBSCRIPT_OPS)
r_.f32 = a_.f32 / b_.f32;
#else
SIMDE_VECTORIZE
@@ -103,7 +107,11 @@ simde_mm512_div_pd (simde__m512d a, simde__m512d b) {
a_ = simde__m512d_to_private(a),
b_ = simde__m512d_to_private(b);
- #if defined(SIMDE_VECTOR_SUBSCRIPT_OPS)
+ #if SIMDE_NATURAL_VECTOR_SIZE_LE(256)
+ for (size_t i = 0 ; i < (sizeof(r_.m256d) / sizeof(r_.m256d[0])) ; i++) {
+ r_.m256d[i] = simde_mm256_div_pd(a_.m256d[i], b_.m256d[i]);
+ }
+ #elif defined(SIMDE_VECTOR_SUBSCRIPT_OPS)
r_.f64 = a_.f64 / b_.f64;
#else
SIMDE_VECTORIZE
