-
-
Notifications
You must be signed in to change notification settings - Fork 594
/
test10445.d
53 lines (45 loc) · 845 Bytes
/
test10445.d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
*/
import core.simd;
int main()
{
version (D_SIMD)
{
{
auto m = ubyte16.max;
auto n = cast(ubyte16)ubyte.max;
assert(m.array == n.array);
}
{
auto m = ubyte16.min;
auto n = cast(ubyte16)ubyte.min;
assert(m.array == n.array);
}
{
auto m = float4.max;
auto n = cast(float4)float.max;
assert(m.array == n.array);
}
{
auto m = float4.min_normal;
auto n = cast(float4)float.min_normal;
assert(m.array == n.array);
}
{
auto m = float4.epsilon;
auto n = cast(float4)float.epsilon;
assert(m.array == n.array);
}
{
auto m = float4.infinity;
auto n = cast(float4)float.infinity;
assert(m.array == n.array);
}
{
auto m = float4.nan;
auto n = cast(float4)float.nan;
assert(m.array != n.array);
}
}
return 0;
}