arithScalarIntoSimd
private fn
size_t arithScalarIntoSimd(T, string op)(const(T)[] a, T scalar,
bool scalarOnLeft, T[] outValues) @trustedApplies op with a broadcast scalar in 32-byte core.simd blocks; the scalar tail is left to the caller.
Parameters
T | the element type |
op | the arithmetic operator text |
a | the operand |
scalar | the broadcast operand |
scalarOnLeft | true for scalar op a[i] |
outValues | the destination values |
Returns
the number of elements written (a multiple of the lanes).