From 1284144bc49474dc2377047cdd99502247dbded2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 25 Dec 2017 17:51:20 +0100 Subject: Add the new sdl_cpuinfo.h functions --- src/sdl_cpu_info.erl | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/sdl_cpu_info.erl') 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(). -- cgit v1.2.3