Home
last modified time | relevance | path

Searched refs:expo (Results 1 – 8 of 8) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dfpformat.py46 if exppart: expo = int(exppart[1:])
47 else: expo = 0
48 return sign, intpart, fraction, expo
50 def unexpo(intpart, fraction, expo): argument
52 if expo > 0: # Move the point left
54 intpart, fraction = intpart + fraction[:expo], fraction[expo:]
55 if expo > f:
56 intpart = intpart + '0'*(expo-f)
57 elif expo < 0: # Move the point right
59 intpart, fraction = intpart[:expo], intpart[expo:] + fraction
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dvfwprintf.c2019 exponent(CHAR_T *p0, int expo, int fmtch) in exponent() argument
2026 if (expo < 0) { in exponent()
2027 expo = -expo; in exponent()
2033 if (expo > 9) { in exponent()
2035 *--t = to_char(expo % 10); in exponent()
2036 } while ((expo /= 10) > 9); in exponent()
2037 *--t = to_char(expo); in exponent()
2049 *p++ = to_char(expo); in exponent()
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dllex.c233 const char *expo = "Ee"; in read_numeral() local
238 expo = "Pp"; in read_numeral()
240 if (check_next(ls, expo)) /* exponent part? */ in read_numeral()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dobject.c1020 int expo; in _Py_HashDouble() local
1065 v = frexp(v, &expo); in _Py_HashDouble()
1069 x = hipart + (long)v + (expo << 15); in _Py_HashDouble()
Dlongobject.c192 int i, ndig, expo, neg; in PyLong_FromDouble() local
208 frac = frexp(dval, &expo); /* dval = frac*2**expo; 0.0 <= frac < 1.0 */ in PyLong_FromDouble()
209 if (expo <= 0) in PyLong_FromDouble()
211 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */ in PyLong_FromDouble()
215 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dobject.c1025 int expo; in _Py_HashDouble() local
1070 v = frexp(v, &expo); in _Py_HashDouble()
1074 x = hipart + (long)v + (expo << 15); in _Py_HashDouble()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Objects/
Dlongobject.c192 int i, ndig, expo, neg; in PyLong_FromDouble() local
208 frac = frexp(dval, &expo); /* dval = frac*2**expo; 0.0 <= frac < 1.0 */ in PyLong_FromDouble()
209 if (expo <= 0) in PyLong_FromDouble()
211 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */ in PyLong_FromDouble()
215 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Objects/
Dlongobject.c188 int i, ndig, expo, neg; in PyLong_FromDouble() local
204 frac = frexp(dval, &expo); /* dval = frac*2**expo; 0.0 <= frac < 1.0 */ in PyLong_FromDouble()
205 if (expo <= 0) in PyLong_FromDouble()
207 ndig = (expo-1) / PyLong_SHIFT + 1; /* Number of 'digits' in result */ in PyLong_FromDouble()
211 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()