/external/guava/guava/src/com/google/common/collect/ |
H A D | 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) { argument 70 return size > loadFactor * tableSize && tableSize < MAX_TABLE_SIZE;
|
H A D | 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;
|
H A D | 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;
|
H A D | 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/csharp/org/brotli/dec/ |
H A D | Huffman.cs | 104 int tableSize = 1 << tableBits;
105 int totalSize = tableSize;
122 ReplicateValue(rootTable, tableOffset + key, step, tableSize, len << 16 | sorted[symbol++]);
136 currentOffset += tableSize;
138 tableSize = 1 << tableBits;
139 totalSize += tableSize;
143 ReplicateValue(rootTable, currentOffset + (key >> rootBits), step, tableSize, (len - rootBits) << 16 | sorted[symbol++]);
|
/external/brotli/java/org/brotli/dec/ |
H A D | Huffman.java | 90 int tableSize = 1 << tableBits; 91 int totalSize = tableSize; 106 replicateValue(rootTable, tableOffset + key, step, tableSize, len << 16 | sorted[symbol++]); 118 currentOffset += tableSize; 120 tableSize = 1 << tableBits; 121 totalSize += tableSize; 126 replicateValue(rootTable, currentOffset + (key >> rootBits), step, tableSize,
|
/external/guava/guava/src/com/google/common/base/ |
H A D | SmallCharMatcher.java | 83 int tableSize = Integer.highestOneBit(setSize - 1) << 1; 84 while (tableSize * DESIRED_LOAD_FACTOR < setSize) { 85 tableSize <<= 1; 87 return tableSize;
|
/external/skia/src/core/ |
H A D | SkColorSpaceXformPriv.h | 19 static inline float interp_lut(float input, const float* table, int tableSize) { argument 20 float index = input * (tableSize - 1);
|
H A D | SkGammas.h | 100 int tableSize(int i) const { function in struct:SkGammas
|
H A D | SkICC.cpp | 59 const size_t bytes = gammas->tableSize(index) * sizeof(float); 82 tables->fStorage = SkData::MakeUninitialized(gammas->tableSize(0) * sizeof(float)); 85 tables->fRed.fCount = tables->fGreen.fCount = tables->fBlue.fCount = gammas->tableSize(0); 93 storageSize += gammas->tableSize(i) * sizeof(float); 108 rgb[i].fCount = gammas->tableSize(i);
|
/external/skqp/src/core/ |
H A D | SkColorSpaceXformPriv.h | 19 static inline float interp_lut(float input, const float* table, int tableSize) { argument 20 float index = input * (tableSize - 1);
|
H A D | SkGammas.h | 100 int tableSize(int i) const { function in struct:SkGammas
|
H A D | SkICC.cpp | 59 const size_t bytes = gammas->tableSize(index) * sizeof(float); 82 tables->fStorage = SkData::MakeUninitialized(gammas->tableSize(0) * sizeof(float)); 85 tables->fRed.fCount = tables->fGreen.fCount = tables->fBlue.fCount = gammas->tableSize(0); 93 storageSize += gammas->tableSize(i) * sizeof(float); 108 rgb[i].fCount = gammas->tableSize(i);
|
/external/gptfdisk/ |
H A D | gptcl.h | 38 uint32_t tableSize; member in class:GPTDataCL
|
H A D | gptcl.cc | 33 tableSize = GPT_SIZE; 101 {"resize-table", 'S', POPT_ARG_INT, &tableSize, 'S', "resize partition table", "numparts"}, 356 if (SetGPTSize(tableSize) == 0)
|
/external/icu/icu4c/source/common/ |
H A D | ucol_data.h | 79 uint32_t tableSize; member in struct:__anon7962
|
/external/mesa3d/src/mesa/drivers/dri/common/ |
H A D | xmlconfig.h | 79 unsigned int tableSize; member in struct:driOptionCache
|
H A D | 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) * sizeo [all...] |
/external/skia/tests/ |
H A D | ICCTest.cpp | 186 constexpr size_t tableSize = 10; local 187 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize); 191 gammas->fData[i].fTable.fSize = tableSize; 253 memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize + 270 sizeof(SkGammas) + sizeof(float) * tableSize); 283 gammas->fData[1].fTable.fSize = tableSize; 287 gammas->fData[2].fParamOffset = sizeof(float) * tableSize; 296 gammas->fData[0].fTable.fSize = tableSize;
|
H A D | ColorSpaceXformTest.cpp | 140 constexpr size_t tableSize = 10; local 141 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize); 145 gammas->fData[i].fTable.fSize = tableSize; 223 constexpr size_t tableSize = 10; local 224 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize + 241 sizeof(SkGammas) + sizeof(float) * tableSize); 257 gammas->fData[1].fTable.fSize = tableSize; 261 gammas->fData[2].fParamOffset = sizeof(float) * tableSize;
|
/external/skqp/tests/ |
H A D | ICCTest.cpp | 186 constexpr size_t tableSize = 10; local 187 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize); 191 gammas->fData[i].fTable.fSize = tableSize; 253 memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize + 270 sizeof(SkGammas) + sizeof(float) * tableSize); 283 gammas->fData[1].fTable.fSize = tableSize; 287 gammas->fData[2].fParamOffset = sizeof(float) * tableSize; 296 gammas->fData[0].fTable.fSize = tableSize;
|
H A D | ColorSpaceXformTest.cpp | 140 constexpr size_t tableSize = 10; local 141 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize); 145 gammas->fData[i].fTable.fSize = tableSize; 223 constexpr size_t tableSize = 10; local 224 void* memory = sk_malloc_throw(sizeof(SkGammas) + sizeof(float) * tableSize + 241 sizeof(SkGammas) + sizeof(float) * tableSize); 257 gammas->fData[1].fTable.fSize = tableSize; 261 gammas->fData[2].fParamOffset = sizeof(float) * tableSize;
|
/external/aac/libMpegTPDec/include/ |
H A D | tp_data.h | 420 UINT tableSize = (1 << nBits) - 1; local 422 for (sf_index = 0; sf_index < tableSize; sf_index++) { 426 if (sf_index > tableSize) { 427 return tableSize - 1;
|
/external/aac/libMpegTPEnc/include/ |
H A D | tp_data.h | 420 UINT tableSize = (1 << nBits) - 1; local 422 for (sf_index = 0; sf_index < tableSize; sf_index++) { 426 if (sf_index > tableSize) { 427 return tableSize - 1;
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | ImmutableSetTest.java | 196 private void verifyTableSize(int inputSize, int setSize, int tableSize) { argument 204 tableSize, ((RegularImmutableSet<Integer>) set).table.length);
|