Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 1033) sorted by relevance

12345678910>>...42

/external/clearsilver/cs/
Dtest_abs_max_min.cs.gold37 max(5,10) = 10
38 max(-5,10) = 10
39 max(-5,-10) = -5
40 max(5,-10) = 5
44 max(-10, -10) = -10
45 max(-10, -10) = -10
49 max(-10, -8) = -8
50 max(-8, -10) = -8
54 max(-10, -6) = -6
55 max(-6, -10) = -6
[all …]
Dtest_abs_max_min.cs16 max(5,10) = <?cs var:max(5, 10) ?>
17 max(-5,10) = <?cs var:max(-5, 10) ?>
18 max(-5,-10) = <?cs var:max(-5, -10) ?>
19 max(5,-10) = <?cs var:max(5, -10) ?>
23 max(<?cs var:x ?>, <?cs var:y ?>) = <?cs var:max(x,y) ?>
24 max(<?cs var:y ?>, <?cs var:x ?>) = <?cs var:max(y,x) ?>
/external/v8/test/mjsunit/
Dmath-min-max.js74 assertEquals(Number.NEGATIVE_INFINITY, Math.max());
75 assertEquals(1, Math.max(1));
76 assertEquals(2, Math.max(1, 2));
77 assertEquals(2, Math.max(2, 1));
78 assertEquals(3, Math.max(1, 2, 3));
79 assertEquals(3, Math.max(3, 2, 1));
80 assertEquals(3, Math.max(2, 3, 1));
81 assertEquals(3.3, Math.max(1.1, 2.2, 3.3));
82 assertEquals(3.3, Math.max(3.3, 2.2, 1.1));
83 assertEquals(3.3, Math.max(2.2, 3.3, 1.1));
[all …]
/external/skia/src/core/
DSkBitmapSampler.h25 typedef int (*SkTileModeProc)(int value, unsigned max);
99 static inline int do_clamp(int index, unsigned max) in do_clamp() argument
101 SkASSERT((int)max >= 0); in do_clamp()
104 if (index > (int)max) in do_clamp()
105 index = max; in do_clamp()
109 if ((unsigned)index > max) in do_clamp()
114 index = max; in do_clamp()
120 static inline int do_repeat_mod(int index, unsigned max) in do_repeat_mod() argument
122 SkASSERT((int)max >= 0); in do_repeat_mod()
124 if ((unsigned)index > max) in do_repeat_mod()
[all …]
DSkBitmapProcState_matrixProcs.cpp31 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max) argument
32 #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max) argument
33 #define TILEX_LOW_BITS(fx, max) (((fx) >> 12) & 0xF) argument
34 #define TILEY_LOW_BITS(fy, max) (((fy) >> 12) & 0xF) argument
43 #define TILEX_PROCF(fx, max) (((fx) & 0xFFFF) * ((max) + 1) >> 16) argument
44 #define TILEY_PROCF(fy, max) (((fy) & 0xFFFF) * ((max) + 1) >> 16) argument
45 #define TILEX_LOW_BITS(fx, max) ((((fx) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
46 #define TILEY_LOW_BITS(fy, max) ((((fy) & 0xFFFF) * ((max) + 1) >> 12) & 0xF) argument
60 #define TILEX_PROCF(fx, max) (tileProcX(fx) * ((max) + 1) >> 16) argument
61 #define TILEY_PROCF(fy, max) (tileProcY(fy) * ((max) + 1) >> 16) argument
[all …]
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Math/
D15.8.2.11.js53 …tem++] = new TestCase( SECTION, "Math.max.length", 2, Math.max.length );
55 …ray[item++] = new TestCase( SECTION, "Math.max()", -Infinity, Math.max() );
56 … = new TestCase( SECTION, "Math.max(void 0, 1)", Number.NaN, Math.max( void 0, 1 ) );
57 …w TestCase( SECTION, "Math.max(void 0, void 0)", Number.NaN, Math.max( void 0, void 0 ) );
58 …+] = new TestCase( SECTION, "Math.max(null, 1)", 1, Math.max( null, 1 ) );
59 …] = new TestCase( SECTION, "Math.max(-1, null)", 0, Math.max( -1, null ) );
60 …] = new TestCase( SECTION, "Math.max(true, false)", 1, Math.max(true,false) );
62 …= new TestCase( SECTION, "Math.max('-99','99')", 99, Math.max( "-99","99") );
64 …w TestCase( SECTION, "Math.max(NaN, Infinity)", Number.NaN, Math.max(Number.NaN,Number.P…
65 … new TestCase( SECTION, "Math.max(NaN, 0)", Number.NaN, Math.max(Number.NaN, 0) );
[all …]
/external/e2fsprogs/tests/f_h_reindex/
Dexpect.15 Problem in HTREE directory inode 16001: node (1) has bad max hash
7 Problem in HTREE directory inode 16001: node (2) has bad max hash
9 Problem in HTREE directory inode 16001: node (3) has bad max hash
11 Problem in HTREE directory inode 16001: node (4) has bad max hash
13 Problem in HTREE directory inode 16001: node (5) has bad max hash
15 Problem in HTREE directory inode 16001: node (6) has bad max hash
17 Problem in HTREE directory inode 16001: node (7) has bad max hash
21 Problem in HTREE directory inode 24001: node (1) has bad max hash
22 Problem in HTREE directory inode 24001: node (2) has bad max hash
24 Problem in HTREE directory inode 24001: node (3) has bad max hash
[all …]
/external/qemu/android/utils/
Dreflist.c27 if (l->max > 1) { in areflist_setEmpty()
29 l->max = 1; in areflist_setEmpty()
39 void** items = (l->max == 1) ? &l->u.item0 : l->u.items; in areflist_indexOf()
54 if (newcount > l->max) { in areflist_grow()
55 int oldmax = l->max == 1 ? 0 : l->max; in areflist_grow()
57 void** olditems = l->max == 1 ? NULL : l->u.items; in areflist_grow()
66 l->max = (uint16_t) newmax; in areflist_grow()
77 if (l->count >= l->max) { in areflist_add()
106 if (l->count <= 0 && l->max > 1) { in areflist_pop()
108 l->max = 1; in areflist_pop()
[all …]
/external/zlib/examples/
Denough.c167 local int max; /* maximum allowed bit length for the codes */ variable
176 #define INDEX(i,j,k) (((size_t)((i-1)>>1)*((i-2)>>1)+(j>>1)-1)*(max-1)+k-1)
214 assert(syms > left && left > 0 && len < max); in count()
231 most = (((code_t)left << (max - len)) - syms) / in count()
232 (((code_t)1 << (max - len)) - 1); in count()
342 for (use = root + 1; use <= max; use++) in examine()
367 most = (((code_t)left << (max - len)) - syms) / in examine()
368 (((code_t)1 << (max - len)) - 1); in examine()
407 for (n = 0; n <= max; n++) in enough()
412 if (root < max) /* otherwise, there's only a base table */ in enough()
[all …]
/external/clearsilver/util/
Dsnprintf.c105 char *value, int flags, int min, int max);
107 long value, int base, int min, int max, int flags);
109 LDOUBLE fvalue, int min, int max, int flags);
151 int max; in dopr() local
160 max = -1; in dopr()
233 if (max < 0) in dopr()
234 max = 0; in dopr()
235 max = 10*max + char_to_int (ch); in dopr()
240 max = va_arg (args, int); in dopr()
279 total += fmtint (buffer, &currlen, maxlen, value, 10, min, max, flags); in dopr()
[all …]
Dneo_rand.c37 int neo_rand (int max) in neo_rand() argument
46 r = drand48() * max; in neo_rand()
48 r = random() * max; in neo_rand()
50 r = rand() * max; in neo_rand()
55 int neo_rand_string (char *s, int max) in neo_rand_string() argument
60 size = neo_rand(max-1); in neo_rand_string()
73 int neo_rand_word (char *s, int max) in neo_rand_word() argument
109 strncpy (s, word, max); in neo_rand_word()
110 s[max-1] = '\0'; in neo_rand_word()
/external/webkit/WebCore/platform/graphics/
DColor.cpp55 return 0xFF000000 | max(0, min(r, 255)) << 16 | max(0, min(g, 255)) << 8 | max(0, min(b, 255)); in makeRGB()
60 …return max(0, min(a, 255)) << 24 | max(0, min(r, 255)) << 16 | max(0, min(g, 255)) << 8 | max(0, m… in makeRGBA()
66 return max(0, min(static_cast<int>(lroundf(255.0f * f)), 255)); in colorFloatToRGBAByte()
223 float v = max(r, max(g, b)); in light()
248 float v = max(r, max(g, b)); in dark()
249 float multiplier = max(0.0f, (v - 0.33f) / v); in dark()
332 double max = std::max(std::max(r, g), b); in getHSL() local
335 if (max == min) in getHSL()
337 else if (max == r) in getHSL()
338 hue = (60.0 * ((g - b) / (max - min))) + 360.0; in getHSL()
[all …]
/external/openssl/crypto/bio/
Db_print.c183 int max; in _dopr() local
191 max = -1; in _dopr()
253 if (max < 0) in _dopr()
254 max = 0; in _dopr()
255 max = 10 * max + char_to_int(ch); in _dopr()
258 max = va_arg(args, int); in _dopr()
310 value, 10, min, max, flags); in _dopr()
337 min, max, flags); in _dopr()
345 fvalue, min, max, flags); in _dopr()
369 if (max < 0) { in _dopr()
[all …]
/external/openssl/crypto/des/
Ddes_opts.c426 double d,tm[16],max=0; in main() local
506 max=tm[0]; in main()
510 if (max < tm[1]) { max=tm[1]; max_idx=1; } in main()
513 if (max < tm[2]) { max=tm[2]; max_idx=2; } in main()
518 if (max < tm[3]) { max=tm[3]; max_idx=3; } in main()
521 if (max < tm[4]) { max=tm[4]; max_idx=4; } in main()
524 if (max < tm[5]) { max=tm[5]; max_idx=5; } in main()
529 if (max < tm[6]) { max=tm[6]; max_idx=6; } in main()
532 if (max < tm[7]) { max=tm[7]; max_idx=7; } in main()
535 if (max < tm[8]) { max=tm[8]; max_idx=8; } in main()
[all …]
/external/tagsoup/src/org/ccil/cowan/tagsoup/
DAttributesImpl.java209 int max = length * 5; in getIndex() local
210 for (int i = 0; i < max; i += 5) { in getIndex()
228 int max = length * 5; in getIndex() local
229 for (int i = 0; i < max; i += 5) { in getIndex()
250 int max = length * 5; in getType() local
251 for (int i = 0; i < max; i += 5) { in getType()
270 int max = length * 5; in getType() local
271 for (int i = 0; i < max; i += 5) { in getType()
292 int max = length * 5; in getValue() local
293 for (int i = 0; i < max; i += 5) { in getValue()
[all …]
/external/quake/quake/src/QW/client/
Dcl_cam.c203 float f, max; in InitFlyby() local
213 max = 1000; in InitFlyby()
216 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) { in InitFlyby()
217 max = f; in InitFlyby()
222 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) { in InitFlyby()
223 max = f; in InitFlyby()
227 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) { in InitFlyby()
228 max = f; in InitFlyby()
232 if ((f = Cam_TryFlyby(self, player, vec2, checkvis)) < max) { in InitFlyby()
233 max = f; in InitFlyby()
[all …]
/external/apache-http/src/org/apache/http/conn/params/
DConnPerRouteBean.java73 public void setDefaultMaxPerRoute(int max) { in setDefaultMaxPerRoute() argument
74 if (max < 1) { in setDefaultMaxPerRoute()
78 this.defaultMax = max; in setDefaultMaxPerRoute()
81 public void setMaxForRoute(final HttpRoute route, int max) { in setMaxForRoute() argument
86 if (max < 1) { in setMaxForRoute()
90 this.maxPerHostMap.put(route, Integer.valueOf(max)); in setMaxForRoute()
98 Integer max = this.maxPerHostMap.get(route); in getMaxForRoute() local
99 if (max != null) { in getMaxForRoute()
100 return max.intValue(); in getMaxForRoute()
/external/openssl/crypto/bn/
Dbn_add.c107 int max,min,dif; in BN_uadd() local
116 max = a->top; in BN_uadd()
118 dif = max - min; in BN_uadd()
120 if (bn_wexpand(r,max+1) == NULL) in BN_uadd()
123 r->top=max; in BN_uadd()
168 int max,min,dif; in BN_usub() local
178 max = a->top; in BN_usub()
180 dif = max - min; in BN_usub()
188 if (bn_wexpand(r,max) == NULL) return(0); in BN_usub()
237 memcpy(rp,ap,sizeof(*rp)*(max-i)); in BN_usub()
[all …]
/external/skia/src/effects/
DSkTableMaskFilter.cpp95 uint8_t max) { in MakeClipTable() argument
96 if (0 == max) { in MakeClipTable()
97 max = 1; in MakeClipTable()
99 if (min >= max) { in MakeClipTable()
100 min = max - 1; in MakeClipTable()
102 SkASSERT(min < max); in MakeClipTable()
104 SkFixed scale = (1 << 16) * 255 / (max - min); in MakeClipTable()
106 for (int i = min + 1; i < max; i++) { in MakeClipTable()
111 memset(table + max, 255, 256 - max); in MakeClipTable()
120 SkDebugf("%d %d start [%d]", min, max, j); in MakeClipTable()
/external/dropbear/libtommath/
Dbn_s_mp_add.c23 int olduse, res, min, max; in s_mp_add() local
30 max = a->used; in s_mp_add()
34 max = b->used; in s_mp_add()
39 if (c->alloc < max + 1) { in s_mp_add()
40 if ((res = mp_grow (c, max + 1)) != MP_OKAY) { in s_mp_add()
47 c->used = max + 1; in s_mp_add()
80 if (min != max) { in s_mp_add()
81 for (; i < max; i++) { in s_mp_add()
/external/zlib/
Dinftrees.c42 unsigned min, max; /* minimum and maximum code lengths */ local
114 for (max = MAXBITS; max >= 1; max--)
115 if (count[max] != 0) break;
116 if (root > max) root = max;
117 if (max == 0) { /* no symbols to code at all */
126 for (min = 1; min < max; min++)
137 if (left > 0 && (type == CODES || max != 1))
255 if (len == max) break;
271 while (curr + drop < max) {
/external/blktrace/
Dstats.h30 __u64 max; member
39 mm->max = 0; in minmax_init()
51 if (value > mm->max) in minmax_account()
52 mm->max = value; in minmax_account()
62 if (src->max > dst->max) in minmax_merge()
63 dst->max = src->max; in minmax_merge()
72 mm->max = cpu_to_be64(mm->max); in minmax_to_be()
92 (unsigned long long)mm->min, (unsigned long long)mm->max, in minmax_print()
/external/ppp/pppd/plugins/radius/
Dradrealms.c51 auths->max = 0; in lookup_realm()
53 accts->max = 0; in lookup_realm()
96 if (s->max >= SERVER_MAX) in lookup_realm()
115 s->name[s->max] = strdup(p); in lookup_realm()
123 s->port[s->max] = atoi(p); in lookup_realm()
124 info(" - Port is '%d'", s->port[s->max]); in lookup_realm()
125 s->max++; in lookup_realm()
131 if (accts->max) in lookup_realm()
134 if (auths->max) in lookup_realm()
/external/libxml2/
Duri.c989 int max; in xmlSaveUri() local
994 max = 80; in xmlSaveUri()
995 ret = (xmlChar *) xmlMallocAtomic((max + 1) * sizeof(xmlChar)); in xmlSaveUri()
1006 if (len >= max) { in xmlSaveUri()
1007 max *= 2; in xmlSaveUri()
1008 temp = (xmlChar *) xmlRealloc(ret, (max + 1) * sizeof(xmlChar)); in xmlSaveUri()
1019 if (len >= max) { in xmlSaveUri()
1020 max *= 2; in xmlSaveUri()
1021 temp = (xmlChar *) xmlRealloc(ret, (max + 1) * sizeof(xmlChar)); in xmlSaveUri()
1035 if (len + 3 >= max) { in xmlSaveUri()
[all …]
/external/chromium/base/
Dhistogram.h60 #define HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) do { \ argument
62 name, min, max, bucket_count, Histogram::kNoFlags); \
71 #define HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) do { \ argument
73 name, min, max, bucket_count, Histogram::kNoFlags); \
78 #define HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \ argument
80 name, min, max, bucket_count, Histogram::kNoFlags); \
81 if ((sample) < (max)) counter->AddTime(sample); \
102 #define DHISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument
103 HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count)
104 #define DHISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) \ argument
[all …]

12345678910>>...42