Returns a vector containing the result of dividing each element of a by the corresponding element of b.
d=vec_swdiv(a, b)
d=vec_swdiv_nochk(a, b)
The following table describes the types of the returned value and the function arguments.
d | a | b |
---|---|---|
vector4double | vector4double | vector4double |
For vec_swdiv_nochk, the compiler does not check the validity of the arguments. You must ensure that the following conditions are satisfied where x represents each element of a and y represents the corresponding element of b:
The values of the elements of the result are obtained by dividing the elements of a by the corresponding elements of b.
When the following options are used, the result is bitwise identical to the IEEE division.
Otherwise, the result might differ slightly from the IEEE division.
d[0] = a[0] / b[0]
d[1] = a[1] / b[1]
d[2] = a[2] / b[2]
d[3] = a[3] / b[3]
a = (50.0, 1.0, 30.0, 40.0)
b = (10.0, 5.0, -1.0, 80.0)
d: ( 5.0, 0.2, -30.0, 0.5)