Searched defs:radix (Results 1 - 25 of 34) sorted by relevance

12

/external/icu4c/i18n/unicode/
H A Dnumsys.h86 * Create a numbering system using the specified radix, type, and description.
87 * @param radix The radix (base) for this numbering system.
94 static NumberingSystem* U_EXPORT2 createInstance(int32_t radix, UBool isAlgorithmic, const UnicodeString& description, UErrorCode& status );
113 * Returns the radix of this numbering system.
155 int32_t radix; member in class:NumberingSystem
158 void setRadix(int32_t radix);
/external/dropbear/libtommath/
H A Dbn_mp_fread.c19 int mp_fread(mp_int *a, int radix, FILE *stream) argument
36 /* find y in the radix map */
37 for (y = 0; y < radix; y++) {
42 if (y == radix) {
47 if ((err = mp_mul_d(a, radix, a)) != MP_OKAY) {
H A Dbn_mp_fwrite.c18 int mp_fwrite(mp_int *a, int radix, FILE *stream) argument
23 if ((err = mp_radix_size(a, radix, &len)) != MP_OKAY) {
32 if ((err = mp_toradix(a, buf, radix)) != MP_OKAY) {
H A Dbn_mp_radix_size.c19 int mp_radix_size (mp_int * a, int radix, int *size) argument
28 if (radix == 2) {
33 /* make sure the radix is in range */
34 if (radix < 2 || radix > 64) {
61 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
H A Dbn_mp_read_radix.c18 /* read a string [ASCII] in a given radix */
19 int mp_read_radix (mp_int * a, const char *str, int radix) argument
27 /* make sure the radix is ok */
28 if (radix < 2 || radix > 64) {
47 /* if the radix < 36 the conversion is case insensitive
51 ch = (char) ((radix < 36) ? toupper (*str) : *str);
59 * and is less than the given radix add it
62 if (y < radix) {
63 if ((res = mp_mul_d (a, (mp_digit) radix,
[all...]
H A Dbn_mp_toradix.c18 /* stores a bignum as a ASCII string in a given radix (2..64) */
19 int mp_toradix (mp_int * a, char *str, int radix) argument
26 /* check range of the radix */
27 if (radix < 2 || radix > 64) {
51 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
H A Dbn_mp_toradix_n.c18 /* stores a bignum as a ASCII string in a given radix (2..64)
22 int mp_toradix_n(mp_int * a, char *str, int radix, int maxlen) argument
29 /* check range of the maxlen, radix */
30 if (maxlen < 2 || radix < 2 || radix > 64) {
64 if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
/external/icu4c/common/
H A Dustrfmt.c13 * Fills in a UChar* string with the radix-based representation of a
20 * @param radix the radix from 2..36
29 uint32_t i, uint32_t radix, int32_t minwidth)
37 digit = (int)(i % radix);
39 i=i/radix;
28 uprv_itou(UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth) argument
H A Dutil_props.cpp28 int8_t radix = 10; local
33 radix = 16;
38 radix = 8;
43 int32_t d = u_digit(rule.charAt(p++), radix);
49 int32_t v = (value * radix) + d;
178 * @param radix the radix in which to parse; must be >= 2 and <=
186 int32_t& pos, int8_t radix) {
188 // assert(radix >= 2);
189 // assert(radix <
185 parseNumber(const UnicodeString& text, int32_t& pos, int8_t radix) argument
[all...]
H A Dcstring.c138 * Takes a int32_t and fills in a char* string with that number "radix"-based.
144 T_CString_integerToString(char* buffer, int32_t v, int32_t radix) argument
152 U_ASSERT(radix>=2 && radix<=16);
154 if(v<0 && radix == 10) {
163 digit = (uint8_t)(uval % radix);
165 uval = uval / radix;
177 * Takes a int64_t and fills in a char* string with that number "radix"-based.
182 T_CString_int64ToString(char* buffer, int64_t v, uint32_t radix) argument
190 U_ASSERT(radix>
214 T_CString_stringToInteger(const char *integerString, int32_t radix) argument
[all...]
H A Dutil.cpp34 int32_t radix, int32_t minDigits) {
35 if (radix < 2 || radix > 36) {
36 // Bogus radix
47 while (nn >= radix) {
48 nn /= radix;
49 r *= radix;
60 r /= radix;
33 appendNumber(UnicodeString& result, int32_t n, int32_t radix, int32_t minDigits) argument
/external/icu4c/i18n/
H A Desctrn.h25 * empty, a radix, typically 16 or 10, a minimum digit count,
59 * The radix to display the number in. Typically 16 or 10. Must
62 int32_t radix; member in class:EscapeTransliterator
80 * prefix, suffix, radix, and minDigits of this object are used
99 int32_t radix, int32_t minDigits,
H A Dnfrule.h62 double getDivisor() const { return uprv_pow(radix, exponent); }
96 int32_t radix; member in class:NFRule
H A Dnumsys.cpp37 static const char gRadix[] = "radix";
50 radix = 10;
141 int32_t radix = 10; local
151 radix = ures_getInt(nsCurrent,&status);
169 return NumberingSystem::createInstance(radix,isAlgorithmic,nsd,status);
181 return radix;
189 radix = r;
H A Dunesctrn.cpp186 int8_t radix = (int8_t) spec[ipat++]; local
228 int32_t digit = u_digit(ch, radix);
233 u = (u * radix) + digit;
/external/icu4c/tools/genrb/
H A Drbutil.c66 itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad) argument
82 digit = (int)(i % radix);
84 i=i/radix;
/external/webkit/JavaScriptCore/runtime/
H A DNumberPrototype.cpp151 return throwError(exec, RangeError, "toString() radix argument must be between 2 and 36");
153 int radix = static_cast<int>(radixAsDouble); local
155 // INT_MAX results in 1024 characters left of the dot with radix 2
175 int remainderDigit = static_cast<int>(fmod(d, radix));
177 d /= radix;
187 const double epsilon = 0.001; // TODO: guessed. base on radix ?
192 d *= radix;
H A DJSGlobalObjectFunctions.cpp159 static int parseDigit(unsigned short c, int radix) argument
170 if (digit >= radix)
175 double parseIntOverflow(const char* s, int length, int radix) argument
187 int digit = parseDigit(*p, radix);
191 radixMultiplier *= radix;
197 static double parseInt(const UString& s, int radix) argument
216 if ((radix == 0 || radix == 16) && length - p >= 2 && data[p] == '0' && (data[p + 1] == 'x' || data[p + 1] == 'X')) {
217 radix = 16;
219 } else if (radix
302 int32_t radix = args.at(1).toInt32(exec); local
[all...]
/external/dropbear/libtomcrypt/src/math/
H A Dgmp_desc.c142 static int read_radix(void *a, const char *b, int radix) argument
146 mpz_set_str(a, b, radix);
151 static int write_radix(void *a, char *b, int radix) argument
155 mpz_get_str(b, radix, a);
H A Dltm_desc.c168 static int read_radix(void *a, const char *b, int radix) argument
172 return mpi_to_ltc_error(mp_read_radix(a, b, radix));
176 static int write_radix(void *a, char *b, int radix) argument
180 return mpi_to_ltc_error(mp_toradix(a, b, radix));
H A Dtfm_desc.c167 static int read_radix(void *a, const char *b, int radix) argument
171 return tfm_to_ltc_error(fp_read_radix(a, (char *)b, radix));
175 static int write_radix(void *a, char *b, int radix) argument
179 return tfm_to_ltc_error(fp_toradix(a, b, radix));
/external/icu4c/io/
H A Dufmt_cmn.c52 int32_t radix)
56 return (UBool)(digitVal < radix && digitVal >= 0);
66 uint8_t radix,
75 digit = (uint32_t)(value % radix);
76 value = value / radix;
134 int8_t radix)
147 while(ufmt_isdigit(*buffer, radix) && buffer < limit) {
150 result *= radix;
51 ufmt_isdigit(UChar c, int32_t radix) argument
63 ufmt_64tou(UChar *buffer, int32_t *len, uint64_t value, uint8_t radix, UBool uselower, int32_t minDigits) argument
132 ufmt_uto64(const UChar *buffer, int32_t *len, int8_t radix) argument
/external/srec/portable/src/
H A DLCHAR.c250 * @param radix Base of value; must be in the range 2 - 36
252 static void pxtoa(unsigned long val, LCHAR *buf, unsigned radix, int is_neg) argument
272 digval = (unsigned)(val % radix);
273 val /= radix; /* get next digit */
302 ESR_ReturnCode litostr(int value, LCHAR *string, size_t *len, int radix) argument
311 if (radix == 10 && value < 0)
312 pxtoa((unsigned long) value, buffer, radix, 1);
314 pxtoa((unsigned long) value, buffer, radix, 0);
331 ESR_ReturnCode lultostr(unsigned long value, LCHAR *string, size_t *len, int radix) argument
339 pxtoa(value, buffer, radix,
[all...]
/external/elfutils/src/
H A Dsize.c55 { "radix", OPT_RADIX, "RADIX", 0, N_("Use RADIX for printing symbol values") },
56 { NULL, 'd', NULL, 0, N_("Same as `--radix=10'") },
57 { NULL, 'o', NULL, 0, N_("Same as `--radix=8'") },
58 { NULL, 'x', NULL, 0, N_("Same as `--radix=16'") },
121 } radix; variable in typeref:enum:__anon1038
124 /* Mapping of radix and binary class to length. */
218 radix = radix_decimal;
226 radix = radix_octal;
230 radix = radix_hex;
256 radix
[all...]
/external/v8/src/
H A Dconversions.cc170 // radix. The string can be either a char* or a String*.
172 static int InternalStringToInt(S* s, int i, int radix, double* value) { argument
176 ASSERT(2 <= radix && radix <= 36);
177 int lim_0 = '0' + (radix < 10 ? radix : 10);
178 int lim_a = 'a' + (radix - 10);
179 int lim_A = 'A' + (radix - 10);
210 uint32_t m = multiplier * radix;
212 part = part * radix
251 StringToInt(String* str, int index, int radix, double* value) argument
256 StringToInt(const char* str, int index, int radix, double* value) argument
638 DoubleToRadixCString(double value, int radix) argument
[all...]

Completed in 842 milliseconds

12