diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2022-09-30 01:11:29 +0300 |
---|---|---|
committer | Henrik Gramner <gramner@twoorioles.com> | 2022-09-30 18:04:20 +0300 |
commit | e4c4af02f3de5e6cea6f81272a2981c0fa7bae28 (patch) | |
tree | af7c69678a43322235e3abd85fd9cd6433690126 /src/cpu.h | |
parent | 58c856b76ad423efe59a518b5f02752354e0d0d8 (diff) |
Specify hidden visibility for global data symbol declarations
'-fvisibility=hidden' only applies to definitions, not declarations,
so the compiler has to be conservative about how references to global
data symbols are performed.
Explicitly specifying the visibility allows for better code generation.
Diffstat (limited to 'src/cpu.h')
-rw-r--r-- | src/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ #include "src/x86/cpu.h" #endif -extern unsigned dav1d_cpu_flags; -extern unsigned dav1d_cpu_flags_mask; +EXTERN unsigned dav1d_cpu_flags; +EXTERN unsigned dav1d_cpu_flags_mask; void dav1d_init_cpu(void); DAV1D_API void dav1d_set_cpu_flags_mask(unsigned mask); |