File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ bool cpuinfo_arm_linux_hwcap_from_procfs(uint32_t hwcap[restrict static 1], uint
8989 * hwcap2 = mock_hwcap2 ;
9090 return true;
9191#else
92- uint32_t hwcaps [2 ] = {0 , 0 };
92+ uint64_t hwcaps [2 ] = {0 , 0 };
9393 bool result = false;
9494 int file = -1 ;
9595
@@ -113,7 +113,7 @@ bool cpuinfo_arm_linux_hwcap_from_procfs(uint32_t hwcap[restrict static 1], uint
113113 hwcaps [0 ] = (uint32_t )elf_auxv .a_un .a_val ;
114114 break ;
115115 case AT_HWCAP2 :
116- hwcaps [1 ] = (uint32_t )elf_auxv .a_un .a_val ;
116+ hwcaps [1 ] = (uint64_t )elf_auxv .a_un .a_val ;
117117 break ;
118118 }
119119 } else {
@@ -141,13 +141,13 @@ bool cpuinfo_arm_linux_hwcap_from_procfs(uint32_t hwcap[restrict static 1], uint
141141}
142142#endif /* __ANDROID__ */
143143#elif CPUINFO_ARCH_ARM64
144- void cpuinfo_arm_linux_hwcap_from_getauxval (uint32_t hwcap [restrict static 1 ], uint32_t hwcap2 [restrict static 1 ]) {
144+ void cpuinfo_arm_linux_hwcap_from_getauxval (uint32_t hwcap [restrict static 1 ], uint64_t hwcap2 [restrict static 1 ]) {
145145#if CPUINFO_MOCK
146146 * hwcap = mock_hwcap ;
147147 * hwcap2 = mock_hwcap2 ;
148148#else
149149 * hwcap = (uint32_t )getauxval (AT_HWCAP );
150- * hwcap2 = (uint32_t )getauxval (AT_HWCAP2 );
150+ * hwcap2 = (uint64_t )getauxval (AT_HWCAP2 );
151151 return ;
152152#endif
153153}
You can’t perform that action at this time.
0 commit comments