1 write to _value
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
102
internal BFloat16(ushort value) =>
_value
= value;
30 references to _value
System.Private.CoreLib (30)
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (2)
951
internal static short BFloat16BitsToInt16(BFloat16 value) => (short)value.
_value
;
1009
internal static ushort BFloat16BitsToUInt16(BFloat16 value) => value.
_value
;
src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (28)
108
ushort bits =
_value
;
133
ushort bits =
_value
;
155
uint bits = value.
_value
;
163
uint bits = value.
_value
;
171
uint bits = value.
_value
;
178
uint bits = value.
_value
;
186
return (short)(value.
_value
) < 0;
193
return value.
_value
== NegativeInfinityBits;
201
uint bits = value.
_value
;
209
return value.
_value
== PositiveInfinityBits;
217
uint bits = value.
_value
;
224
uint bits = value.
_value
;
842
public static explicit operator float(BFloat16 value) => BitConverter.Int32BitsToSingle(value.
_value
<< 16);
873
ushort bits = value.
_value
;
909
return new BFloat16((ushort)(left.
_value
& right.
_value
));
915
return new BFloat16((ushort)(left.
_value
| right.
_value
));
921
return new BFloat16((ushort)(left.
_value
^ right.
_value
));
927
return new BFloat16((ushort)(~value.
_value
));
1103
uint bits = x.
_value
;
1136
uint bits = x.
_value
;
1304
uint xbits = value.
_value
;
1305
uint ybits = sign.
_value
;
1396
public static BFloat16 Abs(BFloat16 value) => new BFloat16((ushort)(value.
_value
& ~SignMask));
1474
public static bool IsPositive(BFloat16 value) => (short)(value.
_value
) >= 0;
2150
static ulong IBinaryFloatParseAndFormatInfo<BFloat16>.FloatToBits(BFloat16 value) => value.
_value
;