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

123

/external/icu4c/i18n/unicode/
H A Dnumsys.h93 * Create a numbering system using the specified radix, type, and description.
94 * @param radix The radix (base) for this numbering system.
101 static NumberingSystem* U_EXPORT2 createInstance(int32_t radix, UBool isAlgorithmic, const UnicodeString& description, UErrorCode& status );
120 * Returns the radix of this numbering system.
169 int32_t radix; member in class:NumberingSystem
173 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/guava/guava/src/com/google/common/primitives/
H A DAndroidInteger.java41 static Integer tryParse(String string, int radix) { argument
43 checkArgument(radix >= Character.MIN_RADIX,
44 "Invalid radix %s, min radix is %s", radix, Character.MIN_RADIX);
45 checkArgument(radix <= Character.MAX_RADIX,
46 "Invalid radix %s, max radix is %s", radix, Character.MAX_RADIX);
55 return tryParse(string, i, radix, negativ
59 tryParse(String string, int offset, int radix, boolean negative) argument
[all...]
H A DUnsignedInteger.java97 * as an unsigned {@code int} value in the specified radix.
102 public static UnsignedInteger valueOf(String string, int radix) { argument
103 return asUnsigned(UnsignedInts.parseUnsignedInt(string, radix));
229 * Returns a string representation of the {@code UnsignedInteger} value, in base {@code radix}.
230 * If {@code radix < Character.MIN_RADIX} or {@code radix > Character.MAX_RADIX}, the radix
233 public String toString(int radix) { argument
234 return UnsignedInts.toString(value, radix);
H A DUnsignedInts.java204 * Returns the unsigned {@code int} value represented by a string with the given radix.
207 * @param radix the radix to use while parsing {@code s}; must be between
210 * if supplied radix is invalid.
212 public static int parseUnsignedInt(String string, int radix) { argument
214 long result = Long.parseLong(string, radix);
216 throw new NumberFormatException("Input " + string + " in base " + radix
230 * Returns a string representation of {@code x} for the given radix, where {@code x} is treated
234 * @param radix the radix t
238 toString(int x, int radix) argument
[all...]
H A DUnsignedLong.java94 * an unsigned {@code long} value in the specified radix.
97 * value, or {@code radix} is not between {@link Character#MIN_RADIX} and
100 public static UnsignedLong valueOf(String string, int radix) { argument
101 return asUnsigned(UnsignedLongs.parseUnsignedLong(string, radix));
235 * Returns a string representation of the {@code UnsignedLong} value, in base {@code radix}. If
236 * {@code radix < Character.MIN_RADIX} or {@code radix > Character.MAX_RADIX}, the radix
239 public String toString(int radix) { argument
240 return UnsignedLongs.toString(value, radix);
[all...]
H A DUnsignedLongs.java248 * Returns the unsigned {@code long} value represented by a string with the given radix.
251 * @param radix the radix to use while parsing {@code s}
253 * with the given radix, or if {@code radix} is not between {@link Character#MIN_RADIX}
256 public static long parseUnsignedLong(String s, int radix) { argument
261 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) {
262 throw new NumberFormatException("illegal radix:" + radix);
287 overflowInParse(long current, int digit, int radix) argument
319 toString(long x, int radix) argument
[all...]
/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.cpp29 int8_t radix = 10; local
34 radix = 16;
39 radix = 8;
44 int32_t d = u_digit(rule.charAt(p++), radix);
50 int32_t v = (value * radix) + d;
177 * @param radix the radix in which to parse; must be >= 2 and <=
185 int32_t& pos, int8_t radix) {
187 // assert(radix >= 2);
188 // assert(radix <
184 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...]
/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
/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/v8/src/
H A Dconversions.h48 inline bool isDigit(int x, int radix) { argument
49 return (x >= '0' && x <= '9' && x < '0' + radix)
50 || (radix > 10 && x >= 'a' && x < 'a' + radix - 10)
51 || (radix > 10 && x >= 'A' && x < 'A' + radix - 10);
144 char* DoubleToRadixCString(double value, int radix);
H A Dconversions-inl.h133 // Parsing integers with radix 2, 4, 8, 16, 32. Assumes current != end.
150 const int radix = (1 << radix_log_2); local
154 if (*current >= '0' && *current <= '9' && *current < '0' + radix) {
156 } else if (radix > 10 && *current >= 'a' && *current < 'a' + radix - 10) {
158 } else if (radix > 10 && *current >= 'A' && *current < 'A' + radix - 10) {
169 number = number * radix + digit;
188 if (current == end || !isDigit(*current, radix)) break;
241 int radix) {
[all...]
H A Dv8conversions.cc109 int radix) {
114 return InternalStringToInt(unicode_cache, begin, end, radix);
118 return InternalStringToInt(unicode_cache, begin, end, radix);
124 radix);
107 StringToInt(UnicodeCache* unicode_cache, String* str, int radix) argument
/external/webkit/Source/JavaScriptCore/runtime/
H A DNumberPrototype.cpp211 int radix; local
213 radix = radixValue.asInt32();
215 radix = 10;
217 radix = static_cast<int>(radixValue.toInteger(exec)); // nan -> 0
219 if (radix == 10)
225 if (radix == 36) {
235 if (radix < 2 || radix > 36)
236 return throwVMError(exec, createRangeError(exec, "toString() radix argument must be between 2 and 36"));
238 // INT_MAX results in 1024 characters left of the dot with radix
[all...]
/external/chromium/googleurl/src/
H A Durl_canon_internal.cc388 int _itoa_s(int value, char* buffer, size_t size_in_chars, int radix) { argument
390 if (radix == 10)
392 else if (radix == 16)
405 int _itow_s(int value, char16* buffer, size_t size_in_chars, int radix) { argument
406 if (radix != 10)
H A Durl_canon_internal.h429 int _itoa_s(int value, char* buffer, size_t size_in_chars, int radix);
430 int _itow_s(int value, char16* buffer, size_t size_in_chars, int radix);
434 inline int _itoa_s(int value, char (&buffer)[N], int radix) { argument
435 return _itoa_s(value, buffer, N, radix);
439 inline int _itow_s(int value, char16 (&buffer)[N], int radix) { argument
440 return _itow_s(value, buffer, N, radix);
/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);

Completed in 332 milliseconds

123