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

1 2 3 4 5 6 7 8 910

  /external/guava/guava/src/com/google/common/collect/
Hashing.java 60 int tableSize = Integer.highestOneBit(expectedEntries);
62 if (expectedEntries > (int) (loadFactor * tableSize)) {
63 tableSize <<= 1;
64 return (tableSize > 0) ? tableSize : MAX_TABLE_SIZE;
66 return tableSize;
69 static boolean needsResizing(int size, int tableSize, double loadFactor) {
70 return size > loadFactor * tableSize && tableSize < MAX_TABLE_SIZE;
ImmutableSet.java 189 int tableSize = chooseTableSize(n);
190 Object[] table = new Object[tableSize];
191 int mask = tableSize - 1;
217 } else if (tableSize != chooseTableSize(uniques)) {
251 int tableSize = Integer.highestOneBit(setSize - 1) << 1;
252 while (tableSize * DESIRED_LOAD_FACTOR < setSize) {
253 tableSize <<= 1;
255 return tableSize;
RegularImmutableMap.java 55 int tableSize = Hashing.closedTableSize(size, MAX_LOAD_FACTOR);
56 table = createEntryArray(tableSize);
57 mask = tableSize - 1;
80 int tableSize = Hashing.closedTableSize(size, MAX_LOAD_FACTOR);
81 table = createEntryArray(tableSize);
82 mask = tableSize - 1;
RegularImmutableBiMap.java 56 int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);
57 this.mask = tableSize - 1;
58 ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize);
59 ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize);
105 int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);
106 this.mask = tableSize - 1;
107 ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize);
108 ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize);
  /external/brotli/java/org/brotli/dec/
