Commit 360a3f3
src: get rid of fp arithmetic in ParseIPv4Host
Even though most compiler should not actually emit FPU instructions, it
is unnecessary to use floating-point arithmetic for powers of 2.
Also change some signed counters to unsigned integers.
PR-URL: #46326
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 34d70ce commit 360a3f3Copy full SHA for 360a3f3
File tree
Expand file treeCollapse file tree
1 file changed
+7
-11
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+7
-11
lines changedOpen diff view settings
Collapse file
+7-11Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | 9 | |
11 | 10 | |
12 | 11 | |
| ||
477 | 476 | |
478 | 477 | |
479 | 478 | |
480 | | - |
| 479 | + |
481 | 480 | |
482 | 481 | |
483 | | - |
| 482 | + |
484 | 483 | |
485 | 484 | |
486 | 485 | |
487 | 486 | |
488 | 487 | |
489 | 488 | |
490 | 489 | |
491 | | - |
| 490 | + |
492 | 491 | |
493 | 492 | |
494 | 493 | |
| ||
510 | 509 | |
511 | 510 | |
512 | 511 | |
513 | | - |
514 | | - |
515 | | - |
| 512 | + |
| 513 | + |
516 | 514 | |
517 | 515 | |
518 | 516 | |
519 | 517 | |
520 | 518 | |
521 | | - |
522 | | - |
523 | | - |
524 | | - |
| 519 | + |
| 520 | + |
525 | 521 | |
526 | 522 | |
527 | 523 | |
|
0 commit comments