From 948300da27931a1eea38c7d71f62866766a6aad1 Mon Sep 17 00:00:00 2001 From: Icecream95 Date: Sat, 19 Jun 2021 15:01:15 +1200 Subject: [PATCH] pan/mdg: Use util_logbase2 instead of C99 log2 log2 operates on double, we only need the integer util/ function. Part-of: --- src/panfrost/midgard/disassemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c index 8437e0e..1d8ee51 100644 --- a/src/panfrost/midgard/disassemble.c +++ b/src/panfrost/midgard/disassemble.c @@ -870,7 +870,7 @@ print_vector_field(disassemble_context *ctx, FILE *fp, const char *name, /* Mask out unused components based on the writemask, but don't mask out * components that are used for interlane instructions like fdot3. */ uint8_t src_mask = - rep ? expand_writemask(mask_of(rep), log2(128 / bits_for_mode(mode))) : mask; + rep ? expand_writemask(mask_of(rep), util_logbase2(128 / bits_for_mode(mode))) : mask; fprintf(fp, ", "); -- 2.7.4