Home
last modified time | relevance | path

Searched refs:digit (Results 1 – 25 of 73) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dlongintrepr.h45 typedef PY_UINT32_T digit; typedef
51 #define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */
53 typedef unsigned short digit;
59 #define _PyLong_DECIMAL_BASE ((digit)10000) /* 10 ** DECIMAL_SHIFT */
63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
64 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
92 digit ob_digit[1];
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dlongintrepr.h45 typedef PY_UINT32_T digit; typedef
51 #define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */
53 typedef unsigned short digit;
59 #define _PyLong_DECIMAL_BASE ((digit)10000) /* 10 ** DECIMAL_SHIFT */
63 #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
64 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
92 digit ob_digit[1];
/device/linaro/bootloader/edk2/StdLib/LibC/NetUtil/
Dinet_network.c72 int digit, base; in __weak_alias() local
77 val = 0; base = 10; digit = 0; in __weak_alias()
79 digit = 1, base = 8, cp++; in __weak_alias()
88 digit = 1; in __weak_alias()
94 digit = 1; in __weak_alias()
99 if (!digit) in __weak_alias()
Dinet_addr.c134 int digit; in inet_aton() local
145 val = 0; base = 10; digit = 0; in inet_aton()
152 digit = 1 ; in inet_aton()
161 digit = 1; in inet_aton()
167 digit = 1; in inet_aton()
193 if (!digit) in inet_aton()
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/
Dtinyvprintf.c119 int digit, i, seen = 0; in tiny_vsprintf() local
120 for (digit = 0; n >= 1000000000; digit++) in tiny_vsprintf()
123 if (!seen && digit != 0) in tiny_vsprintf()
126 *s++ = '0' + digit; in tiny_vsprintf()
127 for (digit = 0; n >= 100000000; digit++) in tiny_vsprintf()
130 *s++ = '0' + digit; in tiny_vsprintf()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dlongobject.c79 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
147 digit *p = v->ob_digit; in PyLong_FromLong()
151 *p++ = (digit)(t & PyLong_MASK); in PyLong_FromLong()
175 digit *p = v->ob_digit; in PyLong_FromUnsignedLong()
178 *p++ = (digit)(ival & PyLong_MASK); in PyLong_FromUnsignedLong()
217 digit bits = (digit)frac; in PyLong_FromDouble()
501 digit msd = v->ob_digit[ndigits - 1]; in _PyLong_NumBits()
613 v->ob_digit[idigit] = (digit)(accum & PyLong_MASK); in _PyLong_FromByteArray()
623 v->ob_digit[idigit] = (digit)accum; in _PyLong_FromByteArray()
642 digit carry; /* for computing 2's-comp */ in _PyLong_AsByteArray()
[all …]
Dunicodectype.c30 const unsigned char digit; member
105 return (ctype->flags & DIGIT_MASK) ? ctype->digit : -1; in _PyUnicode_ToDigit()
Dfloatobject.c1433 int half_eps, digit, round_up, sign=1; in float_fromhex() local
1590 for (digit = HEX_DIGIT(ndigits-1); digit != 0; digit /= 2) in float_fromhex()
1619 digit = HEX_DIGIT(key_digit); in float_fromhex()
1620 x = 16.0*x + (double)(digit & (16-2*half_eps)); in float_fromhex()
1624 if ((digit & half_eps) != 0) { in float_fromhex()
1626 if ((digit & (3*half_eps-1)) != 0 || in float_fromhex()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Objects/
Dlongobject.c79 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
147 digit *p = v->ob_digit; in PyLong_FromLong()
151 *p++ = (digit)(t & PyLong_MASK); in PyLong_FromLong()
175 digit *p = v->ob_digit; in PyLong_FromUnsignedLong()
178 *p++ = (digit)(ival & PyLong_MASK); in PyLong_FromUnsignedLong()
217 digit bits = (digit)frac; in PyLong_FromDouble()
501 digit msd = v->ob_digit[ndigits - 1]; in _PyLong_NumBits()
613 v->ob_digit[idigit] = (digit)(accum & PyLong_MASK); in _PyLong_FromByteArray()
623 v->ob_digit[idigit] = (digit)accum; in _PyLong_FromByteArray()
642 digit carry; /* for computing 2's-comp */ in _PyLong_AsByteArray()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Objects/
Dlongobject.c75 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
143 digit *p = v->ob_digit; in PyLong_FromLong()
147 *p++ = (digit)(t & PyLong_MASK); in PyLong_FromLong()
171 digit *p = v->ob_digit; in PyLong_FromUnsignedLong()
174 *p++ = (digit)(ival & PyLong_MASK); in PyLong_FromUnsignedLong()
213 digit bits = (digit)frac; in PyLong_FromDouble()
515 digit msd = v->ob_digit[ndigits - 1]; in _PyLong_NumBits()
627 v->ob_digit[idigit] = (digit)(accum & PyLong_MASK); in _PyLong_FromByteArray()
637 v->ob_digit[idigit] = (digit)accum; in _PyLong_FromByteArray()
656 digit carry; /* for computing 2's-comp */ in _PyLong_AsByteArray()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_unicodedata.py92 str(self.db.digit(char, -1)),
106 self.assertEqual(self.db.digit(u'A', None), None)
107 self.assertEqual(self.db.digit(u'9'), 9)
108 self.assertEqual(self.db.digit(u'\u215b', None), None)
109 self.assertEqual(self.db.digit(u'\u2468'), 9)
110 self.assertEqual(self.db.digit(u'\U00020000', None), None)
112 self.assertRaises(TypeError, self.db.digit)
113 self.assertRaises(TypeError, self.db.digit, u'xx')
114 self.assertRaises(ValueError, self.db.digit, u'x')
261 dec = self.db.digit(c, -1)
Dtest_bisect.py188 digit = choice("0123456789")
189 if digit in "02468":
193 f(insorted, digit)
Dtest_long.py179 bits = [digit * SHIFT for digit in digits]
816 digit = int(f)
817 assert digit >> CHUNK == 0
818 top = (top << CHUNK) | digit
819 f -= digit
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
DUnicode.py469 digit = unicodedata.digit
482 digit(c, None)
491 digit(c, None)
500 digit(c, None)
509 digit(c, None)
518 digit(c, None)
531 digit = unicodedata.digit
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
Dpunycode.py144 digit = char - 0x41
146 digit = char - 22 # 0x30-26
153 result += digit * w
154 if digit < t:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
Dpunycode.py144 digit = char - 0x41
146 digit = char - 22 # 0x30-26
153 result += digit * w
154 if digit < t:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dunicodectype.c30 const unsigned char digit; member
105 return (ctype->flags & DIGIT_MASK) ? ctype->digit : -1; in _PyUnicode_ToDigit()
Dfloatobject.c1448 int half_eps, digit, round_up, sign=1; in float_fromhex() local
1605 for (digit = HEX_DIGIT(ndigits-1); digit != 0; digit /= 2) in float_fromhex()
1634 digit = HEX_DIGIT(key_digit); in float_fromhex()
1635 x = 16.0*x + (double)(digit & (16-2*half_eps)); in float_fromhex()
1639 if ((digit & half_eps) != 0) { in float_fromhex()
1641 if ((digit & (3*half_eps-1)) != 0 || in float_fromhex()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_json.c508 Py_UNICODE digit = buf[next]; in scanstring_str() local
510 switch (digit) { in scanstring_str()
513 c |= (digit - '0'); break; in scanstring_str()
516 c |= (digit - 'a' + 10); break; in scanstring_str()
519 c |= (digit - 'A' + 10); break; in scanstring_str()
540 Py_UNICODE digit = buf[next]; in scanstring_str() local
542 switch (digit) { in scanstring_str()
545 c2 |= (digit - '0'); break; in scanstring_str()
548 c2 |= (digit - 'a' + 10); break; in scanstring_str()
551 c2 |= (digit - 'A' + 10); break; in scanstring_str()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_json.c508 Py_UNICODE digit = buf[next]; in scanstring_str() local
510 switch (digit) { in scanstring_str()
513 c |= (digit - '0'); break; in scanstring_str()
516 c |= (digit - 'a' + 10); break; in scanstring_str()
519 c |= (digit - 'A' + 10); break; in scanstring_str()
534 Py_UNICODE digit = buf[next]; in scanstring_str() local
536 switch (digit) { in scanstring_str()
539 c2 |= (digit - '0'); break; in scanstring_str()
542 c2 |= (digit - 'a' + 10); break; in scanstring_str()
545 c2 |= (digit - 'A' + 10); break; in scanstring_str()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlbaselib.c71 int digit = (isdigit((unsigned char)*s)) ? *s - '0' in luaB_tonumber() local
73 if (digit >= base) break; /* invalid numeral; force a fail */ in luaB_tonumber()
74 n = n * (lua_Number)base + (lua_Number)digit; in luaB_tonumber()
/device/linaro/bootloader/edk2/UefiCpuPkg/ResetVector/Vtf0/Ia32/
DSearchForBfvBase.asm37 ; just below 4GB. (Addresses at 0xffHHH000 where H is any hex digit.)
/device/linaro/bootloader/edk2/NetworkPkg/TlsAuthConfigDxe/
DTlsAuthConfigDxeStrings.uni33 #string STR_TLS_AUTH_CONFIG_CERT_GUID_HELP #language en-US "Input digit character in 1111…
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
Dtestall.decTest85 -- General 31->33-digit boundary tests
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dmarshal.c157 digit d; in w_PyLong()
580 digit d; in r_PyLong()
604 d += (digit)md << j*PyLong_MARSHAL_SHIFT; in r_PyLong()
620 d += (digit)md << j*PyLong_MARSHAL_SHIFT; in r_PyLong()

123