Home | History | Annotate | Download | only in cpufeatures

Lines Matching defs:hwcaps

521 // On success, return new ELF hwcaps, or 0 on failure.
559 uint32_t hwcaps = 0;
571 D("Faking 32-bit ARM HWCaps on ARMv%ld CPU\n", architecture);
581 hwcaps |= HWCAP_VFP;
583 hwcaps |= HWCAP_VFPv3;
585 hwcaps |= HWCAP_VFPv3D16;
587 hwcaps |= HWCAP_VFPv4;
589 hwcaps |= HWCAP_NEON;
591 hwcaps |= HWCAP_IDIVA;
593 hwcaps |= HWCAP_IDIVT;
595 hwcaps |= HWCAP_IDIVA | HWCAP_IDIVT;
597 hwcaps |= HWCAP_IWMMXT;
601 return hwcaps;
768 /* Extract the list of CPU features from ELF hwcaps */
769 uint32_t hwcaps = 0;
771 hwcaps = get_elf_hwcap_from_getauxval(AT_HWCAP);
773 if (!hwcaps) {
774 D("Parsing /proc/self/auxv to extract ELF hwcaps!\n");
775 hwcaps = get_elf_hwcap_from_proc_self_auxv();
777 if (!hwcaps) {
781 D("Parsing /proc/cpuinfo to extract ELF hwcaps!\n");
782 hwcaps = get_elf_hwcap_from_proc_cpuinfo(cpuinfo, cpuinfo_len);
785 if (hwcaps != 0) {
786 int has_vfp = (hwcaps & HWCAP_VFP);
787 int has_vfpv3 = (hwcaps & HWCAP_VFPv3);
788 int has_vfpv3d16 = (hwcaps & HWCAP_VFPv3D16);
789 int has_vfpv4 = (hwcaps & HWCAP_VFPv4);
790 int has_neon = (hwcaps & HWCAP_NEON);
791 int has_idiva = (hwcaps & HWCAP_IDIVA);
792 int has_idivt = (hwcaps & HWCAP_IDIVT);
793 int has_iwmmxt = (hwcaps & HWCAP_IWMMXT);
956 /* Extract the list of CPU features from ELF hwcaps */
957 uint32_t hwcaps = 0;
958 hwcaps = get_elf_hwcap_from_getauxval(AT_HWCAP);
959 if (hwcaps != 0) {
960 int has_fp = (hwcaps & HWCAP_FP);
961 int has_asimd = (hwcaps & HWCAP_ASIMD);
962 int has_aes = (hwcaps & HWCAP_AES);
963 int has_pmull = (hwcaps & HWCAP_PMULL);
964 int has_sha1 = (hwcaps & HWCAP_SHA1);
965 int has_sha2 = (hwcaps & HWCAP_SHA2);
966 int has_crc32 = (hwcaps & HWCAP_CRC32);