Home | History | Annotate | Download | only in cpufeatures

Lines Matching defs:hwcaps

530 // On success, return new ELF hwcaps, or 0 on failure.
568 uint32_t hwcaps = 0;
580 D("Faking 32-bit ARM HWCaps on ARMv%ld CPU\n", architecture);
590 hwcaps |= HWCAP_VFP;
592 hwcaps |= HWCAP_VFPv3;
594 hwcaps |= HWCAP_VFPv3D16;
596 hwcaps |= HWCAP_VFPv4;
598 hwcaps |= HWCAP_NEON;
600 hwcaps |= HWCAP_IDIVA;
602 hwcaps |= HWCAP_IDIVT;
604 hwcaps |= HWCAP_IDIVA | HWCAP_IDIVT;
606 hwcaps |= HWCAP_IWMMXT;
610 return hwcaps;
759 /* Extract the list of CPU features from ELF hwcaps */
760 uint32_t hwcaps = 0;
761 hwcaps = get_elf_hwcap_from_getauxval(AT_HWCAP);
762 if (!hwcaps) {
763 D("Parsing /proc/self/auxv to extract ELF hwcaps!\n");
764 hwcaps = get_elf_hwcap_from_proc_self_auxv();
766 if (!hwcaps) {
770 D("Parsing /proc/cpuinfo to extract ELF hwcaps!\n");
771 hwcaps = get_elf_hwcap_from_proc_cpuinfo(cpuinfo, cpuinfo_len);
774 if (hwcaps != 0) {
775 int has_vfp = (hwcaps & HWCAP_VFP);
776 int has_vfpv3 = (hwcaps & HWCAP_VFPv3);
777 int has_vfpv3d16 = (hwcaps & HWCAP_VFPv3D16);
778 int has_vfpv4 = (hwcaps & HWCAP_VFPv4);
779 int has_neon = (hwcaps & HWCAP_NEON);
780 int has_idiva = (hwcaps & HWCAP_IDIVA);
781 int has_idivt = (hwcaps & HWCAP_IDIVT);
782 int has_iwmmxt = (hwcaps & HWCAP_IWMMXT);
943 /* Extract the list of CPU features from ELF hwcaps */
944 uint32_t hwcaps = 0;
945 hwcaps = get_elf_hwcap_from_getauxval(AT_HWCAP);
946 if (hwcaps != 0) {
947 int has_fp = (hwcaps & HWCAP_FP);
948 int has_asimd = (hwcaps & HWCAP_ASIMD);
949 int has_aes = (hwcaps & HWCAP_AES);
950 int has_pmull = (hwcaps & HWCAP_PMULL);
951 int has_sha1 = (hwcaps & HWCAP_SHA1);
952 int has_sha2 = (hwcaps & HWCAP_SHA2);
953 int has_crc32 = (hwcaps & HWCAP_CRC32);
1006 /* Extract the list of CPU features from ELF hwcaps */
1007 uint32_t hwcaps = 0;
1008 hwcaps = get_elf_hwcap_from_getauxval(AT_HWCAP);
1009 if (hwcaps != 0) {
1010 int has_r6 = (hwcaps & HWCAP_MIPS_R6);
1011 int has_msa = (hwcaps & HWCAP_MIPS_MSA);