Commit e06cef5
committed
Simplify relocate implementation
We're adding 1 to the high bit of the low12 chunk, letting that carry through
the high bits, and then keeping only the high bits. In this case, the high
bits are always zero. Spelling this out since I found it confusing at
first... Given an int12, two possible cases:
val hi20 low12
b31-b12 b11 b10..b0
111..11 1 (dont-care) 0 trunc(val)
000..00 0 (dont-care) 0 trunc(val)1 parent 9f64b25 commit e06cef5
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | | - | |
| 472 | + | |
475 | 473 | | |
476 | 474 | | |
477 | | - | |
| 475 | + | |
478 | 476 | | |
479 | | - | |
| 477 | + | |
480 | 478 | | |
481 | 479 | | |
482 | 480 | | |
| |||
0 commit comments