Commit 4000094
UInt128 improve division by 64 bit on x64 (#99747)
* Add fast path for UInt128 division on x64 when divisor is as most 64bits
* Update src/libraries/System.Private.CoreLib/src/System/UInt128.cs
Co-authored-by: Günther Foidl <gue@korporal.at>
* Supress warning CA2252 // This API requires opting into preview features
* Check upper bits for 0 and do normal divion for x64 (faster when it is known that upper is zero such as division by constant)
* Change supression to SYSLIB5004 after DivRem was changes to [Experimental]
---------
Co-authored-by: Günther Foidl <gue@korporal.at>
Co-authored-by: Tanner Gooding <tagoo@outlook.com>1 parent 56d96eb commit 4000094
1 file changed
+15
-0
lines changedLines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
1103 | 1104 | | |
1104 | 1105 | | |
1105 | 1106 | | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
1106 | 1121 | | |
1107 | 1122 | | |
1108 | 1123 | | |
| |||
0 commit comments