mesa/src/util
Kristian H. Kristensen 279f32e042 util/u_debug: Use 'initialized' instead of 'first'
Using 'initialized' to guard the one-time init, means it can be set to
false as part of .bss instead setting 'first' to true in .data.  This
is more efficient and works at .ctor time.

Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16952>
2022-06-10 06:56:04 +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
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
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
compiler.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
compress.c
compress.h
crc32.c
crc32.h
dag.c
dag.h
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
disk_cache.h
disk_cache_os.c
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
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
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
hash_table.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
libsync.h
list.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
log.c
log.h
macros.h util: implement STATIC_ASSERT using c++11 / c11 primitives 2022-06-03 07:14:43 +00:00
memstream.c
memstream.h
mesa-sha1.c
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
os_memory_debug.h
os_memory_fd.c
os_memory_fd.h
os_memory_stdc.h
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
os_time.h
ptralloc.h util: remove needless c99_compat.h includes 2022-06-02 13:09:16 +00:00
ralloc.c
ralloc.h
rand_xor.c
rand_xor.h
rb_tree.c
rb_tree.h
register_allocate.c
register_allocate.h
register_allocate_internal.h
rgtc.c
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
slab.h
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
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
timespec.h util: Remove unused function timespec_passed 2022-06-09 17:23:34 +00:00
u_atomic.c
u_atomic.h
u_cpu_detect.c util: Remove util_cpu_detect 2022-04-20 18:44:35 +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
u_debug_describe.h
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
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
u_endian.h
u_fifo.h
u_hash_table.c
u_hash_table.h
u_idalloc.c
u_idalloc.h
u_math.c
u_math.h include: drop c99_math.h 2022-06-02 13:09:16 +00:00
u_memory.h
u_memset.h
u_mm.c
u_mm.h
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
u_process.h
u_qsort.cpp
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
u_string.h
u_thread.h
u_vector.c
u_vector.h
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
vl_vlc.h util/vl_vlc: Support compiling in C++ 2022-05-17 21:02:24 +00:00
vma.c
vma.h
xmlconfig.c
xmlconfig.h
xxd.py
xxhash.h