Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Register.cs « Numerics « System « shared « System.Private.CoreLib « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a27e922b9d818a158df5db7d9b783d8b262f1aec (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Runtime.InteropServices;

namespace System.Numerics
{
    /// <summary>
    /// A structure describing the layout of an SSE2-sized register.
    /// Contains overlapping fields representing the set of valid numeric types.
    /// Allows the generic Vector'T struct to contain an explicit field layout.
    /// </summary>
    [StructLayout(LayoutKind.Explicit)]
    internal struct Register
    {
        #region Internal Storage Fields
        // Internal System.Byte Fields
        [FieldOffset(0)]
        internal Byte byte_0;
        [FieldOffset(1)]
        internal Byte byte_1;
        [FieldOffset(2)]
        internal Byte byte_2;
        [FieldOffset(3)]
        internal Byte byte_3;
        [FieldOffset(4)]
        internal Byte byte_4;
        [FieldOffset(5)]
        internal Byte byte_5;
        [FieldOffset(6)]
        internal Byte byte_6;
        [FieldOffset(7)]
        internal Byte byte_7;
        [FieldOffset(8)]
        internal Byte byte_8;
        [FieldOffset(9)]
        internal Byte byte_9;
        [FieldOffset(10)]
        internal Byte byte_10;
        [FieldOffset(11)]
        internal Byte byte_11;
        [FieldOffset(12)]
        internal Byte byte_12;
        [FieldOffset(13)]
        internal Byte byte_13;
        [FieldOffset(14)]
        internal Byte byte_14;
        [FieldOffset(15)]
        internal Byte byte_15;

        // Internal System.SByte Fields
        [FieldOffset(0)]
        internal SByte sbyte_0;
        [FieldOffset(1)]
        internal SByte sbyte_1;
        [FieldOffset(2)]
        internal SByte sbyte_2;
        [FieldOffset(3)]
        internal SByte sbyte_3;
        [FieldOffset(4)]
        internal SByte sbyte_4;
        [FieldOffset(5)]
        internal SByte sbyte_5;
        [FieldOffset(6)]
        internal SByte sbyte_6;
        [FieldOffset(7)]
        internal SByte sbyte_7;
        [FieldOffset(8)]
        internal SByte sbyte_8;
        [FieldOffset(9)]
        internal SByte sbyte_9;
        [FieldOffset(10)]
        internal SByte sbyte_10;
        [FieldOffset(11)]
        internal SByte sbyte_11;
        [FieldOffset(12)]
        internal SByte sbyte_12;
        [FieldOffset(13)]
        internal SByte sbyte_13;
        [FieldOffset(14)]
        internal SByte sbyte_14;
        [FieldOffset(15)]
        internal SByte sbyte_15;

        // Internal System.UInt16 Fields
        [FieldOffset(0)]
        internal UInt16 uint16_0;
        [FieldOffset(2)]
        internal UInt16 uint16_1;
        [FieldOffset(4)]
        internal UInt16 uint16_2;
        [FieldOffset(6)]
        internal UInt16 uint16_3;
        [FieldOffset(8)]
        internal UInt16 uint16_4;
        [FieldOffset(10)]
        internal UInt16 uint16_5;
        [FieldOffset(12)]
        internal UInt16 uint16_6;
        [FieldOffset(14)]
        internal UInt16 uint16_7;

        // Internal System.Int16 Fields
        [FieldOffset(0)]
        internal Int16 int16_0;
        [FieldOffset(2)]
        internal Int16 int16_1;
        [FieldOffset(4)]
        internal Int16 int16_2;
        [FieldOffset(6)]
        internal Int16 int16_3;
        [FieldOffset(8)]
        internal Int16 int16_4;
        [FieldOffset(10)]
        internal Int16 int16_5;
        [FieldOffset(12)]
        internal Int16 int16_6;
        [FieldOffset(14)]
        internal Int16 int16_7;

        // Internal System.UInt32 Fields
        [FieldOffset(0)]
        internal UInt32 uint32_0;
        [FieldOffset(4)]
        internal UInt32 uint32_1;
        [FieldOffset(8)]
        internal UInt32 uint32_2;
        [FieldOffset(12)]
        internal UInt32 uint32_3;

        // Internal System.Int32 Fields
        [FieldOffset(0)]
        internal Int32 int32_0;
        [FieldOffset(4)]
        internal Int32 int32_1;
        [FieldOffset(8)]
        internal Int32 int32_2;
        [FieldOffset(12)]
        internal Int32 int32_3;

        // Internal System.UInt64 Fields
        [FieldOffset(0)]
        internal UInt64 uint64_0;
        [FieldOffset(8)]
        internal UInt64 uint64_1;

        // Internal System.Int64 Fields
        [FieldOffset(0)]
        internal Int64 int64_0;
        [FieldOffset(8)]
        internal Int64 int64_1;

        // Internal System.Single Fields
        [FieldOffset(0)]
        internal Single single_0;
        [FieldOffset(4)]
        internal Single single_1;
        [FieldOffset(8)]
        internal Single single_2;
        [FieldOffset(12)]
        internal Single single_3;

        // Internal System.Double Fields
        [FieldOffset(0)]
        internal Double double_0;
        [FieldOffset(8)]
        internal Double double_1;

        #endregion Internal Storage Fields
    }
}