vec_splat_u16

Purpose

Returns a vector of which all the elements are set to a given value.

Syntax

d=vec_splat_u16(a)

Result and argument types

The following table describes the types of the returned value and the function argument.

Table 1. Types of the returned value and function argument
d a1
vector unsigned short signed int
Note:
  1. a must be a signed literal with a value in the range -16 to 15 inclusive.

Result value

The bit pattern of a is interpreted as an unsigned value. Each element of the result is given this value.