Returns a vector containing the result of dividing each element of a by the corresponding element of b.
d=vec_swdivs(a, b)
d=vec_swdivs_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_swdivs_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 double-precision elements of a and b are first truncated to single-precision values. The result of dividing the single-precision elements of a by the corresponding single-precision elements of b is then converted to double precision and saved in the corresponding elements of the result.
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] = (double) ( (float) a[0] / (float) b[0] )
d[1] = (double) ( (float) a[1] / (float) b[1] )
d[2] = (double) ( (float) a[2] / (float) b[2] )
d[3] = (double) ( (float) a[3] / (float) 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)