Huffman.java 96 int tableSize = 1 << tableBits;
97 int totalSize = tableSize;
112 replicateValue(rootTable, tableOffset + key, step, tableSize, len << 16 | sorted[symbol++]);
124 currentOffset += tableSize;
126 tableSize = 1 << tableBits;
127 totalSize += tableSize;
132 replicateValue(rootTable, currentOffset + (key >> rootBits), step, tableSize,
  /external/guava/guava/src/com/google/common/base/
SmallCharMatcher.java 83 int tableSize = Integer.highestOneBit(setSize - 1) << 1;
84 while (tableSize * DESIRED_LOAD_FACTOR < setSize) {
85 tableSize <<= 1;
87 return tableSize;
  /frameworks/base/core/jni/android/graphics/
HarfBuzzNGFaceSkia.cpp 145 const size_t tableSize = typeface->getTableSize(tag);
146 if (!tableSize)
149 char* buffer = reinterpret_cast<char*>(malloc(tableSize));
152 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer);
153 if (tableSize != actualSize) {
158 return hb_blob_create(const_cast<char*>(buffer), tableSize,
  /external/gptfdisk/
gptcl.h 37 uint32_t tableSize;
  /external/skia/src/core/
SkColorSpaceXformPriv.h 20 static inline float interp_lut(float input, const float* table, int tableSize) {
21 float index = input * (tableSize - 1);
  /external/aac/libMpegTPDec/include/
tp_data.h 312 UINT sf_index, tableSize=sizeof(SamplingRateTable)/sizeof(UINT);
314 for (sf_index=0; sf_index<tableSize; sf_index++) {
318 if (sf_index>tableSize-1) {
319 return tableSize-1;
  /external/aac/libMpegTPEnc/include/
tp_data.h 312 UINT sf_index, tableSize=sizeof(SamplingRateTable)/sizeof(UINT);
314 for (sf_index=0; sf_index<tableSize; sf_index++) {
318 if (sf_index>tableSize-1) {
319 return tableSize-1;
  /external/icu/icu4c/source/common/
ucol_data.h 79 uint32_t tableSize;
  /external/mesa3d/src/mesa/drivers/dri/common/
xmlconfig.h 79 unsigned int tableSize;
xmlconfig.c 117 uint32_t size = 1 << cache->tableSize, mask = size - 1;
125 hash = (hash >> (16-cache->tableSize/2)) & mask;
703 info->tableSize = 6;
704 info->info = calloc(1 << info->tableSize, sizeof (driOptionInfo));
705 info->values = calloc(1 << info->tableSize, sizeof (driOptionValue));
886 GLuint i, size = 1 << info->tableSize;
888 cache->tableSize = info->tableSize;
889 cache->values = malloc((1<<info->tableSize) * sizeof (driOptionValue));
895 (1<<info->tableSize) * sizeof (driOptionValue))
    [all...]
  /external/skia/tests/
ICCTest.cpp 184 constexpr size_t tableSize = 10;
185 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize);
189 gammas->fData[i].fTable.fSize = tableSize;
251 memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize +
268 sizeof(SkGammas) + sizeof(float) * tableSize);
281 gammas->fData[1].fTable.fSize = tableSize;
285 gammas->fData[2].fParamOffset = sizeof(float) * tableSize;
294 gammas->fData[0].fTable.fSize = tableSize;
ColorSpaceXformTest.cpp 142 constexpr size_t tableSize = 10;
143 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize);
147 gammas->fData[i].fTable.fSize = tableSize;
225 constexpr size_t tableSize = 10;
226 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize +
243 sizeof(SkGammas) + sizeof(float) * tableSize);
259 gammas->fData[1].fTable.fSize = tableSize;
263 gammas->fData[2].fParamOffset = sizeof(float) * tableSize;
  /prebuilts/go/darwin-x86/src/strings/
export_test.go 29 if int(m) != r.tableSize && t.table[m] != nil {
replace.go 124 // genericReplacer.tableSize will be 5. Node n0's table will be
163 t.table = make([]*trieNode, r.tableSize)
212 if int(index) == r.tableSize {
233 // tableSize is the size of a trie node's lookup table. It is the number
235 tableSize int
251 r.tableSize += int(b)
257 r.mapping[i] = byte(r.tableSize)
264 r.root.table = make([]*trieNode, r.tableSize)
320 if index == r.tableSize || r.root.table[index] == nil {
  /prebuilts/go/linux-x86/src/strings/
export_test.go 29 if int(m) != r.tableSize && t.table[m] != nil {
replace.go 124 // genericReplacer.tableSize will be 5. Node n0's table will be
163 t.table = make([]*trieNode, r.tableSize)
212 if int(index) == r.tableSize {
233 // tableSize is the size of a trie node's lookup table. It is the number
235 tableSize int
251 r.tableSize += int(b)
257 r.mapping[i] = byte(r.tableSize)
264 r.root.table = make([]*trieNode, r.tableSize)
320 if index == r.tableSize || r.root.table[index] == nil {
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
ReadElf.java 372 long tableOffset, long tableSize) throws IOException {
375 while (mFile.getFilePointer() < tableOffset + tableSize) {
411 private String readStrTabEntry(long tableOffset, long tableSize, long strOffset)
413 if (tableOffset == 0 || strOffset < 0 || strOffset >= tableSize) {
  /dalvik/dexgen/src/com/android/dexgen/dex/file/
CatchStructs.java 202 int tableSize = table.size();
203 for (int i = 0; i < tableSize; i++) {
  /dalvik/dx/src/com/android/dx/dex/file/
CatchStructs.java 199 int tableSize = table.size();
200 for (int i = 0; i < tableSize; i++) {
  /external/guava/guava-tests/test/com/google/common/collect/
ImmutableSetTest.java 196 private void verifyTableSize(int inputSize, int setSize, int tableSize) {
204 tableSize, ((RegularImmutableSet<Integer>) set).table.length);
  /frameworks/av/media/libstagefright/
AACWriter.cpp 200 const int tableSize =
204 for (int index = 0; index < tableSize; ++index) {

Completed in 455 milliseconds

1 2 3 4 5 6 7 8 910