| 107 | } |
| 108 | |
| 109 | int av_get_cpu_flags(void) |
| 110 | { |
| 111 | int flags = atomic_load_explicit(&cpu_flags, memory_order_relaxed); |
| 112 | if (flags == -1) { |
| 113 | flags = get_cpu_flags(); |
| 114 | atomic_store_explicit(&cpu_flags, flags, memory_order_relaxed); |
| 115 | } |
| 116 | return flags; |
| 117 | } |
| 118 | |
| 119 | int av_parse_cpu_caps(unsigned *flags, const char *s) |
| 120 | { |