Use getauxval() on Linux and elf_aux_info() on OpenBSD on mips
2 unresolved threads
2 unresolved threads
Merge request reports
Activity
Filter activity
added 2 commits
504 504 505 505 #elif HAVE_MSA 506 506 507 #define HWCAP_MIPS_MSA (1U << 1) 508 507 509 uint32_t x264_cpu_detect( void ) 508 510 { 509 return X264_CPU_MSA; 511 uint32_t flags = 0; 512 513 #if HAVE_GETAUXVAL 514 unsigned long hwcap = x264_getauxval( AT_HWCAP ); 515 516 if ( hwcap & HWCAP_MIPS_MSA ) 517 flags |= X264_CPU_MSA; 518 #endif added 1 commit
- 868171c3 - Use getauxval() on Linux and elf_aux_info() on OpenBSD on mips
504 504 505 505 #elif HAVE_MSA 506 506 507 #define HWCAP_MIPS_MSA (1U << 1) 508 507 509 uint32_t x264_cpu_detect( void ) 508 510 { 511 uint32_t flags = 0; 512 513 #if HAVE_GETAUXVAL || HAVE_ELF_AUX_INFO 514 unsigned long hwcap = x264_getauxval( AT_HWCAP ); 515 516 if ( hwcap & HWCAP_MIPS_MSA ) 517 flags |= X264_CPU_MSA; 518 #else 509 519 return X264_CPU_MSA;