File: cpu_features.h

package info (click to toggle)
satdump 1.2.2%2Bgb79af48-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 81,648 kB
  • sloc: cpp: 276,768; ansic: 164,598; lisp: 1,219; sh: 283; xml: 106; makefile: 7
file content (26 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

namespace cpu_features
{
    struct cpu_features_t
    {
        bool CPU_X86_SSE2 = false;
        bool CPU_X86_SSE3 = false;
        bool CPU_X86_SSE4A = false;
        bool CPU_X86_SSE41 = false;
        bool CPU_X86_SSE42 = false;
        bool CPU_X86_AVX = false;
        bool CPU_X86_AVX2 = false;
        bool CPU_ARM_NEON = false;
        bool CPU_ARM_NEON7 = false;
        bool CPU_ARM_NEON8 = false;
    };

    /*
    Parse the Volk machine string to
    get available CPU features to utilize
    on this machine.
    */
    cpu_features_t get_cpu_features();
    void print_features(cpu_features_t f);
}