We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb46bd0 commit d90ceecCopy full SHA for d90ceec
1 file changed
src/ArmCpuUtils.ts
@@ -91,10 +91,10 @@ const armvx_sp_archs: string[] = armvx_dp_archs;
91
export function hasFpu(cpu: string, hasDp?: boolean) {
92
cpu = cpu.toLowerCase();
93
if (hasDp) { // check dp
94
- return cortex_dp_mcus.some(n => cpu.endsWith(n))
95
- || armvx_dp_archs.some(a => cpu.startsWith(a));
+ return cortex_dp_mcus.some(a => cpu.includes(a))
+ || armvx_dp_archs.some(a => cpu.includes(a));
96
} else { // check sp
97
- return cortex_sp_mcus.some(n => cpu.endsWith(n))
98
- || armvx_sp_archs.some(a => cpu.startsWith(a));
+ return cortex_sp_mcus.some(a => cpu.includes(a))
+ || armvx_sp_archs.some(a => cpu.includes(a));
99
}
100
0 commit comments