1 write to _value
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
100
internal BFloat16(ushort value) =>
_value
= value;
30 references to _value
System.Private.CoreLib (30)
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (2)
1010
public static short BFloat16ToInt16Bits(BFloat16 value) => (short)value.
_value
;
1081
public static ushort BFloat16ToUInt16Bits(BFloat16 value) => value.
_value
;
src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (28)
106
ushort bits =
_value
;
131
ushort bits =
_value
;
153
uint bits = value.
_value
;
161
uint bits = value.
_value
;
169
uint bits = value.
_value
;
176
uint bits = value.
_value
;
184
return (short)(value.
_value
) < 0;
191
return value.
_value
== NegativeInfinityBits;
199
uint bits = value.
_value
;
207
return value.
_value
== PositiveInfinityBits;
215
uint bits = value.
_value
;
222
uint bits = value.
_value
;
840
public static explicit operator float(BFloat16 value) => BitConverter.Int32BitsToSingle(value.
_value
<< 16);
871
ushort bits = value.
_value
;
907
return new BFloat16((ushort)(left.
_value
& right.
_value
));
913
return new BFloat16((ushort)(left.
_value
| right.
_value
));
919
return new BFloat16((ushort)(left.
_value
^ right.
_value
));
925
return new BFloat16((ushort)(~value.
_value
));
1101
uint bits = x.
_value
;
1134
uint bits = x.
_value
;
1302
uint xbits = value.
_value
;
1303
uint ybits = sign.
_value
;
1394
public static BFloat16 Abs(BFloat16 value) => new BFloat16((ushort)(value.
_value
& ~SignMask));
1472
public static bool IsPositive(BFloat16 value) => (short)(value.
_value
) >= 0;
2148
static ulong IBinaryFloatParseAndFormatInfo<BFloat16>.FloatToBits(BFloat16 value) => value.
_value
;