diff options
author | Loïc Hoguin <[email protected]> | 2017-12-25 17:51:20 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-12-25 17:51:20 +0100 |
commit | 1284144bc49474dc2377047cdd99502247dbded2 (patch) | |
tree | 92fe89a878e9021464c64d0603e41ff1efa2fd66 /src/sdl_cpu_info.erl | |
parent | 371bc5f677b3c763407fc79f01cb9d0c598199cc (diff) | |
download | esdl2-1284144bc49474dc2377047cdd99502247dbded2.tar.gz esdl2-1284144bc49474dc2377047cdd99502247dbded2.tar.bz2 esdl2-1284144bc49474dc2377047cdd99502247dbded2.zip |
Add the new sdl_cpuinfo.h functions
Diffstat (limited to 'src/sdl_cpu_info.erl')
-rw-r--r-- | src/sdl_cpu_info.erl | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/sdl_cpu_info.erl b/src/sdl_cpu_info.erl index 3153e8a..e34f2bd 100644 --- a/src/sdl_cpu_info.erl +++ b/src/sdl_cpu_info.erl @@ -18,9 +18,11 @@ -export([get_cpu_count/0]). -export([get_system_ram/0]). -export([has_3dnow/0]). --export([has_avx/0]). -export([has_altivec/0]). +-export([has_avx/0]). +-export([has_avx2/0]). -export([has_mmx/0]). +-export([has_neon/0]). -export([has_rdtsc/0]). -export([has_sse/0]). -export([has_sse2/0]). @@ -44,18 +46,26 @@ get_system_ram() -> has_3dnow() -> esdl2:has_3dnow(). +-spec has_altivec() -> boolean(). +has_altivec() -> + esdl2:has_altivec(). + -spec has_avx() -> boolean(). has_avx() -> esdl2:has_avx(). --spec has_altivec() -> boolean(). -has_altivec() -> - esdl2:has_altivec(). +-spec has_avx2() -> boolean(). +has_avx2() -> + esdl2:has_avx2(). -spec has_mmx() -> boolean(). has_mmx() -> esdl2:has_mmx(). +-spec has_neon() -> boolean(). +has_neon() -> + esdl2:has_neon(). + -spec has_rdtsc() -> boolean(). has_rdtsc() -> esdl2:has_rdtsc(). |