Home
last modified time | relevance | path

Searched refs:array_size (Results 1 – 2 of 2) sorted by relevance

/scripts/coccinelle/misc/
A Darray_size_dup.cocci3 /// Check for array_size(), array3_size(), struct_size() duplicates.
5 /// 1. An opencoded expression is used before array_size() to compute the same size
6 /// 2. An opencoded expression is used after array_size() to compute the same size
23 array_size(E1, E2)
36 * array_size(E1, E2)@p2
43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line)
51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line)
62 * array_size(E1, E2)@p1
72 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line)
80 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line)
/scripts/gcc-plugins/
A Dlatent_entropy_plugin.c206 tree elt_type, array_size, elt_size; in handle_latent_entropy_attribute() local
212 array_size = TYPE_SIZE_UNIT(type); in handle_latent_entropy_attribute()
214 if (TREE_CODE(elt_type) != INTEGER_TYPE || !array_size in handle_latent_entropy_attribute()
215 || TREE_CODE(array_size) != INTEGER_CST) { in handle_latent_entropy_attribute()
222 array_size_int = TREE_INT_CST_LOW(array_size); in handle_latent_entropy_attribute()

Completed in 4 milliseconds