Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 4350) sorted by relevance

12345678910>>...174

/external/mesa3d/src/mesa/main/
Dhash.c53 struct _mesa_HashTable *table = CALLOC_STRUCT(_mesa_HashTable); in _mesa_NewHashTable() local
55 if (table) { in _mesa_NewHashTable()
56 table->ht = _mesa_hash_table_create(NULL, uint_key_hash, in _mesa_NewHashTable()
58 if (table->ht == NULL) { in _mesa_NewHashTable()
59 free(table); in _mesa_NewHashTable()
64 _mesa_hash_table_set_deleted_key(table->ht, uint_key(DELETED_KEY_VALUE)); in _mesa_NewHashTable()
69 mtx_init(&table->Mutex, mtx_recursive); in _mesa_NewHashTable()
75 return table; in _mesa_NewHashTable()
89 _mesa_DeleteHashTable(struct _mesa_HashTable *table) in _mesa_DeleteHashTable() argument
91 assert(table); in _mesa_DeleteHashTable()
[all …]
/external/vulkan-validation-layers/layers/generated/
Dvk_dispatch_table_helper.h395 static inline void layer_init_device_dispatch_table(VkDevice device, VkLayerDispatchTable *table, P… in layer_init_device_dispatch_table() argument
396 memset(table, 0, sizeof(*table)); in layer_init_device_dispatch_table()
398 table->GetDeviceProcAddr = gpa; in layer_init_device_dispatch_table()
399 table->DestroyDevice = (PFN_vkDestroyDevice) gpa(device, "vkDestroyDevice"); in layer_init_device_dispatch_table()
400 table->GetDeviceQueue = (PFN_vkGetDeviceQueue) gpa(device, "vkGetDeviceQueue"); in layer_init_device_dispatch_table()
401 table->QueueSubmit = (PFN_vkQueueSubmit) gpa(device, "vkQueueSubmit"); in layer_init_device_dispatch_table()
402 table->QueueWaitIdle = (PFN_vkQueueWaitIdle) gpa(device, "vkQueueWaitIdle"); in layer_init_device_dispatch_table()
403 table->DeviceWaitIdle = (PFN_vkDeviceWaitIdle) gpa(device, "vkDeviceWaitIdle"); in layer_init_device_dispatch_table()
404 table->AllocateMemory = (PFN_vkAllocateMemory) gpa(device, "vkAllocateMemory"); in layer_init_device_dispatch_table()
405 table->FreeMemory = (PFN_vkFreeMemory) gpa(device, "vkFreeMemory"); in layer_init_device_dispatch_table()
[all …]
/external/libxml2/
Dhash.c69 struct _xmlHashEntry *table; member
86 xmlHashComputeKey(xmlHashTablePtr table, const xmlChar *name, in xmlHashComputeKey() argument
92 value = table->random_seed; in xmlHashComputeKey()
112 return (value % table->size); in xmlHashComputeKey()
119 xmlHashComputeQKey(xmlHashTablePtr table, in xmlHashComputeQKey() argument
127 value = table->random_seed; in xmlHashComputeQKey()
169 return (value % table->size); in xmlHashComputeQKey()
182 xmlHashTablePtr table; in xmlHashCreate() local
187 table = xmlMalloc(sizeof(xmlHashTable)); in xmlHashCreate()
188 if (table) { in xmlHashCreate()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DAbstractTableReadTest.java35 protected Table<String, Integer, Character> table; field in AbstractTableReadTest
47 assertEquals(expectedSize, table.size()); in assertSize()
53 table = create(); in setUp()
57 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testContains()
58 assertTrue(table.contains("foo", 1)); in testContains()
59 assertTrue(table.contains("bar", 1)); in testContains()
60 assertTrue(table.contains("foo", 3)); in testContains()
61 assertFalse(table.contains("foo", 2)); in testContains()
62 assertFalse(table.contains("bar", 3)); in testContains()
63 assertFalse(table.contains("cat", 1)); in testContains()
[all …]
DArrayTableTest.java44 ArrayTable<String, Integer, Character> table = in create() local
46 populate(table, data); in create()
47 return table; in create()
52 assertEquals(9, table.size()); in assertSize()
69 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testContains()
70 assertTrue(table.contains("foo", 1)); in testContains()
71 assertTrue(table.contains("bar", 1)); in testContains()
72 assertTrue(table.contains("foo", 3)); in testContains()
73 assertTrue(table.contains("foo", 2)); in testContains()
74 assertTrue(table.contains("bar", 3)); in testContains()
[all …]
DAbstractTableTest.java33 protected void populate(Table<String, Integer, Character> table, Object... data) { in populate() argument
36 table.put((String) data[i], (Integer) data[i + 1], (Character) data[i + 2]); in populate()
49 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testClear()
51 table.clear(); in testClear()
52 assertEquals(0, table.size()); in testClear()
53 assertFalse(table.containsRow("foo")); in testClear()
56 table.clear(); in testClear()
64 assertNull(table.put("foo", 1, 'a')); in testPut()
65 assertNull(table.put("bar", 1, 'b')); in testPut()
66 assertNull(table.put("foo", 3, 'c')); in testPut()
[all …]
DTableCollectionTest.java119 Table<String, Integer, Character> table = in suite()
121 populateForRowKeySet(table, elements); in suite()
122 return table.rowKeySet(); in suite()
139 Table<String, Integer, Character> table = HashBasedTable.create(); in suite()
140 populateForRowKeySet(table, elements); in suite()
141 return table.rowKeySet(); in suite()
154 TreeBasedTable<String, Integer, Character> table = TreeBasedTable.create(); in suite()
155 populateForRowKeySet(table, elements); in suite()
156 return table.rowKeySet(); in suite()
175 Table<String, Integer, Character> table = HashBasedTable.create(); in suite()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DAbstractTableReadTest.java35 protected Table<String, Integer, Character> table; field in AbstractTableReadTest
47 assertEquals(expectedSize, table.size()); in assertSize()
53 table = create(); in setUp()
57 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testContains()
58 assertTrue(table.contains("foo", 1)); in testContains()
59 assertTrue(table.contains("bar", 1)); in testContains()
60 assertTrue(table.contains("foo", 3)); in testContains()
61 assertFalse(table.contains("foo", 2)); in testContains()
62 assertFalse(table.contains("bar", 3)); in testContains()
63 assertFalse(table.contains("cat", 1)); in testContains()
[all …]
DArrayTableTest.java44 ArrayTable<String, Integer, Character> table = in create() local
46 populate(table, data); in create()
47 return table; in create()
52 assertEquals(9, table.size()); in assertSize()
69 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testContains()
70 assertTrue(table.contains("foo", 1)); in testContains()
71 assertTrue(table.contains("bar", 1)); in testContains()
72 assertTrue(table.contains("foo", 3)); in testContains()
73 assertTrue(table.contains("foo", 2)); in testContains()
74 assertTrue(table.contains("bar", 3)); in testContains()
[all …]
DAbstractTableTest.java33 protected void populate(Table<String, Integer, Character> table, Object... data) { in populate() argument
36 table.put((String) data[i], (Integer) data[i + 1], (Character) data[i + 2]); in populate()
49 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testClear()
51 table.clear(); in testClear()
52 assertEquals(0, table.size()); in testClear()
53 assertFalse(table.containsRow("foo")); in testClear()
56 table.clear(); in testClear()
64 assertNull(table.put("foo", 1, 'a')); in testPut()
65 assertNull(table.put("bar", 1, 'b')); in testPut()
66 assertNull(table.put("foo", 3, 'c')); in testPut()
[all …]
DTableCollectionTest.java119 Table<String, Integer, Character> table = in suite()
121 populateForRowKeySet(table, elements); in suite()
122 return table.rowKeySet(); in suite()
139 Table<String, Integer, Character> table = HashBasedTable.create(); in suite()
140 populateForRowKeySet(table, elements); in suite()
141 return table.rowKeySet(); in suite()
154 TreeBasedTable<String, Integer, Character> table = TreeBasedTable.create(); in suite()
155 populateForRowKeySet(table, elements); in suite()
156 return table.rowKeySet(); in suite()
175 Table<String, Integer, Character> table = HashBasedTable.create(); in suite()
[all …]
/external/mesa3d/src/glx/
Dglxhash.c159 __glxHashTablePtr table; in __glxHashCreate() local
162 table = HASH_ALLOC(sizeof(*table)); in __glxHashCreate()
163 if (!table) in __glxHashCreate()
165 table->magic = HASH_MAGIC; in __glxHashCreate()
166 table->hits = 0; in __glxHashCreate()
167 table->partials = 0; in __glxHashCreate()
168 table->misses = 0; in __glxHashCreate()
171 table->buckets[i] = NULL; in __glxHashCreate()
172 return table; in __glxHashCreate()
178 __glxHashTablePtr table = (__glxHashTablePtr) t; in __glxHashDestroy() local
[all …]
/external/libaom/libaom/test/
Dfilm_grain_table_test.cc73 aom_film_grain_table_t table; in TEST() local
74 memset(&table, 0, sizeof(table)); in TEST()
77 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 0, 1000, false, &grain)); in TEST()
79 aom_film_grain_table_append(&table, 1000, 2000, film_grain_test_vectors + 0); in TEST()
80 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 0, 1000, false, &grain)); in TEST()
81 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 2000, 3000, false, &grain)); in TEST()
83 EXPECT_TRUE(aom_film_grain_table_lookup(&table, 1000, 2000, false, &grain)); in TEST()
86 EXPECT_EQ(0, memcmp(&grain, film_grain_test_vectors + 0, sizeof(table))); in TEST()
89 aom_film_grain_table_append(&table, 2000, 3000, film_grain_test_vectors + 0); in TEST()
90 EXPECT_EQ(0, table.head->next); in TEST()
[all …]
/external/freetype/src/base/
Dftdbgmem.c226 ft_mem_table_alloc( FT_MemTable table, in ft_mem_table_alloc() argument
229 FT_Memory memory = table->memory; in ft_mem_table_alloc()
233 memory->user = table->memory_user; in ft_mem_table_alloc()
234 block = table->alloc( memory, size ); in ft_mem_table_alloc()
235 memory->user = table; in ft_mem_table_alloc()
242 ft_mem_table_free( FT_MemTable table, in ft_mem_table_free() argument
245 FT_Memory memory = table->memory; in ft_mem_table_free()
248 memory->user = table->memory_user; in ft_mem_table_free()
249 table->free( memory, block ); in ft_mem_table_free()
250 memory->user = table; in ft_mem_table_free()
[all …]
/external/llvm-project/polly/lib/External/isl/
Disl_hash.c42 int isl_hash_table_init(struct isl_ctx *ctx, struct isl_hash_table *table, in isl_hash_table_init() argument
47 if (!table) in isl_hash_table_init()
52 table->bits = ffs(round_up(4 * (min_size + 1) / 3 - 1)) - 1; in isl_hash_table_init()
53 table->n = 0; in isl_hash_table_init()
55 size = 1 << table->bits; in isl_hash_table_init()
56 table->entries = isl_calloc_array(ctx, struct isl_hash_table_entry, in isl_hash_table_init()
58 if (!table->entries) in isl_hash_table_init()
78 static int grow_table(struct isl_ctx *ctx, struct isl_hash_table *table) in grow_table() argument
85 entries = table->entries; in grow_table()
86 old_size = 1 << table->bits; in grow_table()
[all …]
/external/speex/libspeexdsp/
Dfftwrap.c86 struct drft_lookup *table; in spx_fft_init() local
87 table = speex_alloc(sizeof(struct drft_lookup)); in spx_fft_init()
88 spx_drft_init((struct drft_lookup *)table, size); in spx_fft_init()
89 return (void*)table; in spx_fft_init()
92 void spx_fft_destroy(void *table) in spx_fft_destroy() argument
94 spx_drft_clear(table); in spx_fft_destroy()
95 speex_free(table); in spx_fft_destroy()
98 void spx_fft(void *table, float *in, float *out) in spx_fft() argument
103 float scale = 1./((struct drft_lookup *)table)->n; in spx_fft()
105 for (i=0;i<((struct drft_lookup *)table)->n;i++) in spx_fft()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/memory/
DLoadTile.h158 static INLINE void InitLoadTileColorTable(PFN_LOAD_TILES (&table)[NUM_SWR_FORMATS]) in InitLoadTileColorTable()
160 memset(table, 0, sizeof(table)); in InitLoadTileColorTable()
162table[R32G32B32A32_FLOAT] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable()
163table[R32G32B32A32_SINT] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable()
164table[R32G32B32A32_UINT] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable()
165table[R32G32B32X32_FLOAT] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32X32_… in InitLoadTileColorTable()
166table[R32G32B32A32_SSCALED] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable()
167table[R32G32B32A32_USCALED] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable()
168table[R32G32B32_FLOAT] = LoadMacroTile<TilingTraits<TTileMode, 96>, R32G32B32_FLOA… in InitLoadTileColorTable()
169table[R32G32B32_SINT] = LoadMacroTile<TilingTraits<TTileMode, 96>, R32G32B32_SINT… in InitLoadTileColorTable()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DCLDRFilePseudolocalizer.java85 Map<Integer, String> table = new HashMap<>(); in buildReplacementsTable() local
86 table.put((int) ' ', "\u2003"); in buildReplacementsTable()
87 table.put((int) '!', "\u00a1"); in buildReplacementsTable()
88 table.put((int) '"', "\u2033"); in buildReplacementsTable()
89 table.put((int) '#', "\u266f"); in buildReplacementsTable()
90 table.put((int) '$', "\u20ac"); in buildReplacementsTable()
91 table.put((int) '%', "\u2030"); in buildReplacementsTable()
92 table.put((int) '&', "\u214b"); in buildReplacementsTable()
93 table.put((int) '*', "\u204e"); in buildReplacementsTable()
94 table.put((int) '+', "\u207a"); in buildReplacementsTable()
[all …]
/external/libdrm/
Dxf86drmHash.c107 HashTablePtr table; in drmHashCreate() local
109 table = drmMalloc(sizeof(*table)); in drmHashCreate()
110 if (!table) return NULL; in drmHashCreate()
111 table->magic = HASH_MAGIC; in drmHashCreate()
113 return table; in drmHashCreate()
118 HashTablePtr table = (HashTablePtr)t; in drmHashDestroy() local
123 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashDestroy()
126 for (bucket = table->buckets[i]; bucket;) { in drmHashDestroy()
132 drmFree(table); in drmHashDestroy()
139 static HashBucketPtr HashFind(HashTablePtr table, in HashFind() argument
[all …]
/external/mesa3d/prebuilt-intermediates/util/
Dvk_enum_to_str.c4379 struct vk_instance_dispatch_table *table) in vk_load_instance_commands() argument
4381 memset(table, 0, sizeof(*table)); in vk_load_instance_commands()
4382 table->GetInstanceProcAddr = gpa; in vk_load_instance_commands()
4384table->AcquireXlibDisplayEXT = (PFN_vkAcquireXlibDisplayEXT) gpa(instance, "vkAcquireXlibDisplayEX… in vk_load_instance_commands()
4387table->CreateAndroidSurfaceKHR = (PFN_vkCreateAndroidSurfaceKHR) gpa(instance, "vkCreateAndroidSur… in vk_load_instance_commands()
4389table->CreateDebugReportCallbackEXT = (PFN_vkCreateDebugReportCallbackEXT) gpa(instance, "vkCreate… in vk_load_instance_commands()
4390table->CreateDebugUtilsMessengerEXT = (PFN_vkCreateDebugUtilsMessengerEXT) gpa(instance, "vkCreate… in vk_load_instance_commands()
4391 table->CreateDevice = (PFN_vkCreateDevice) gpa(instance, "vkCreateDevice"); in vk_load_instance_commands()
4393table->CreateDirectFBSurfaceEXT = (PFN_vkCreateDirectFBSurfaceEXT) gpa(instance, "vkCreateDirectFB… in vk_load_instance_commands()
4395table->CreateDisplayModeKHR = (PFN_vkCreateDisplayModeKHR) gpa(instance, "vkCreateDisplayModeKHR"); in vk_load_instance_commands()
[all …]
/external/fonttools/Tests/ttLib/tables/
D_n_a_m_e_test.py24 table = table__n_a_m_e()
25 table.names = [
31 self.assertEqual("Bold", table.getDebugName(258))
32 self.assertEqual("Sem Fracções", table.getDebugName(292))
33 self.assertEqual(None, table.getDebugName(999))
36 table = table__n_a_m_e()
37 table.setName("Regular", 2, 1, 0, 0)
38 table.setName("Version 1.000", 5, 3, 1, 0x409)
39 table.setName("寬鬆", 276, 1, 2, 0x13)
40 self.assertEqual("Regular", table.getName(2, 1, 0, 0).toUnicode())
[all …]
D_t_r_a_k_test.py168 table = table__t_r_a_k()
169 table.version = 1.0
170 table.format = 0
171 self.font = {'trak': table}
174 table = self.font['trak']
175 table.horizData = TrackData(SKIA_TRACK_ENTRIES)
176 trakData = table.compile(self.font)
180 table = self.font['trak']
181 table.vertData = TrackData(OSAKA_VERT_TRACK_ENTRIES)
182 trakData = table.compile(self.font)
[all …]
D_m_e_t_a_test.py28 table = table__m_e_t_a()
29 table.decompile(META_DATA, ttFont={"meta": table})
30 self.assertEqual({"TEST": b"\xCA\xFE\xBE\xEF"}, table.data)
33 table = table__m_e_t_a()
34 table.data["TEST"] = b"\xCA\xFE\xBE\xEF"
35 self.assertEqual(META_DATA, table.compile(ttFont={"meta": table}))
38 table = table__m_e_t_a()
39 table.decompile(META_DATA_TEXT, ttFont={"meta": table})
41 "slng": u"Latn,Grek,Cyrl"}, table.data)
44 table = table__m_e_t_a()
[all …]
/external/libxkbcommon/src/compose/
Dtable.c38 struct xkb_compose_table *table; in xkb_compose_table_new() local
45 table = calloc(1, sizeof(*table)); in xkb_compose_table_new()
46 if (!table) { in xkb_compose_table_new()
51 table->refcnt = 1; in xkb_compose_table_new()
52 table->ctx = xkb_context_ref(ctx); in xkb_compose_table_new()
54 table->locale = resolved_locale; in xkb_compose_table_new()
55 table->format = format; in xkb_compose_table_new()
56 table->flags = flags; in xkb_compose_table_new()
58 darray_init(table->nodes); in xkb_compose_table_new()
59 darray_init(table->utf8); in xkb_compose_table_new()
[all …]
/external/mesa3d/src/glx/tests/
Dindirect_api.cpp414 … target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table) { } in __indirect_glColorTable() argument
429 void __indirect_glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table) { } in __indirect_glGetColorTable() argument
715 _glapi_proc *table; member in IndirectAPI
721 this->table = (_glapi_proc *) __glXNewIndirectAPI(); in SetUp()
727 free(this->table); in TearDown()
728 this->table = NULL; in TearDown()
740 _glapi_table *table = __glXNewIndirectAPI(); in TEST_F() local
745 free(table); in TEST_F()
756 EXPECT_NE(nil, table[i]); in TEST_F()
762 EXPECT_EQ((_glapi_proc) __indirect_glAccum, table[_gloffset_Accum]); in TEST_F()
[all …]

12345678910>>...174