Lines Matching refs:res

14     uintType res = 0; \
17 if (c < '0' || c > '9') { if (end) *end = s; return res; } \
18 if (res > (k_ ## uintType ## _max) / 10) return 0; \
19 res *= 10; \
21 if (res > (k_ ## uintType ## _max) - v) return 0; \
22 res += v; }}
39 UInt32 res = ConvertStringToUInt32(s2, &end2); in CONVERT_STRING_TO_UINT_FUNC() local
42 if (res > ((UInt32)1 << (32 - 1))) in CONVERT_STRING_TO_UINT_FUNC()
45 else if ((res & ((UInt32)1 << (32 - 1))) != 0) in CONVERT_STRING_TO_UINT_FUNC()
50 return -(Int32)res; in CONVERT_STRING_TO_UINT_FUNC()
51 return (Int32)res; in CONVERT_STRING_TO_UINT_FUNC()
58 UInt32 res = 0; in ConvertOctStringToUInt32() local
66 return res; in ConvertOctStringToUInt32()
68 if ((res & (UInt32)7 << (32 - 3)) != 0) in ConvertOctStringToUInt32()
70 res <<= 3; in ConvertOctStringToUInt32()
71 res |= (unsigned)(c - '0'); in ConvertOctStringToUInt32()
79 UInt64 res = 0; in ConvertOctStringToUInt64() local
87 return res; in ConvertOctStringToUInt64()
89 if ((res & (UInt64)7 << (64 - 3)) != 0) in ConvertOctStringToUInt64()
91 res <<= 3; in ConvertOctStringToUInt64()
92 res |= (unsigned)(c - '0'); in ConvertOctStringToUInt64()
100 UInt32 res = 0; in ConvertHexStringToUInt32() local
112 return res; in ConvertHexStringToUInt32()
114 if ((res & (UInt32)0xF << (32 - 4)) != 0) in ConvertHexStringToUInt32()
116 res <<= 4; in ConvertHexStringToUInt32()
117 res |= v; in ConvertHexStringToUInt32()
125 UInt64 res = 0; in ConvertHexStringToUInt64() local
137 return res; in ConvertHexStringToUInt64()
139 if ((res & (UInt64)0xF << (64 - 4)) != 0) in ConvertHexStringToUInt64()
141 res <<= 4; in ConvertHexStringToUInt64()
142 res |= v; in ConvertHexStringToUInt64()