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

◆ CbitZeroLeft()

static int System.Xml.Xsl.XPathConvert.CbitZeroLeft ( uint u)
inlinestatic

Definition at line 1682 of file XPathConvert.cs.

1683 {
1684 int num = 0;
1685 if ((u & 0xFFFF0000u) == 0)
1686 {
1687 num += 16;
1688 u <<= 16;
1689 }
1690 if ((u & 0xFF000000u) == 0)
1691 {
1692 num += 8;
1693 u <<= 8;
1694 }
1695 if ((u & 0xF0000000u) == 0)
1696 {
1697 num += 4;
1698 u <<= 4;
1699 }
1700 if ((u & 0xC0000000u) == 0)
1701 {
1702 num += 2;
1703 u <<= 2;
1704 }
1705 if ((u & 0x80000000u) == 0)
1706 {
1707 num++;
1708 u <<= 1;
1709 }
1710 return num;
1711 }

References System.Xml.Dictionary.

Referenced by System.Xml.Xsl.XPathConvert.BigNumber.DblToRgbPrecise(), and System.Xml.Xsl.XPathConvert.BigNumber.Normalize().