Home
last modified time | relevance | path

Searched refs:tableSize (Results 1 – 25 of 60) sorted by relevance

123

/external/guava/guava/src/com/google/common/collect/
DHashing.java60 int tableSize = Integer.highestOneBit(expectedEntries); in closedTableSize() local
62 if (expectedEntries > (int) (loadFactor * tableSize)) { in closedTableSize()
63 tableSize <<= 1; in closedTableSize()
64 return (tableSize > 0) ? tableSize : MAX_TABLE_SIZE; in closedTableSize()
66 return tableSize; in closedTableSize()
69 static boolean needsResizing(int size, int tableSize, double loadFactor) { in needsResizing() argument
70 return size > loadFactor * tableSize && tableSize < MAX_TABLE_SIZE; in needsResizing()
DImmutableSet.java189 int tableSize = chooseTableSize(n); in construct() local
190 Object[] table = new Object[tableSize]; in construct()
191 int mask = tableSize - 1; in construct()
217 } else if (tableSize != chooseTableSize(uniques)) { in construct()
251 int tableSize = Integer.highestOneBit(setSize - 1) << 1; in chooseTableSize() local
252 while (tableSize * DESIRED_LOAD_FACTOR < setSize) { in chooseTableSize()
253 tableSize <<= 1; in chooseTableSize()
255 return tableSize; in chooseTableSize()
DRegularImmutableMap.java55 int tableSize = Hashing.closedTableSize(size, MAX_LOAD_FACTOR); in RegularImmutableMap() local
56 table = createEntryArray(tableSize); in RegularImmutableMap()
57 mask = tableSize - 1; in RegularImmutableMap()
80 int tableSize = Hashing.closedTableSize(size, MAX_LOAD_FACTOR); in RegularImmutableMap() local
81 table = createEntryArray(tableSize); in RegularImmutableMap()
82 mask = tableSize - 1; in RegularImmutableMap()
DRegularImmutableBiMap.java56 int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR); in RegularImmutableBiMap() local
57 this.mask = tableSize - 1; in RegularImmutableBiMap()
58 ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize); in RegularImmutableBiMap()
59 ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize); in RegularImmutableBiMap()
105 int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR); in RegularImmutableBiMap() local
106 this.mask = tableSize - 1; in RegularImmutableBiMap()
107 ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize); in RegularImmutableBiMap()
108 ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize); in RegularImmutableBiMap()
DHashBiMap.java112 int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR); in init() local
113 this.hashTableKToV = createTable(tableSize); in init()
114 this.hashTableVToK = createTable(tableSize); in init()
115 this.mask = tableSize - 1; in init()
DLinkedHashMultimap.java324 int tableSize = Hashing.closedTableSize(expectedValues, VALUE_SET_LOAD_FACTOR); in ValueSet() local
327 ValueEntry<K, V>[] hashTable = new ValueEntry[tableSize]; in ValueSet()
/external/opencv3/3rdparty/openexr/Half/
DeLut.cpp88 const int tableSize = 1 << 9; in main() local
89 unsigned short eLut[tableSize]; in main()
99 for (int i = 0; i < tableSize; i++) in main()
107 if (i < tableSize - 1) in main()
/external/guava/guava/src/com/google/common/base/
DSmallCharMatcher.java83 int tableSize = Integer.highestOneBit(setSize - 1) << 1; in chooseTableSize() local
84 while (tableSize * DESIRED_LOAD_FACTOR < setSize) { in chooseTableSize()
85 tableSize <<= 1; in chooseTableSize()
87 return tableSize; in chooseTableSize()
/external/aac/libMpegTPDec/include/
Dtp_data.h312 UINT sf_index, tableSize=sizeof(SamplingRateTable)/sizeof(UINT); in getSamplingRateIndex() local
314 for (sf_index=0; sf_index<tableSize; sf_index++) { in getSamplingRateIndex()
318 if (sf_index>tableSize-1) { in getSamplingRateIndex()
319 return tableSize-1; in getSamplingRateIndex()
/external/aac/libMpegTPEnc/include/
Dtp_data.h312 UINT sf_index, tableSize=sizeof(SamplingRateTable)/sizeof(UINT); in getSamplingRateIndex() local
314 for (sf_index=0; sf_index<tableSize; sf_index++) { in getSamplingRateIndex()
318 if (sf_index>tableSize-1) { in getSamplingRateIndex()
319 return tableSize-1; in getSamplingRateIndex()
/external/mesa3d/src/mesa/drivers/dri/common/
Dxmlconfig.c111 GLuint size = 1 << cache->tableSize, mask = size - 1; in findOption()
119 hash = (hash >> (16-cache->tableSize/2)) & mask; in findOption()
137 GLuint size = 1 << cache->tableSize; in countOptions()
704 info->tableSize = log2size; in driParseOptionInfo()
897 cache->tableSize = info->tableSize; in initOptionCache()
898 cache->values = MALLOC ((1<<info->tableSize) * sizeof (driOptionValue)); in initOptionCache()
904 (1<<info->tableSize) * sizeof (driOptionValue)); in initOptionCache()
999 GLuint i, size = 1 << info->tableSize; in driDestroyOptionInfo()
Dxmlconfig.h76 GLuint tableSize; member
/external/libpcap/msdos/
Dndis2.h238 WORD tableSize; member
290 WORD tableSize; member
332 WORD tableSize; member
/external/gptfdisk/
Dgptcl.cc33 tableSize = GPT_SIZE; in GPTDataCL()
100 {"resize-table", 'S', POPT_ARG_INT, &tableSize, 'S', "resize partition table", "numparts"}, in DoOptions()
352 if (SetGPTSize(tableSize) == 0) in DoOptions()
Dgptcl.h37 uint32_t tableSize; variable
Dgpt.cc1329 int sum, tableSize, allOK = 1; in DestroyGPT() local
1345 tableSize = numParts * mainHeader.sizeOfPartitionEntries; in DestroyGPT()
1346 emptyTable = new uint8_t[tableSize]; in DestroyGPT()
1351 memset(emptyTable, 0, tableSize); in DestroyGPT()
1353 sum = myDisk.Write(emptyTable, tableSize); in DestroyGPT()
1354 if (sum != tableSize) { in DestroyGPT()
1362 sum = myDisk.Write(emptyTable, tableSize); in DestroyGPT()
1363 if (sum != tableSize) { in DestroyGPT()
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DCatchStructs.java200 int tableSize = table.size(); in writeTo() local
201 for (int i = 0; i < tableSize; i++) { in writeTo()
/external/icu/icu4c/source/common/
Ducol_data.h77 uint32_t tableSize; member
Ducol_swp.cpp668 header.tableSize= ds->readUInt32(inHeader->tableSize); in ucol_swapInverseUCA()
677 ds->swapArray32(ds, inBytes+header.table, header.tableSize*3*4, in ucol_swapInverseUCA()
/external/tpm2/
DCpriHash.c136 UINT32 i, tableSize; in GetHashInfoPointer() local
138 tableSize = sizeof(g_hashData) / sizeof(g_hashData[0]); in GetHashInfoPointer()
139 for(i = 0; i < tableSize - 1; i++) in GetHashInfoPointer()
144 return &g_hashData[tableSize-1]; in GetHashInfoPointer()
/external/guava/guava-tests/test/com/google/common/collect/
DImmutableSetTest.java196 private void verifyTableSize(int inputSize, int setSize, int tableSize) { in verifyTableSize() argument
204 tableSize, ((RegularImmutableSet<Integer>) set).table.length); in verifyTableSize()
/external/llvm/utils/TableGen/
DX86DisassemblerTables.cpp691 const unsigned int tableSize = 16384; in emitContextTable() local
693 "[" << tableSize << "] = {\n"; in emitContextTable()
696 for (unsigned index = 0; index < tableSize; ++index) { in emitContextTable()
798 if (index < tableSize - 1) in emitContextTable()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DLinkedHashMultimap.java320 int tableSize = Hashing.closedTableSize(expectedValues, VALUE_SET_LOAD_FACTOR); in ValueSet() local
323 ValueEntry<K, V>[] hashTable = new ValueEntry[tableSize]; in ValueSet()
/external/skia/src/ports/
DSkFontHost_mac.cpp1711 size_t tableSize = this->getTableSize(tableTags[tableIndex]); in onOpenStream() local
1712 totalSize += (tableSize + 3) & ~3; in onOpenStream()
1713 *tableSizes.append() = tableSize; in onOpenStream()
1745 size_t tableSize = tableSizes[tableIndex]; in onOpenStream() local
1746 this->getTableData(tableTags[tableIndex], 0, tableSize, dataPtr); in onOpenStream()
1749 tableSize)); in onOpenStream()
1751 entry->logicalLength = SkEndian_SwapBE32(SkToU32(tableSize)); in onOpenStream()
1753 dataPtr += (tableSize + 3) & ~3; in onOpenStream()
/external/javassist/src/main/javassist/bytecode/
DCodeIterator.java1486 int bytecodeSize = 5 + (3 - (orgPos & 3)) + tableSize(); in write()
1502 abstract int tableSize(); in tableSize() method in CodeIterator.Switcher
1545 int tableSize() { return 8 + 4 * offsets.length; } in tableSize() method in CodeIterator.Table
1569 int tableSize() { return 4 + 8 * matches.length; } in tableSize() method in CodeIterator.Lookup

123