mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 00:00:25 +01:00
llvmpipe: Make use of ARRAY_SIZE macro
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
be51020f2a
commit
70d2d3ef7f
2 changed files with 4 additions and 4 deletions
|
|
@ -625,9 +625,9 @@ const struct lp_type blend_types[] = {
|
|||
};
|
||||
|
||||
|
||||
const unsigned num_funcs = sizeof(blend_funcs)/sizeof(blend_funcs[0]);
|
||||
const unsigned num_factors = sizeof(blend_factors)/sizeof(blend_factors[0]);
|
||||
const unsigned num_types = sizeof(blend_types)/sizeof(blend_types[0]);
|
||||
const unsigned num_funcs = ARRAY_SIZE(blend_funcs);
|
||||
const unsigned num_factors = ARRAY_SIZE(blend_factors);
|
||||
const unsigned num_types = ARRAY_SIZE(blend_types);
|
||||
|
||||
|
||||
boolean
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ const struct lp_type conv_types[] = {
|
|||
};
|
||||
|
||||
|
||||
const unsigned num_types = sizeof(conv_types)/sizeof(conv_types[0]);
|
||||
const unsigned num_types = ARRAY_SIZE(conv_types);
|
||||
|
||||
|
||||
boolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue