1{{simdpp/title|make_int}}
2{{misc/navbar}}
3{{dcl begin}}
4{{dcl | num=1 |
5template<class V>
6V make_int( int64_t v0 );
7}}
8{{dcl | num=1 |
9template<class V>
10V make_int( int64_t v0, int64_t v1 );
11}}
12{{dcl | num=1 |
13template<class V>
14V make_int( int64_t v0, int64_t v1, int64_t v2, int64_t v3 );
15}}
16{{dcl | num=1 |
17template<class V>
18V make_int( int64_t v0, int64_t v1, ... , int64_t v7 );
19}}
20{{dcl | num=1 |
21template<class V>
22V make_int( int64_t v0, int64_t v1, ... , int64_t v15 );
23}}
24{{dcl | num=2 |
25_DETAIL_ make_int( int64_t v0 );
26}}
27{{dcl | num=2 |
28_DETAIL_ make_int( int64_t v0, int64_t v1 );
29}}
30{{dcl | num=2 |
31_DETAIL_ make_int( int64_t v0, int64_t v1, int64_t v2, int64_t v3 );
32}}
33{{dcl | num=2 |
34_DETAIL_ make_int( int64_t v0, int64_t v1, ... , int64_t v7 );
35}}
36{{dcl | num=2 |
37_DETAIL_ make_int( int64_t v0, int64_t v1, ... , int64_t v15 );
38}}
39{{dcl end}}
40
41Creates a vector from unsigned integer values known at compile-time.
42
43The values passed to this function are converted using standard conversions to the element type of the resulting vector.  All conversions and other overhead is performed at compile-time thus even if the minimal optimization level is selected, the function results in a simple load from memory.
44
45The function is not guaranteed to have adequate performance if the arguments are not known at compile-time.
46
47If the vector has fewer elements than the number of the parameters this function accepts then the extra values are discarded.
48
49The first set of overloads loads to given non-mask vector type.
50
51The second set of overloads returns a value of unspecified type with which any non-mask vector can be initialized. E.g. {{c|1=int32<4> x = make_int(1, 2, 3, 4);}}
52
53===Parameters===
54{{par begin}}
55{{par | v0, ..., v15 | the values to initialize the vector to}}
56{{par end}}
57
58===Return value===
59(1) Vector that contains the given values.
60
61(2) An value of unspecified type that can initialize a vector with the given values as if the first version of the function was executed.
62
63===Equivalent operation===
64
651 parameter version
66{{source|1=
67r = [ v0 v0 v0 v0 ... v0 ]
68}}
69
702 parameters version
71{{source|1=
72r = [ v0 v1 v0 v1 ... v1 ]
73}}
74
754 parameters version
76{{source|1=
77r = [ v0 v1 v2 v3 ... v3 ]
78}}
79
808 parameters version
81{{source|1=
82r = [ v0 v1 .. v7 v0  ... v7 ]
83}}
84
85===See also===
86{{todo}}
87