@@ -25,37 +25,7 @@ public static void GetUpperAndLowerBits(Int128 value, out ulong upper, out ulong
2525 upper = value . GetUpperBits ( ) ;
2626 }
2727
28- #if NET8_0_OR_GREATER
29- [ UnsafeAccessor ( UnsafeAccessorKind . Field , Name = "_upper" ) ]
30- private static extern ref ulong GetUpperBitsInternal ( UInt128 uInt128 ) ;
31- [ UnsafeAccessor ( UnsafeAccessorKind . Field , Name = "_lower" ) ]
32- private static extern ref ulong GetLowerBitsInternal ( UInt128 uInt128 ) ;
33- [ UnsafeAccessor ( UnsafeAccessorKind . Field , Name = "_upper" ) ]
34- private static extern ref ulong GetUpperBitsInternal ( Int128 int128 ) ;
35- [ UnsafeAccessor ( UnsafeAccessorKind . Field , Name = "_lower" ) ]
36- private static extern ref ulong GetLowerBitsInternal ( Int128 int128 ) ;
3728
38- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
39- public static ulong GetUpperBits ( this in UInt128 value )
40- {
41- return GetUpperBitsInternal ( value ) ;
42- }
43- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
44- public static ulong GetUpperBits ( this in Int128 value )
45- {
46- return GetUpperBitsInternal ( value ) ;
47- }
48- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
49- public static ulong GetLowerBits ( this in UInt128 value )
50- {
51- return GetLowerBitsInternal ( value ) ;
52- }
53- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
54- public static ulong GetLowerBits ( this in Int128 value )
55- {
56- return GetLowerBitsInternal ( value ) ;
57- }
58- #else
5929 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
6030 public static ulong GetUpperBits ( this in UInt128 value )
6131 {
@@ -76,7 +46,6 @@ public static ulong GetLowerBits(this in Int128 value)
7646 {
7747 return unchecked ( ( ulong ) ( value ) ) ;
7848 }
79- #endif
8049
8150 public static void GetDoubleParts ( double dbl , out int sign , out int exp , out ulong man , out bool fFinite )
8251 {
0 commit comments