Searched refs:sizes (Results 1 - 25 of 104) sorted by relevance

12345

/external/dropbear/libtommath/
H A Dbn_mp_prime_rabin_miller_trials.c21 } sizes[] = { variable in typeref:struct:__anon5122
37 for (x = 0; x < (int)(sizeof(sizes)/(sizeof(sizes[0]))); x++) {
38 if (sizes[x].k == size) {
39 return sizes[x].t;
40 } else if (sizes[x].k > size) {
41 return (x == 0) ? sizes[0].t : sizes[x - 1].t;
44 return sizes[x-1].t + 1;
/external/webkit/Source/WebCore/platform/chromium/
H A DSSLKeyGeneratorChromium.cpp43 void getSupportedKeySizes(Vector<String>& sizes) argument
45 sizes.resize(2);
46 sizes[0] = keygenMenuHighGradeKeySize();
47 sizes[1] = keygenMenuMediumGradeKeySize();
H A DThemeChromiumMac.mm214 static LengthSize sizeFromNSControlSize(NSControlSize nsControlSize, const LengthSize& zoomedSize, float zoomFactor, const IntSize* sizes)
216 IntSize controlSize = sizes[nsControlSize];
227 static LengthSize sizeFromFont(const Font& font, const LengthSize& zoomedSize, float zoomFactor, const IntSize* sizes)
229 return sizeFromNSControlSize(controlSizeForFont(font), zoomedSize, zoomFactor, sizes);
232 static ControlSize controlSizeFromPixelSize(const IntSize* sizes, const IntSize& minZoomedSize, float zoomFactor)
234 if (minZoomedSize.width() >= static_cast<int>(sizes[NSRegularControlSize].width() * zoomFactor) &&
235 minZoomedSize.height() >= static_cast<int>(sizes[NSRegularControlSize].height() * zoomFactor))
237 if (minZoomedSize.width() >= static_cast<int>(sizes[NSSmallControlSize].width() * zoomFactor) &&
238 minZoomedSize.height() >= static_cast<int>(sizes[NSSmallControlSize].height() * zoomFactor))
243 static void setControlSize(NSCell* cell, const IntSize* sizes, cons
[all...]
/external/v8/test/mjsunit/
H A Dlarge-object-literal.js28 // Test that we can create object literals of various sizes.
49 // The sizes to test.
50 var sizes = [0, 1, 2, 100, 200, 400, 1000]; variable
53 for (var i = 0; i < sizes.length; i++) {
54 testLiteral(sizes[i]);
H A Dobject-literal-gc.js59 // The sizes to test.
60 var sizes = [0, 1, 2, 100, 200, 400, 1000]; variable
63 for (var i = 0; i < sizes.length; i++) {
64 testLiteral(sizes[i]);
H A Dbig-array-literal.js83 // The sizes to test.
84 var sizes = [1, 2, 100, 200, 300]; variable
87 for (var i = 0; i < sizes.length; i++) {
88 testLiteral(sizes[i], false);
89 testLiteral(sizes[i], true);
H A Dbig-object-literal.js86 // The sizes to test.
87 var sizes = [1, 2, 100, 200]; variable
90 for (var i = 0; i < sizes.length; i++) {
91 testLiteral(sizes[i], false);
92 testLiteral(sizes[i], true);
H A Dsparse-array-reverse.js66 var sizes = [140, 40000, VERYLARGE]; variable
72 for (var size_pos = 0; size_pos < sizes.length; size_pos++) {
73 var size = sizes[size_pos];
/external/v8/test/mjsunit/regress/
H A Dregress-1401.js31 var sizes = new Array();
34 sizes[i] = 0;
39 var t = (sizes[++bottom] = size);
/external/dropbear/libtommath/etc/
H A D2kprime.c5 int sizes[] = {256, 512, 768, 1024, 1536, 2048, 3072, 4096}; variable
19 for (x = 0; x < (int)(sizeof(sizes) / sizeof(sizes[0])); x++) {
21 mp_2expt(&q, sizes[x]);
31 printf("No primes of size %d found\n", sizes[x]);
65 ++sizes[x];
70 printf("\n\n%d-bits (k = %lu) = %s\n", sizes[x], z, buf);
71 fprintf(out, "%d-bits (k = %lu) = %s\n", sizes[x], z, buf); fflush(out);
H A Ddrprime.c4 int sizes[] = { 1+256/DIGIT_BIT, 1+512/DIGIT_BIT, 1+768/DIGIT_BIT, 1+1024/DIGIT_BIT, 1+2048/DIGIT_BIT, 1+4096/DIGIT_BIT }; variable
16 for (x = 0; x < (int)(sizeof(sizes)/sizeof(sizes[0])); x++) {
18 printf("Seeking a %d-bit safe prime\n", sizes[x] * DIGIT_BIT);
19 mp_grow(&a, sizes[x]);
21 for (y = 1; y < sizes[x]; y++) {
27 a.used = sizes[x];
46 printf("Error not DR modulus\n"); sizes[x] += 1; goto top;
/external/webkit/Source/WebCore/platform/
H A DSSLKeyGenerator.h36 // Returns strings representing key sizes that may be used
39 void getSupportedKeySizes(Vector<String>& sizes);
/external/openssl/crypto/bn/
H A Dbnspeed.c165 static int sizes[NUM_SIZES]={128,256,512,1024,2048}; variable
166 /*static int sizes[NUM_SIZES]={59,179,299,419,539}; */
193 BN_rand(a,sizes[i],1,0);
196 BN_rand(b,sizes[j],1,0);
201 printf("mul %4d x %4d -> %8.3fms\n",sizes[i],sizes[j],tm*1000.0/num);
209 BN_rand(a,sizes[i],1,0);
214 printf("sqr %4d x %4d -> %8.3fms\n",sizes[i],sizes[i],tm*1000.0/num);
221 BN_rand(a,sizes[
[all...]
H A Dexpspeed.c194 static int sizes[NUM_SIZES]={128,256,512,1024,2048,4096,8192}; variable
196 /*static int sizes[NUM_SIZES]={59,179,299,419,539}; */
245 if (!BN_generate_prime(c,sizes[i],0,ADD,REM,genprime_cb,NULL)) goto err;
254 if (!BN_pseudo_rand(a,sizes[i],1,0)) goto err;
256 if (!BN_pseudo_rand(b,sizes[i],1,0)) goto err;
259 if (!BN_pseudo_rand(c,sizes[i],1,1)) goto err;
328 sizes[i],sizes[i],sizes[i],tm*1000.0/num,tm*mul_c[i]/num, num);
/external/dropbear/libtomcrypt/testprof/
H A Decc_test.c5 static int sizes[] = { variable
47 for (x = 0; x < (int)(sizeof(sizes)/sizeof(sizes[0])); x++) {
50 if (sizes[z] < ltc_ecc_sets[z].size) break;
64 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]);
65 DO(mp_read_unsigned_bin(rA, buf, sizes[x]));
66 LTC_ARGCHK(yarrow_read(buf, sizes[x], &yarrow_prng) == sizes[x]);
67 DO(mp_read_unsigned_bin(rB, buf, sizes[
[all...]
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
H A DSampleList.java19 long[] sizes; field in class:SampleList
55 sizes = new long[l2i(sampleSizeBox.getSampleCount())];
56 Arrays.fill(sizes, sampleSizeBox.getSampleSize());
58 sizes = sampleSizeBox.getSampleSizes();
60 offsets = new long[sizes.length];
66 long sampleSize = sizes[sampleIndex];
90 if (sizes == null || offsets == null) {
91 sizes = new long[0];
98 // We have now a map from all sample offsets to their sizes
105 long[] nuSizes = new long[sizes
[all...]
/external/chromium/chrome/common/
H A Dweb_apps_unittest.cc174 std::vector<gfx::Size> sizes; local
175 bool result = web_apps::ParseIconSizes(ASCIIToUTF16(data[i].input), &sizes,
180 ASSERT_EQ(data[i].expected_size_count, sizes.size());
181 if (!sizes.empty()) {
182 ASSERT_EQ(data[i].width1, sizes[0].width());
183 ASSERT_EQ(data[i].height1, sizes[0].height());
185 if (sizes.size() > 1) {
186 ASSERT_EQ(data[i].width2, sizes[1].width());
187 ASSERT_EQ(data[i].height2, sizes[1].height());
H A Dweb_apps.cc41 // Sizes a single size (the width or height) from a 'sizes' attribute. A size
70 if (!link.hasAttribute("sizes"))
75 if (!web_apps::ParseIconSizes(link.getAttribute("sizes"), &icon_sizes,
113 std::vector<string16> sizes; local
114 base::SplitStringDontTrim(text, L'x', &sizes);
115 if (sizes.size() != 2)
118 return gfx::Size(ParseSingleIconSize(sizes[0]),
119 ParseSingleIconSize(sizes[1]));
123 std::vector<gfx::Size>* sizes,
135 sizes
122 ParseIconSizes(const string16& text, std::vector<gfx::Size>* sizes, bool* is_any) argument
[all...]
/external/regex-re2/benchlog/
H A Dmktable21 @sizes = (
48 for(my $i=0; $i<@sizes; $i++) {
49 my $key = sprintf("%s%s/%s", $name, $who, $sizes[$i]);
62 my $n = @sizes;
65 for($i=0; $i<@sizes; $i+=3) {
66 printf JGR " hash_at $i hash_label at $i : $sizes[$i]\n";
/external/skia/tests/
H A DStreamTest.cpp105 const size_t sizes[] = { local
114 char buffer[sizeof(sizes) * 4];
117 for (i = 0; i < SK_ARRAY_COUNT(sizes); ++i) {
118 bool success = wstream.writePackedUInt(sizes[i]);
124 for (i = 0; i < SK_ARRAY_COUNT(sizes); ++i) {
126 if (sizes[i] != n) {
127 SkDebugf("-- %d: sizes:%x n:%x\n", i, sizes[i], n);
129 REPORTER_ASSERT(reporter, sizes[i] == n);
/external/webkit/Source/WebCore/platform/mac/
H A DThemeMac.mm101 static LengthSize sizeFromNSControlSize(NSControlSize nsControlSize, const LengthSize& zoomedSize, float zoomFactor, const IntSize* sizes)
103 IntSize controlSize = sizes[nsControlSize];
114 static LengthSize sizeFromFont(const Font& font, const LengthSize& zoomedSize, float zoomFactor, const IntSize* sizes)
116 return sizeFromNSControlSize(controlSizeForFont(font), zoomedSize, zoomFactor, sizes);
119 static ControlSize controlSizeFromPixelSize(const IntSize* sizes, const IntSize& minZoomedSize, float zoomFactor)
121 if (minZoomedSize.width() >= static_cast<int>(sizes[NSRegularControlSize].width() * zoomFactor) &&
122 minZoomedSize.height() >= static_cast<int>(sizes[NSRegularControlSize].height() * zoomFactor))
124 if (minZoomedSize.width() >= static_cast<int>(sizes[NSSmallControlSize].width() * zoomFactor) &&
125 minZoomedSize.height() >= static_cast<int>(sizes[NSSmallControlSize].height() * zoomFactor))
130 static void setControlSize(NSCell* cell, const IntSize* sizes, cons
[all...]
/external/clang/lib/AST/
H A DExternalASTSource.cpp62 void ExternalASTSource::getMemoryBufferSizes(MemoryBufferSizes &sizes) const { }
/external/webkit/Source/WebCore/rendering/
H A DRenderThemeSafari.cpp132 static NSControlSize controlSizeFromRect(const IntRect& rect, const IntSize sizes[]) argument
134 if (sizes[NSRegularControlSize].height() == rect.height())
136 else if (sizes[NSMiniControlSize].height() == rect.height())
184 static float sizes[] = { 13.0f, 11.0f, 9.0f }; local
186 return sizes[controlSize];
350 void RenderThemeSafari::setControlSize(NSCell* cell, const IntSize* sizes, const IntSize& minSize)
353 if (minSize.width() >= sizes[NSRegularControlSize].width() &&
354 minSize.height() >= sizes[NSRegularControlSize].height())
356 else if (minSize.width() >= sizes[NSSmallControlSize].width() &&
357 minSize.height() >= sizes[NSSmallControlSiz
427 static const IntSize sizes[3] = { IntSize(14, 14), IntSize(12, 12), IntSize(10, 10) }; local
466 static const IntSize sizes[3] = { IntSize(14, 15), IntSize(12, 13), IntSize(10, 10) }; local
551 static const IntSize sizes[3] = { IntSize(0, 21), IntSize(0, 18), IntSize(0, 15) }; local
662 static const IntSize sizes[3] = { IntSize(0, 21), IntSize(0, 18), IntSize(0, 15) }; local
941 static const IntSize sizes[3] = { IntSize(9, 0), IntSize(5, 0), IntSize(0, 0) }; local
1038 static const IntSize sizes[3] = { IntSize(0, 22), IntSize(0, 19), IntSize(0, 15) }; local
1098 static const IntSize sizes[3] = { IntSize(16, 13), IntSize(13, 11), IntSize(13, 9) }; local
1111 static const IntSize sizes[3] = { IntSize(19, 13), IntSize(17, 11), IntSize(17, 9) }; local
[all...]
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
H A DDDSLoader.java112 private int[] sizes; field in class:DDSLoader
135 return new Image(pixelFormat, width, height, depth, data, sizes);
147 return new Image(pixelFormat, width, height, depth, data, sizes);
388 * Computes the sizes of each mipmap level in bytes, and stores it in sizes_[].
394 sizes = new int[mipMapCount];
404 sizes[i] = ((size + 3) / 4) * 4;
450 byte[] data = new byte[sizes[mip]];
548 byte[] data = new byte[sizes[mip]];
555 byte[] data = new byte[sizes[mip]];
590 byte[] data = new byte[sizes[mi
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/effect/
H A DParticlePointMesh.java89 // set sizes
123 FloatBuffer sizes = (FloatBuffer) svb.getData();
133 sizes.rewind();
142 sizes.put(p.size * sizeScale);
157 sizes.flip();
163 svb.updateData(sizes);

Completed in 831 milliseconds

12345