mesa/src/util
Erik Faye-Lund e3bc78b8e3 util: use c11 alignas instead of rolling our own
Due to how alignas is defined, it itsn't allowed to use it on a struct,
it needs to be used on the first member instead. So move the declaration
in those cases.

This still leaves the ALIGN16 macro using compiler-specific directives,
because it's a lot of work to untangle the above. This probably deserves
its own MR.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>
2022-06-14 15:08:37 +00:00
..
format format_utils: properly parenthesize macro params 2022-06-04 13:15:57 +00:00
indices util: add missing c99_compat.h includes 2022-06-02 13:09:15 +00:00
perf util/perf: add options to enable/disable tracepoints 2022-05-26 07:14:45 +00:00
sha1 util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
tests util: Add unittest for timespec_get 2022-06-09 17:23:34 +00:00
00-mesa-defaults.conf anv: Add workaround for sample mask with multisampling 2022-05-24 14:43:57 +00:00
anon_file.c util: use anonymous file for memory fd creation 2021-10-27 15:26:52 +00:00
anon_file.h
bigmath.h
bitscan.c
bitscan.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
bitset.h util/bitset: Support larger ranges in BITSET_TEST/CLEAR_RANGE 2022-05-10 11:23:14 -05:00
blob.c util/blob: Add align helpers 2022-04-22 19:38:52 +00:00
blob.h util/blob: Add align helpers 2022-04-22 19:38:52 +00:00
build_id.c
build_id.h
cnd_monotonic.h c11/threads: Re-align return values for timed waits 2021-11-16 10:02:08 -06:00
compiler.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
compress.c
compress.h
crc32.c util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
crc32.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
dag.c util/dag: Add dag_add_edge_max_data 2021-11-17 13:41:47 +00:00
dag.h util/dag: Add dag_add_edge_max_data 2021-11-17 13:41:47 +00:00
debug.c util/debug: add an enable parsing helper 2022-05-26 07:14:45 +00:00
debug.h util/debug: add an enable parsing helper 2022-05-26 07:14:45 +00:00
detect_os.h
disk_cache.c util/disk_cache: rename MESA_GLSL_CACHE envvar 2022-03-17 11:15:53 +01:00
disk_cache.h
disk_cache_os.c util/disk_cache: rename MESA_GLSL_CACHE envvar 2022-03-17 11:15:53 +01:00
disk_cache_os.h
double.c
double.h
driconf.h venus: Add driconf option to enable implicit fencing 2022-06-02 18:05:50 +00:00
driconf_static.py driconf: Fix unhandled tags in static conf 2022-01-14 22:09:50 +00:00
enum_operators.h
fast_idiv_by_const.c
fast_idiv_by_const.h
fast_urem_by_const.h
format_r11g11b10f.h
format_rgb9e5.h include: drop c99_math.h 2022-06-02 13:09:16 +00:00
format_srgb.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
format_srgb.py
fossilize_db.c util/fossilize_db: Fix double free in error handling. 2022-01-24 01:09:21 +00:00
fossilize_db.h
futex.h src/util/futex.h: fix build on 32-bit architectures using 64-bit time_t 2022-05-03 16:40:22 +00:00
half_float.c util: Keep quiet NaNs quiet when converting to half float. 2022-05-02 23:36:50 +00:00
half_float.h
hash_table.c util/hash_table: Clear special 0/1 entries for u64 hash table too 2021-11-02 11:02:18 -07:00
hash_table.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
libsync.h egl+libsync: Add helper to complain about invalid fence fd's 2022-03-04 22:16:20 +00:00
list.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
log.c util/log: Don't print an extra \n if the format string had one. 2022-04-05 21:37:46 +00:00
log.h util/log: Add support for logging once. 2022-04-06 00:04:14 +00:00
macros.h util: use c11 alignas instead of rolling our own 2022-06-14 15:08:37 +00:00
memstream.c
memstream.h includes: add windows lean and mean guard. 2022-01-19 21:54:58 +00:00
mesa-sha1.c util: add SHA1 printing and comparison functions 2021-11-26 11:58:27 +00:00
mesa-sha1.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
meson.build util: always enable timespec_test.cpp 2022-06-09 17:23:34 +00:00
os_file.c
os_file.h misc: replace `#ifdef\s\s__cplusplus` with `#ifdef\s__cplusplus` 2022-04-21 14:43:39 +00:00
os_memory.h
os_memory_aligned.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
os_memory_debug.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
os_memory_fd.c util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
os_memory_fd.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
os_memory_stdc.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
os_misc.c
os_misc.h misc: replace `#ifdef\s\s__cplusplus` with `#ifdef\s__cplusplus` 2022-04-21 14:43:39 +00:00
os_socket.c
os_socket.h
os_time.c util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
os_time.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
ptralloc.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
ralloc.c util: use c11 alignas instead of rolling our own 2022-06-14 15:08:37 +00:00
ralloc.h
rand_xor.c
rand_xor.h
rb_tree.c
rb_tree.h util: Convert rb_tree_test to gtest 2021-10-20 21:40:31 -07:00
register_allocate.c util/ra: Fix numeric overflow during bitset allocation 2021-12-19 13:10:26 -08:00
register_allocate.h
register_allocate_internal.h util/ra: use adjacency matrix for undirected graph 2021-12-14 09:19:01 +00:00
rgtc.c util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
rgtc.h
rounding.h include: drop c99_math.h 2022-06-02 13:09:16 +00:00
rwlock.h
set.c util/set: Respect found in search_or_add_pre_hashed 2022-04-22 19:38:52 +00:00
set.h
simple_mtx.h
slab.c util/slab: add slab_zalloc 2022-03-09 08:48:59 +00:00
slab.h util/slab: add slab_zalloc 2022-03-09 08:48:59 +00:00
softfloat.c util: Keep quiet NaNs quiet when converting to half float. 2022-05-02 23:36:50 +00:00
softfloat.h
sparse_array.c
sparse_array.h util: use c11 alignas instead of rolling our own 2022-06-14 15:08:37 +00:00
streaming-load-memcpy.c streaming-memcpy: move to src/util/ and compile unconditionally 2022-06-07 03:33:20 +00:00
streaming-load-memcpy.h streaming-memcpy: move to src/util/ and compile unconditionally 2022-06-07 03:33:20 +00:00
string_buffer.c
string_buffer.h
strndup.h
strtod.c
strtod.h
texcompress_rgtc_tmp.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
timespec.h util: Remove unused function timespec_passed 2022-06-09 17:23:34 +00:00
u_atomic.c util/u_atomic: fix build on clang archs without 64-bit atomics 2022-02-28 14:28:23 +00:00
u_atomic.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
u_cpu_detect.c util: use c11 alignas instead of rolling our own 2022-06-14 15:08:37 +00:00
u_cpu_detect.h misc: Replace `#ifdef\t__cplusplus` with `#ifdef\s\s__cplusplus` 2022-04-21 14:43:39 +00:00
u_debug.c util/u_debug: Use 'initialized' instead of 'first' 2022-06-10 06:56:04 +00:00
u_debug.h util/u_debug: Use 'initialized' instead of 'first' 2022-06-10 06:56:04 +00:00
u_debug_describe.c util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium 2021-10-01 14:51:23 +00:00
u_debug_describe.h util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium 2021-10-01 14:51:23 +00:00
u_debug_memory.c
u_debug_refcnt.c u_debug_refcnt: Don't loop for initial refcounts if the initial value is huge 2022-05-02 16:58:20 +00:00
u_debug_refcnt.h util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium 2021-10-01 14:51:23 +00:00
u_debug_stack.c util/u_debug: Use 'initialized' instead of 'first' 2022-06-10 06:56:04 +00:00
u_debug_stack.h misc: Replace `#ifdef\t__cplusplus` with `#ifdef\s\s__cplusplus` 2022-04-21 14:43:39 +00:00
u_debug_stack_android.cpp
u_debug_symbol.c u_debug_symbol: Allow re-init of DbgHelp to work around already-initialized issues 2022-05-02 16:58:20 +00:00
u_debug_symbol.h misc: Replace `#ifdef\t__cplusplus` with `#ifdef\s\s__cplusplus` 2022-04-21 14:43:39 +00:00
u_drm.h
u_dynarray.h replace 0 with NULL for NULL pointers 2022-01-10 22:53:32 +00:00
u_endian.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
u_fifo.h
u_hash_table.c util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium 2021-10-01 14:51:23 +00:00
u_hash_table.h util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium 2021-10-01 14:51:23 +00:00
u_idalloc.c
u_idalloc.h
u_math.c util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
u_math.h include: drop c99_math.h 2022-06-02 13:09:16 +00:00
u_memory.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
u_memset.h
u_mm.c util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
u_mm.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
u_perfetto.cc
u_perfetto.h misc: Replace `#ifdef\t__cplusplus` with `#ifdef\s\s__cplusplus` 2022-04-21 14:43:39 +00:00
u_printf.c util: Convert util/u_printf.cpp to util/u_printf.c 2022-04-11 03:31:40 +00:00
u_printf.h util: Convert util/u_printf.cpp to util/u_printf.c 2022-04-11 03:31:40 +00:00
u_process.c util: make util_get_process_exec_path work on FreeBSD w/o procfs 2021-10-29 06:06:05 +00:00
u_process.h util/u_process: protect entrypoints for c++ 2022-01-14 20:17:44 +00:00
u_qsort.cpp util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
u_qsort.h
u_queue.c util: Use timespec_get directly, it's always present 2022-06-09 17:23:34 +00:00
u_queue.h util/queue: use simple_mtx_t for finish_lock 2021-10-05 23:46:14 +00:00
u_string.h
u_thread.h util: Should not use ASSERTED in util_thread_get_time_nano 2022-03-29 23:33:21 +00:00
u_vector.c util/vector: make util_vector_init harder to misuse 2021-10-08 00:15:11 +00:00
u_vector.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
u_worklist.c util: Add a generic worklist implementation 2022-04-25 23:50:57 +00:00
u_worklist.h util: Add a generic worklist implementation 2022-04-25 23:50:57 +00:00
vl_rbsp.h util/vl: move gallium vl_vlc.h and vl_rbsp.h to shared code. 2021-11-15 21:57:28 +00:00
vl_vlc.h util/vl_vlc: Support compiling in C++ 2022-05-17 21:02:24 +00:00
vma.c
vma.h
xmlconfig.c util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
xmlconfig.h util: trim trailing space for files src/util/**/* 2022-03-21 17:57:15 +00:00
xxd.py
xxhash.h