Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ShiftRightJam() [1/2]

static uint System.Half.ShiftRightJam ( uint i,
int dist )
inlinestaticprivate

Definition at line 564 of file Half.cs.

565 {
566 if (dist >= 31)
567 {
568 if (i == 0)
569 {
570 return 0u;
571 }
572 return 1u;
573 }
574 return (i >> dist) | ((i << -dist != 0) ? 1u : 0u);
575 }

Referenced by System.Half.operator Half(), and System.Half.RoundPackToHalf().