mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 23:18:20 +02:00
util: import CRC32 implementation from gallium
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
parent
3ef8dff865
commit
86514d84e0
5 changed files with 11 additions and 11 deletions
|
|
@ -250,8 +250,6 @@ C_SOURCES := \
|
|||
util/u_half.h \
|
||||
util/u_handle_table.c \
|
||||
util/u_handle_table.h \
|
||||
util/u_hash.c \
|
||||
util/u_hash.h \
|
||||
util/u_hash_table.c \
|
||||
util/u_hash_table.h \
|
||||
util/u_helpers.c \
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#include "tgsi/tgsi_parse.h"
|
||||
#include "tgsi/tgsi_ureg.h"
|
||||
#include "util/hash_table.h"
|
||||
#include "util/u_hash.h"
|
||||
#include "util/crc32.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_prim.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ MESA_UTIL_FILES := \
|
|||
bitscan.c \
|
||||
bitscan.h \
|
||||
bitset.h \
|
||||
crc32.c \
|
||||
crc32.h \
|
||||
debug.c \
|
||||
debug.h \
|
||||
disk_cache.c \
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Hash functions implementation.
|
||||
* CRC32 implementation.
|
||||
*
|
||||
* @author Jose Fonseca
|
||||
*/
|
||||
|
||||
|
||||
#include "u_hash.h"
|
||||
#include "crc32.h"
|
||||
|
||||
|
||||
static const uint32_t
|
||||
|
|
@ -27,16 +27,16 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Hash functions.
|
||||
* CRC32 function.
|
||||
*
|
||||
* @author Jose Fonseca <jfonseca@vmware.com>
|
||||
*/
|
||||
|
||||
#ifndef U_HASH_H_
|
||||
#define U_HASH_H_
|
||||
#ifndef CRC32_H_
|
||||
#define CRC32_H_
|
||||
|
||||
|
||||
#include "pipe/p_compiler.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
@ -52,4 +52,4 @@ util_hash_crc32(const void *data, size_t size);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* U_HASH_H_ */
|
||||
#endif /* CRC32_H_ */
|
||||
Loading…
Add table
Reference in a new issue