Skip to content

Commit

Permalink
Provide statement for every case.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Dec 4, 2024
1 parent 9f0bd72 commit e4b8bcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/base/machine.F
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,19 @@ PURE FUNCTION m_cpuid_vlen(cpuid, typesize)

SELECT CASE (isa)
CASE (MACHINE_X86_SSE4)
m_cpuid_vlen = 16/nbytes
CASE (MACHINE_ARM_ARCH64) ! NEON
m_cpuid_vlen = 16/nbytes
CASE (MACHINE_ARM_SVE128)
m_cpuid_vlen = 16/nbytes
CASE (MACHINE_X86_AVX)
m_cpuid_vlen = 32/nbytes
CASE (MACHINE_X86_AVX2)
m_cpuid_vlen = 32/nbytes
CASE (MACHINE_ARM_SVE256)
m_cpuid_vlen = 32/nbytes
CASE (MACHINE_X86_AVX512)
m_cpuid_vlen = 64/nbytes
CASE (MACHINE_ARM_SVE512)
m_cpuid_vlen = 64/nbytes
CASE DEFAULT ! unknown or generic
Expand Down

0 comments on commit e4b8bcc

Please sign in to comment.