From f77369086ced2a76dd33358d28b7bb0706b1157f Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Thu, 16 Jan 2020 09:11:16 -0500 Subject: util/hash_table: update users to use new optimal integer hash functions Reviewed-by: Eric Anholt Reviewed-by: Iago Toral Quiroga Tested-by: Marge Bot Part-of: --- src/broadcom/compiler/vir_live_variables.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/broadcom/compiler') diff --git a/src/broadcom/compiler/vir_live_variables.c b/src/broadcom/compiler/vir_live_variables.c index d3ca02f1882..48d0201dc49 100644 --- a/src/broadcom/compiler/vir_live_variables.c +++ b/src/broadcom/compiler/vir_live_variables.c @@ -33,18 +33,6 @@ struct partial_update_state { uint8_t channels; }; -static uint32_t -int_hash(const void *key) -{ - return _mesa_hash_data(key, sizeof(int)); -} - -static bool -int_compare(const void *key1, const void *key2) -{ - return *(const int *)key1 == *(const int *)key2; -} - static int vir_reg_to_var(struct qreg reg) { @@ -197,7 +185,7 @@ static void vir_setup_def_use(struct v3d_compile *c) { struct hash_table *partial_update_ht = - _mesa_hash_table_create(c, int_hash, int_compare); + _mesa_hash_table_create(c, _mesa_hash_int, _mesa_key_int_equal); int ip = 0; vir_for_each_block(block, c) { -- cgit v1.2.3