* @brief Run-time detection if the host CPU supports the POPCNT extension. * * @return @c true if supported, @c false if not. */
| 140 | * @return @c true if supported, @c false if not. |
| 141 | */ |
| 142 | static bool cpu_supports_popcnt() |
| 143 | { |
| 144 | if (!g_init) |
| 145 | { |
| 146 | detect_cpu_isa(); |
| 147 | } |
| 148 | |
| 149 | return g_cpu_has_popcnt; |
| 150 | } |
| 151 | #endif |
| 152 | |
| 153 | #if ASTCENC_F16C > 0 |
no test coverage detected