HomeSort by relevance Sort by last modified time
    Searched refs:radix (Results 1 - 25 of 241) sorted by null

1 2 3 4 5 6 7 8 910

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
BigIntegerToStringTest.java 29 * Method: toString(int radix)
33 * If 36 < radix < 2 it should be set to 10
37 int radix = 10; local
38 BigInteger aNumber = new BigInteger(value, radix);
44 * test negative number of radix 2
48 int radix = 2; local
49 BigInteger aNumber = new BigInteger(value, radix);
50 String result = aNumber.toString(radix);
55 * test positive number of radix 2
59 int radix = 2 local
70 int radix = 16; local
81 int radix = 16; local
92 int radix = 16; local
103 int radix = 16; local
114 int radix = 24; local
125 int radix = 24; local
136 int radix = 36; local
147 int radix = 36; local
    [all...]
  /external/guava/guava/src/com/google/common/primitives/
AndroidInteger.java 41 static Integer tryParse(String string, int radix) {
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, negative)
    [all...]
UnsignedLongs.java 248 * 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) {
261 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) {
262 throw new NumberFormatException("illegal radix:" + radix);
    [all...]
  /external/dropbear/libtommath/
bn_mp_read_radix.c 18 /* read a string [ASCII] in a given radix */
19 int mp_read_radix (mp_int * a, const char *str, int radix)
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, a)) != MP_OKAY)
    [all...]
bn_mp_radix_size.c 19 int mp_radix_size (mp_int * a, int radix, int *size)
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) {
bn_mp_fwrite.c 18 int mp_fwrite(mp_int *a, int radix, FILE *stream)
23 if ((err = mp_radix_size(a, radix, &len)) != MP_OKAY) {
32 if ((err = mp_toradix(a, buf, radix)) != MP_OKAY) {
bn_mp_fread.c 19 int mp_fread(mp_int *a, int radix, FILE *stream)
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) {
bn_mp_toradix.c 18 /* stores a bignum as a ASCII string in a given radix (2..64) */
19 int mp_toradix (mp_int * a, char *str, int radix)
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) {
bn_mp_toradix_n.c 18 /* 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)
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) {
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
radix.pass.cpp 12 // radix
21 static_assert(std::numeric_limits<T>::radix == expected, "radix test 1");
22 static_assert(std::numeric_limits<const T>::radix == expected, "radix test 2");
23 static_assert(std::numeric_limits<volatile T>::radix == expected, "radix test 3");
24 static_assert(std::numeric_limits<const volatile T>::radix == expected, "radix test 4");
  /external/chromium_org/v8/src/
conversions.h 48 inline bool isDigit(int x, int radix) {
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);
154 char* DoubleToRadixCString(double value, int radix);
  /external/v8/src/
conversions.h 48 inline bool isDigit(int x, int radix) {
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);
  /external/chromium_org/v8/test/mjsunit/regress/
regress-1246.js 29 // the given radix is not a SMI.
39 // Giving these values as the radix argument triggers radix detection.
43 // These values will result in an integer radix outside of the valid range.
53 var radix = radix_detect[i];
54 assertEquals(NaN, parseInt("", radix));
55 assertEquals(23, parseInt("23", radix));
56 assertEquals(0xaf, parseInt("0xaf", radix));
57 assertEquals(NaN, parseInt("af", radix));
61 var radix = radix_invalid[i]
    [all...]
  /external/v8/test/mjsunit/regress/
regress-1246.js 29 // the given radix is not a SMI.
39 // Giving these values as the radix argument triggers radix detection.
43 // These values will result in an integer radix outside of the valid range.
53 var radix = radix_detect[i];
54 assertEquals(NaN, parseInt("", radix));
55 assertEquals(23, parseInt("23", radix));
56 assertEquals(0xaf, parseInt("0xaf", radix));
57 assertEquals(NaN, parseInt("af", radix));
61 var radix = radix_invalid[i]
    [all...]
  /external/chromium_org/third_party/icu/source/common/
ustrfmt.h 14 uprv_itou (UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth);
ustrfmt.c 13 * 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;
util_props.cpp 28 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 <= 36)
    [all...]
  /external/chromium_org/third_party/icu/source/tools/genrb/
rbutil.h 25 int32_t itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad);
  /external/icu4c/common/
ustrfmt.h 14 uprv_itou (UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth);
ustrfmt.c 13 * 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;
  /external/icu4c/tools/genrb/
rbutil.h 25 int32_t itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad);
  /external/chromium_org/third_party/yasm/source/patched-yasm/modules/preprocs/nasm/
nasmlib.c 23 long radix; local
53 radix = 16, r += 2;
55 radix = 16, r++;
57 radix = 16 , q--;
59 radix = 8 , q--;
61 radix = 2 , q--;
63 radix = 10;
76 /* Check for valid number of that radix */
79 if (*p<'0' || (*p>'9' && *p<'A') || (digit = numvalue(*p)) >= radix)
90 switch (radix) {
    [all...]
  /external/guava/guava-tests/test/com/google/common/primitives/
UnsignedIntsTest.java 118 for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
119 assertEquals((int) a, UnsignedInts.parseUnsignedInt(Long.toString(a, radix), radix));
123 // loops through all legal radix values.
124 for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
125 // tests can successfully parse a number string with this radix
    [all...]
  /external/smali/smali/src/main/java/org/jf/smali/
LiteralTools.java 53 int radix = 10; local
65 radix = 16;
68 radix = 8;
75 byte maxValue = (byte)(Byte.MAX_VALUE / (radix / 2));
78 digit = Character.digit(byteChars[position], radix);
82 shiftedResult = (byte)(result * radix);
123 int radix = 10; local
135 radix = 16;
138 radix = 8;
145 short maxValue = (short)(Short.MAX_VALUE / (radix / 2))
187 int radix = 10; local
257 int radix = 10; local
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/
esctrn.h 25 * 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,

Completed in 2345 milliseconds

1 2 3 4 5 6 7 8 910