diff options
author | Edward O'Callaghan <[email protected]> | 2015-12-04 15:28:11 +1100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-12-06 17:09:47 +0100 |
commit | 70d2d3ef7f8ac98102cd930a3614eb758cfe7661 (patch) | |
tree | e452ccd1d28fdb34bd2fa20d6433669e746e78ac /src | |
parent | be51020f2ad2ce8e8dc4d0f3a79186000fb01454 (diff) |
llvmpipe: Make use of ARRAY_SIZE macro
Signed-off-by: Edward O'Callaghan <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_blend.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_conv.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_test_blend.c b/src/gallium/drivers/llvmpipe/lp_test_blend.c index 37420b02442..7b19174f345 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_blend.c +++ b/src/gallium/drivers/llvmpipe/lp_test_blend.c @@ -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 diff --git a/src/gallium/drivers/llvmpipe/lp_test_conv.c b/src/gallium/drivers/llvmpipe/lp_test_conv.c index 8290da4004b..a30f35c8149 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_conv.c +++ b/src/gallium/drivers/llvmpipe/lp_test_conv.c @@ -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 |