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

1 2 3 4 5 6 7 8 91011>>

  /external/apache-harmony/math/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/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/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/icu4c/io/
ufmt_cmn.h 71 * Convert a UChar in hex radix to an integer value.
79 * Determine if a UChar is a digit for a specified radix.
81 * @param radix The desired radix.
82 * @return TRUE if <TT>c</TT> is a digit in <TT>radix</TT>, FALSE otherwise.
86 int32_t radix);
89 * Convert an int64_t to a UChar* in a specified radix
94 * @param radix The desired radix
103 uint8_t radix,
    [all...]
  /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;
cstring.c 138 * 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)
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)
190 U_ASSERT(radix>=2 && radix<=16)
    [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_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_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_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) {
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) {
  /external/qemu/distrib/sdl-1.2.12/src/stdlib/
SDL_string.c 33 static size_t SDL_ScanLong(const char *text, int radix, long *valuep)
43 if ( radix == 16 && SDL_strncmp(text, "0x", 2) == 0 ) {
50 } else if ( radix == 16 && SDL_isupperhex(*text) ) {
52 } else if ( radix == 16 && SDL_islowerhex(*text) ) {
57 value *= radix;
73 static size_t SDL_ScanUnsignedLong(const char *text, int radix, unsigned long *valuep)
78 if ( radix == 16 && SDL_strncmp(text, "0x", 2) == 0 ) {
85 } else if ( radix == 16 && SDL_isupperhex(*text) ) {
87 } else if ( radix == 16 && SDL_islowerhex(*text) ) {
92 value *= radix;
749 int radix = 10; local
1127 int radix = 10; local
    [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...]
UnsignedLongsTest.java 118 // loops through all legal radix values.
119 for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
120 // tests can successfully parse a number string with this radix.
121 String maxAsString = max.toString(radix);
122 assertEquals(max.longValue(), UnsignedLongs.parseUnsignedLong(maxAsString, radix));
127 String overflowAsString = overflow.toString(radix);
128 UnsignedLongs.parseUnsignedLong(overflowAsString, radix);
137 // Valid radix values are Character.MIN_RADIX to Character.MAX_RADIX
    [all...]
  /external/icu4c/i18n/
nfrs.h 86 // raise radix to the power exponent, only non-negative exponents
87 int64_t util64_pow(int32_t radix, uint32_t exponent);
90 uint32_t util64_tou(int64_t n, UChar* buffer, uint32_t buflen, uint32_t radix = 10, UBool raw = FALSE);
93 int64_t util64_utoi(const UChar* str, uint32_t radix = 10);
94 uint32_t util64_toa(int64_t n, char* buffer, uint32_t buflen, uint32_t radix = 10, UBool raw = FALSE);
95 int64_t util64_atoi(const char* str, uint32_t radix);
  /external/smali/smali/src/main/java/org/jf/smali/
LiteralTools.java 50 int radix = 10; local
62 radix = 16;
65 radix = 8;
72 byte maxValue = (byte)(Byte.MAX_VALUE / (radix / 2));
75 digit = Character.digit(byteChars[position], radix);
79 shiftedResult = (byte)(result * radix);
120 int radix = 10; local
132 radix = 16;
135 radix = 8;
142 short maxValue = (short)(Short.MAX_VALUE / (radix / 2))
184 int radix = 10; local
254 int radix = 10; local
    [all...]
  /external/icu4c/tools/genrb/
rbutil.h 25 int32_t itostr(char * buffer, int32_t i, uint32_t radix, int32_t pad);
  /external/webkit/Source/JavaScriptCore/runtime/
JSGlobalObjectFunctions.cpp 160 static int parseDigit(unsigned short c, int radix)
171 if (digit >= radix)
176 double parseIntOverflow(const char* s, int length, int radix)
188 int digit = parseDigit(*p, radix);
192 radixMultiplier *= radix;
198 double parseIntOverflow(const UChar* s, int length, int radix)
210 int digit = parseDigit(*p, radix);
214 radixMultiplier *= radix;
220 static double parseInt(const UString& s, int radix)
239 if ((radix == 0 || radix == 16) && length - p >= 2 && data[p] == '0' && (data[p + 1] == 'x' || data[p + 1] == (…)
463 int32_t radix = exec->argument(1).toInt32(exec); local
    [all...]
  /external/icu4c/data/xml/rbnf/
en.xml 17 <rbnfrule value="60" radix="60">?%%min?[, ??];</rbnfrule>
18 <rbnfrule value="3600" radix="60">?%%hr?[, ???];</rbnfrule>
33 <rbnfrule value="60" radix="60">?0???;</rbnfrule>
37 <rbnfrule value="60" radix="60">?00???;</rbnfrule>
38 <rbnfrule value="3600" radix="60">?#,##0?:???;</rbnfrule>
mt.xml 17 <rbnfrule value="60" radix="60">?%%min?[, ??];</rbnfrule>
18 <rbnfrule value="3600" radix="60">?%%hr?[, ???];</rbnfrule>
33 <rbnfrule value="60" radix="60">?0???;</rbnfrule>
37 <rbnfrule value="60" radix="60">?00???;</rbnfrule>
38 <rbnfrule value="3600" radix="60">?#,##0?:???;</rbnfrule>
ga.xml 21 <rbnfrule value="60" radix="60">?%%min?[, ??];</rbnfrule>
22 <rbnfrule value="3600" radix="60">?%%hr?[, ???];</rbnfrule>
46 <rbnfrule value="60" radix="60">?00????</rbnfrule>
47 <rbnfrule value="3600" radix="60">?#,##0????;</rbnfrule>
56 <rbnfrule value="60" radix="60">?0???;</rbnfrule>
60 <rbnfrule value="60" radix="60">?00???;</rbnfrule>
61 <rbnfrule value="3600" radix="60">?#,##0?:???;</rbnfrule>
  /libcore/luni/src/main/java/java/lang/
Short.java 199 * radix. The ASCII character \u002d ('-') is recognized as the minus sign.
203 * @param radix
204 * the radix to use when parsing.
206 * {@code radix}.
209 * {@code radix < Character.MIN_RADIX ||
210 * radix > Character.MAX_RADIX}.
212 public static short parseShort(String string, int radix) throws NumberFormatException {
213 int intValue = Integer.parseInt(string, radix);
238 * specified short value with radix 10.
265 * radix
    [all...]

Completed in 685 milliseconds

1 2 3 4 5 6 7 8 91011>>