Home
last modified time | relevance | path

Searched refs:table_size (Results 1 – 25 of 52) sorted by relevance

123

/external/chromium_org/sdch/open-vcdiff/src/
Dblockhash.cc63 const size_t table_size = CalcTableSize(source_size_); in Init() local
64 if (table_size == 0) { in Init()
71 hash_table_mask_ = static_cast<uint32_t>(table_size - 1); in Init()
72 hash_table_.resize(table_size, -1); in Init()
116 size_t table_size = 1; in CalcTableSize() local
119 while (table_size < min_size) { in CalcTableSize()
120 table_size <<= 1; in CalcTableSize()
122 if (table_size <= 0) { in CalcTableSize()
125 << "): resulting table_size " << table_size in CalcTableSize()
131 if ((table_size & (table_size - 1)) != 0) { in CalcTableSize()
[all …]
/external/chromium_org/third_party/brotli/src/brotli/dec/
Dhuffman.c80 int table_size; /* size of current table */ in BrotliBuildHuffmanTable() local
111 table_size = 1 << table_bits; in BrotliBuildHuffmanTable()
112 total_size = table_size; in BrotliBuildHuffmanTable()
132 ReplicateValue(&table[key], step, table_size, code); in BrotliBuildHuffmanTable()
143 table += table_size; in BrotliBuildHuffmanTable()
145 table_size = 1 << table_bits; in BrotliBuildHuffmanTable()
146 total_size += table_size; in BrotliBuildHuffmanTable()
153 ReplicateValue(&table[key >> root_bits], step, table_size, code); in BrotliBuildHuffmanTable()
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/
Dttmtx.c62 FT_ULong tag, table_size; in tt_face_load_hmtx() local
80 error = face->goto_table( face, tag, stream, &table_size ); in tt_face_load_hmtx()
85 *ptable_size = table_size; in tt_face_load_hmtx()
91 *ptable_size = error ? 0 : table_size; in tt_face_load_hmtx()
218 FT_ULong table_pos, table_size, table_end; in tt_face_get_metrics() local
229 table_size = face->vert_metrics_size; in tt_face_get_metrics()
235 table_size = face->horz_metrics_size; in tt_face_get_metrics()
238 table_end = table_pos + table_size; in tt_face_get_metrics()
Dttkern.c48 FT_ULong table_size; in tt_face_load_kern() local
56 error = face->goto_table( face, TTAG_kern, stream, &table_size ); in tt_face_load_kern()
60 if ( table_size < 4 ) /* the case of a malformed table */ in tt_face_load_kern()
68 if ( FT_FRAME_EXTRACT( table_size, face->kern_table ) ) in tt_face_load_kern()
75 face->kern_table_size = table_size; in tt_face_load_kern()
78 p_limit = p + table_size; in tt_face_load_kern()
Dttsbit.c50 FT_ULong num_strikes, table_size; in tt_face_load_eblc() local
59 error = face->goto_table( face, TTAG_CBLC, stream, &table_size ); in tt_face_load_eblc()
61 error = face->goto_table( face, TTAG_EBLC, stream, &table_size ); in tt_face_load_eblc()
63 error = face->goto_table( face, TTAG_bloc, stream, &table_size ); in tt_face_load_eblc()
67 if ( table_size < 8 ) in tt_face_load_eblc()
74 if ( FT_FRAME_EXTRACT( table_size, face->sbit_table ) ) in tt_face_load_eblc()
77 face->sbit_table_size = table_size; in tt_face_load_eblc()
80 p_limit = p + table_size; in tt_face_load_eblc()
97 if ( 8 + 48UL * count > table_size ) in tt_face_load_eblc()
/external/chromium_org/content/renderer/pepper/
Dpepper_truetype_font_linux.cc133 size_t table_size = 0; in GetTable() local
136 if (!GetFontTable(fd_, table_tag, offset, NULL, &table_size)) in GetTable()
139 table_size = std::min(table_size, static_cast<size_t>(max_data_length)); in GetTable()
140 data->resize(table_size); in GetTable()
145 &table_size)) in GetTable()
148 return base::checked_cast<int32_t>(table_size); in GetTable()
Dpepper_truetype_font_win.cc215 DWORD table_size = GetFontData(hdc, table_tag, 0, NULL, 0); in GetTable() local
216 if (table_size == GDI_ERROR) in GetTable()
219 DWORD safe_offset = std::min(static_cast<DWORD>(offset), table_size); in GetTable()
221 std::min(table_size - safe_offset, static_cast<DWORD>(max_data_length)); in GetTable()
224 table_size = 0; in GetTable()
226 table_size = GetFontData(hdc, in GetTable()
231 if (table_size == GDI_ERROR) in GetTable()
234 return static_cast<int32_t>(table_size); in GetTable()
Dpepper_truetype_font_mac.mm294 CFIndex table_size = CFDataGetLength(table_ref);
296 std::min(base::checked_cast<CFIndex>(offset), table_size);
298 std::min(table_size - safe_offset,
365 int32_t table_size = GetTable(table_tags[i],
368 if (table_size < 0)
369 return table_size; // PPAPI error code.
382 CalculateChecksum(&font[table_offset], table_size));
384 entry->logical_length = base::HostToNet32(table_size);
/external/chromium_org/third_party/freetype/src/sfnt/
Dttmtx.c62 FT_ULong tag, table_size; in tt_face_load_hmtx() local
80 error = face->goto_table( face, tag, stream, &table_size ); in tt_face_load_hmtx()
84 *ptable_size = table_size; in tt_face_load_hmtx()
211 FT_ULong table_pos, table_size, table_end; in tt_face_get_metrics() local
222 table_size = face->vert_metrics_size; in tt_face_get_metrics()
228 table_size = face->horz_metrics_size; in tt_face_get_metrics()
231 table_end = table_pos + table_size; in tt_face_get_metrics()
Dttkern.c48 FT_ULong table_size; in tt_face_load_kern() local
56 error = face->goto_table( face, TTAG_kern, stream, &table_size ); in tt_face_load_kern()
60 if ( table_size < 4 ) /* the case of a malformed table */ in tt_face_load_kern()
68 if ( FT_FRAME_EXTRACT( table_size, face->kern_table ) ) in tt_face_load_kern()
75 face->kern_table_size = table_size; in tt_face_load_kern()
78 p_limit = p + table_size; in tt_face_load_kern()
/external/freetype/src/sfnt/
Dttmtx.c62 FT_ULong tag, table_size; in tt_face_load_hmtx() local
80 error = face->goto_table( face, tag, stream, &table_size ); in tt_face_load_hmtx()
84 *ptable_size = table_size; in tt_face_load_hmtx()
214 FT_ULong table_pos, table_size, table_end; in tt_face_get_metrics() local
225 table_size = face->vert_metrics_size; in tt_face_get_metrics()
231 table_size = face->horz_metrics_size; in tt_face_get_metrics()
234 table_end = table_pos + table_size; in tt_face_get_metrics()
Dttkern.c48 FT_ULong table_size; in tt_face_load_kern() local
56 error = face->goto_table( face, TTAG_kern, stream, &table_size ); in tt_face_load_kern()
60 if ( table_size < 4 ) /* the case of a malformed table */ in tt_face_load_kern()
68 if ( FT_FRAME_EXTRACT( table_size, face->kern_table ) ) in tt_face_load_kern()
75 face->kern_table_size = table_size; in tt_face_load_kern()
78 p_limit = p + table_size; in tt_face_load_kern()
Dttsbit.c50 FT_ULong table_size; in tt_face_load_sbit() local
58 error = face->goto_table( face, TTAG_CBLC, stream, &table_size ); in tt_face_load_sbit()
63 error = face->goto_table( face, TTAG_EBLC, stream, &table_size ); in tt_face_load_sbit()
65 error = face->goto_table( face, TTAG_bloc, stream, &table_size ); in tt_face_load_sbit()
72 error = face->goto_table( face, TTAG_sbix, stream, &table_size ); in tt_face_load_sbit()
79 if ( table_size < 8 ) in tt_face_load_sbit()
97 if ( FT_FRAME_EXTRACT( table_size, face->sbit_table ) ) in tt_face_load_sbit()
100 face->sbit_table_size = table_size; in tt_face_load_sbit()
124 if ( 8 + 48UL * count > table_size ) in tt_face_load_sbit()
125 count = (FT_UInt)( ( table_size - 8 ) / 48 ); in tt_face_load_sbit()
[all …]
/external/bison/src/
Dtables.c124 static int table_size = 32768; variable
147 int old_size = table_size; in table_grow()
149 while (table_size <= desired) in table_grow()
150 table_size *= 2; in table_grow()
154 old_size, table_size); in table_grow()
156 table = xnrealloc (table, table_size, sizeof *table); in table_grow()
157 conflict_table = xnrealloc (conflict_table, table_size, in table_grow()
159 check = xnrealloc (check, table_size, sizeof *check); in table_grow()
161 for (/* Nothing. */; old_size < table_size; ++old_size) in table_grow()
693 aver (j < table_size); in pack_vector()
[all …]
/external/chromium_org/v8/tools/
Dgenerate-trig-table.py65 table_size = SAMPLES + 2
67 for i in range(0, table_size):
78 'table_size': table_size,
/external/libcxx/test/numerics/rand/rand.adapt/rand.adapt.shuf/
Dvalues.pass.cpp35 static_assert(E::table_size == 256, ""); in test1()
38 where(E::table_size); in test1()
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/truetype/
Dttpload.c492 FT_ULong table_size, record_size; in tt_face_load_hdmx() local
498 error = face->goto_table( face, TTAG_hdmx, stream, &table_size ); in tt_face_load_hdmx()
499 if ( error || table_size < 8 ) in tt_face_load_hdmx()
502 if ( FT_FRAME_EXTRACT( table_size, face->hdmx_table ) ) in tt_face_load_hdmx()
506 limit = p + table_size; in tt_face_load_hdmx()
547 face->hdmx_table_size = table_size; in tt_face_load_hdmx()
/external/freetype/src/truetype/
Dttpload.c490 FT_ULong table_size, record_size; in tt_face_load_hdmx() local
496 error = face->goto_table( face, TTAG_hdmx, stream, &table_size ); in tt_face_load_hdmx()
497 if ( error || table_size < 8 ) in tt_face_load_hdmx()
500 if ( FT_FRAME_EXTRACT( table_size, face->hdmx_table ) ) in tt_face_load_hdmx()
504 limit = p + table_size; in tt_face_load_hdmx()
545 face->hdmx_table_size = table_size; in tt_face_load_hdmx()
/external/chromium_org/third_party/freetype/src/truetype/
Dttpload.c490 FT_ULong table_size, record_size; in tt_face_load_hdmx() local
496 error = face->goto_table( face, TTAG_hdmx, stream, &table_size ); in tt_face_load_hdmx()
497 if ( error || table_size < 8 ) in tt_face_load_hdmx()
500 if ( FT_FRAME_EXTRACT( table_size, face->hdmx_table ) ) in tt_face_load_hdmx()
504 limit = p + table_size; in tt_face_load_hdmx()
545 face->hdmx_table_size = table_size; in tt_face_load_hdmx()
/external/stlport/src/
Dctype.cpp36 const size_t ctype<char>::table_size; member in ctype<char>
45 static const ctype_base::mask _S_classic_table[table_size] = { in classic_table()
200 const unsigned char _S_upper[ctype<char>::table_size] =
236 const unsigned char _S_lower[ctype<char>::table_size] =
385 { return _WCharIndex::in_range(c, ctype<char>::table_size) && (table[c] & M); } in operator ()()
396 return _WCharIndex::in_range(c, ctype<char>::table_size) && (m & table[c]); in do_is()
406 *vec = _WCharIndex::in_range(c, ctype<char>::table_size) ? table[c] : ctype_base::mask(0); in do_is()
425 return _WCharIndex::in_range(c, ctype<char>::table_size) ? (wchar_t)_S_upper[c] in do_toupper()
433 *low = _WCharIndex::in_range(c, ctype<char>::table_size) ? (wchar_t)_S_upper[c] in do_toupper()
440 return _WCharIndex::in_range(c, ctype<char>::table_size) ? (wchar_t)_S_lower[c] in do_tolower()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_linkage.h57 util_semantic_table_from_layout(unsigned char *table, size_t table_size, unsigned char *layout, in util_semantic_table_from_layout() argument
61 memset(table, 0xff, table_size); in util_semantic_table_from_layout()
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
Du_linkage.h57 util_semantic_table_from_layout(unsigned char *table, size_t table_size, unsigned char *layout, in util_semantic_table_from_layout() argument
61 memset(table, 0xff, table_size); in util_semantic_table_from_layout()
/external/libunwind/src/ia64/
DGtables.c86 unw_word_t table, size_t table_size, unw_word_t rel_ip, in remote_lookup() argument
95 for (lo = 0, hi = table_size / sizeof (struct ia64_table_entry); lo < hi;) in remote_lookup()
145 size_t table_size; in _Uia64_find_dyn_list() local
157 table_size = di->u.ti.table_len * sizeof (di->u.ti.table_data[0]); in _Uia64_find_dyn_list()
159 if (table_size < sizeof (struct ia64_table_entry)) in _Uia64_find_dyn_list()
171 table_size = di->u.rti.table_len * sizeof (unw_word_t); in _Uia64_find_dyn_list()
173 if (table_size < sizeof (struct ia64_table_entry)) in _Uia64_find_dyn_list()
228 lookup (struct ia64_table_entry *table, size_t table_size, unw_word_t rel_ip) in lookup() argument
234 for (lo = 0, hi = table_size / sizeof (struct ia64_table_entry); lo < hi;) in lookup()
/external/chromium_org/components/visitedlink/common/
Dvisitedlink_common.h76 void GetUsageStatistics(int32* table_size, in GetUsageStatistics() argument
78 *table_size = table_length_; in GetUsageStatistics()
/external/qemu/block/
Dqcow2-refcount.c312 uint64_t table_size = next_refcount_table_size(s, blocks_used + 1); in alloc_refcount_block() local
316 uint64_t table_clusters = size_to_clusters(s, table_size); in alloc_refcount_block()
322 last_table_size = table_size; in alloc_refcount_block()
323 table_size = next_refcount_table_size(s, blocks_used + in alloc_refcount_block()
327 } while (last_table_size != table_size); in alloc_refcount_block()
331 s->refcount_table_size, table_size); in alloc_refcount_block()
339 uint64_t *new_table = g_malloc0(table_size * sizeof(uint64_t)); in alloc_refcount_block()
354 uint64_t table_clusters = size_to_clusters(s, table_size * sizeof(uint64_t)); in alloc_refcount_block()
370 for(i = 0; i < table_size; i++) { in alloc_refcount_block()
376 table_size * sizeof(uint64_t)); in alloc_refcount_block()
[all …]

123