{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Cpuinfo.Unsafe (
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_GetNumLogicalCPUCores,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_GetCPUCacheLineSize,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasAltiVec,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasMMX,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasSSE,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasSSE2,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasSSE3,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasSSE41,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasSSE42,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasAVX,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasAVX2,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasAVX512F,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasARMSIMD,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasNEON,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasLSX,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_HasLASX,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_GetSystemRAM,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_GetSIMDAlignment,
SDL3.Sys.Bindgen.Cpuinfo.Unsafe.sDL_GetSystemPageSize,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
$( HsBindgen.Runtime.Support.CAPI.addCSource
( HsBindgen.Runtime.Support.CAPI.unlines
[ "#define SDL_MAIN_HANDLED"
, "#define SDL_SLOW_MEMCPY"
, "#define SDL_SLOW_MEMMOVE"
, "#define SDL_SLOW_MEMSET"
, "#include <SDL3/SDL_cpuinfo.h>"
, "signed int hs_bindgen_2dccacbd66e2901a (void)"
, "{"
, " return (SDL_GetNumLogicalCPUCores)();"
, "}"
, "signed int hs_bindgen_e03244111b7a5e58 (void)"
, "{"
, " return (SDL_GetCPUCacheLineSize)();"
, "}"
, "_Bool hs_bindgen_c02ac9b5929c16b4 (void)"
, "{"
, " return (SDL_HasAltiVec)();"
, "}"
, "_Bool hs_bindgen_28aa2bda36b5aa4c (void)"
, "{"
, " return (SDL_HasMMX)();"
, "}"
, "_Bool hs_bindgen_eaac9231c0bcefbd (void)"
, "{"
, " return (SDL_HasSSE)();"
, "}"
, "_Bool hs_bindgen_45752d13431081c5 (void)"
, "{"
, " return (SDL_HasSSE2)();"
, "}"
, "_Bool hs_bindgen_c6c39cde5a6c6617 (void)"
, "{"
, " return (SDL_HasSSE3)();"
, "}"
, "_Bool hs_bindgen_e0ea6c3ffa969fb3 (void)"
, "{"
, " return (SDL_HasSSE41)();"
, "}"
, "_Bool hs_bindgen_963abd764eea230e (void)"
, "{"
, " return (SDL_HasSSE42)();"
, "}"
, "_Bool hs_bindgen_9fd691470d9db666 (void)"
, "{"
, " return (SDL_HasAVX)();"
, "}"
, "_Bool hs_bindgen_124690c686028ea3 (void)"
, "{"
, " return (SDL_HasAVX2)();"
, "}"
, "_Bool hs_bindgen_3ae539db5deb14c3 (void)"
, "{"
, " return (SDL_HasAVX512F)();"
, "}"
, "_Bool hs_bindgen_b00e33aa275d2caa (void)"
, "{"
, " return (SDL_HasARMSIMD)();"
, "}"
, "_Bool hs_bindgen_1bc7c765b1884ac6 (void)"
, "{"
, " return (SDL_HasNEON)();"
, "}"
, "_Bool hs_bindgen_d7682979762c8eba (void)"
, "{"
, " return (SDL_HasLSX)();"
, "}"
, "_Bool hs_bindgen_d5a768a4b808f80b (void)"
, "{"
, " return (SDL_HasLASX)();"
, "}"
, "signed int hs_bindgen_677c5a21a3ebeb42 (void)"
, "{"
, " return (SDL_GetSystemRAM)();"
, "}"
, "size_t hs_bindgen_0e3c01d452c69d72 (void)"
, "{"
, " return (SDL_GetSIMDAlignment)();"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#include <SDL3/SDL_error.h>"
, "signed int hs_bindgen_d276a10dc866cd76 (void)"
, "{"
, "#if SDL_VERSION_ATLEAST(3, 4, 0)"
, " return (SDL_GetSystemPageSize)();"
, "#else"
, " SDL_SetError(\"SDL_GetSystemPageSize requires SDL >= 3.4.0\"); return 0;"
, "#endif"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_2dccacbd66e2901a"
hs_bindgen_2dccacbd66e2901a_base
:: IO BG.CInt
hs_bindgen_2dccacbd66e2901a :: IO BG.CInt
hs_bindgen_2dccacbd66e2901a :: IO CInt
hs_bindgen_2dccacbd66e2901a =
(CInt -> CInt) -> IO CInt -> IO CInt
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CInt
hs_bindgen_2dccacbd66e2901a_base
sDL_GetNumLogicalCPUCores :: IO BG.CInt
sDL_GetNumLogicalCPUCores :: IO CInt
sDL_GetNumLogicalCPUCores =
IO CInt
hs_bindgen_2dccacbd66e2901a
foreign import ccall unsafe "hs_bindgen_e03244111b7a5e58"
hs_bindgen_e03244111b7a5e58_base
:: IO BG.CInt
hs_bindgen_e03244111b7a5e58 :: IO BG.CInt
hs_bindgen_e03244111b7a5e58 :: IO CInt
hs_bindgen_e03244111b7a5e58 =
(CInt -> CInt) -> IO CInt -> IO CInt
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CInt
hs_bindgen_e03244111b7a5e58_base
sDL_GetCPUCacheLineSize :: IO BG.CInt
sDL_GetCPUCacheLineSize :: IO CInt
sDL_GetCPUCacheLineSize = IO CInt
hs_bindgen_e03244111b7a5e58
foreign import ccall unsafe "hs_bindgen_c02ac9b5929c16b4"
hs_bindgen_c02ac9b5929c16b4_base
:: IO BG.CBool
hs_bindgen_c02ac9b5929c16b4 :: IO BG.CBool
hs_bindgen_c02ac9b5929c16b4 :: IO CBool
hs_bindgen_c02ac9b5929c16b4 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_c02ac9b5929c16b4_base
sDL_HasAltiVec :: IO BG.CBool
sDL_HasAltiVec :: IO CBool
sDL_HasAltiVec = IO CBool
hs_bindgen_c02ac9b5929c16b4
foreign import ccall unsafe "hs_bindgen_28aa2bda36b5aa4c"
hs_bindgen_28aa2bda36b5aa4c_base
:: IO BG.CBool
hs_bindgen_28aa2bda36b5aa4c :: IO BG.CBool
hs_bindgen_28aa2bda36b5aa4c :: IO CBool
hs_bindgen_28aa2bda36b5aa4c =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_28aa2bda36b5aa4c_base
sDL_HasMMX :: IO BG.CBool
sDL_HasMMX :: IO CBool
sDL_HasMMX = IO CBool
hs_bindgen_28aa2bda36b5aa4c
foreign import ccall unsafe "hs_bindgen_eaac9231c0bcefbd"
hs_bindgen_eaac9231c0bcefbd_base
:: IO BG.CBool
hs_bindgen_eaac9231c0bcefbd :: IO BG.CBool
hs_bindgen_eaac9231c0bcefbd :: IO CBool
hs_bindgen_eaac9231c0bcefbd =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_eaac9231c0bcefbd_base
sDL_HasSSE :: IO BG.CBool
sDL_HasSSE :: IO CBool
sDL_HasSSE = IO CBool
hs_bindgen_eaac9231c0bcefbd
foreign import ccall unsafe "hs_bindgen_45752d13431081c5"
hs_bindgen_45752d13431081c5_base
:: IO BG.CBool
hs_bindgen_45752d13431081c5 :: IO BG.CBool
hs_bindgen_45752d13431081c5 :: IO CBool
hs_bindgen_45752d13431081c5 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_45752d13431081c5_base
sDL_HasSSE2 :: IO BG.CBool
sDL_HasSSE2 :: IO CBool
sDL_HasSSE2 = IO CBool
hs_bindgen_45752d13431081c5
foreign import ccall unsafe "hs_bindgen_c6c39cde5a6c6617"
hs_bindgen_c6c39cde5a6c6617_base
:: IO BG.CBool
hs_bindgen_c6c39cde5a6c6617 :: IO BG.CBool
hs_bindgen_c6c39cde5a6c6617 :: IO CBool
hs_bindgen_c6c39cde5a6c6617 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_c6c39cde5a6c6617_base
sDL_HasSSE3 :: IO BG.CBool
sDL_HasSSE3 :: IO CBool
sDL_HasSSE3 = IO CBool
hs_bindgen_c6c39cde5a6c6617
foreign import ccall unsafe "hs_bindgen_e0ea6c3ffa969fb3"
hs_bindgen_e0ea6c3ffa969fb3_base
:: IO BG.CBool
hs_bindgen_e0ea6c3ffa969fb3 :: IO BG.CBool
hs_bindgen_e0ea6c3ffa969fb3 :: IO CBool
hs_bindgen_e0ea6c3ffa969fb3 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_e0ea6c3ffa969fb3_base
sDL_HasSSE41 :: IO BG.CBool
sDL_HasSSE41 :: IO CBool
sDL_HasSSE41 = IO CBool
hs_bindgen_e0ea6c3ffa969fb3
foreign import ccall unsafe "hs_bindgen_963abd764eea230e"
hs_bindgen_963abd764eea230e_base
:: IO BG.CBool
hs_bindgen_963abd764eea230e :: IO BG.CBool
hs_bindgen_963abd764eea230e :: IO CBool
hs_bindgen_963abd764eea230e =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_963abd764eea230e_base
sDL_HasSSE42 :: IO BG.CBool
sDL_HasSSE42 :: IO CBool
sDL_HasSSE42 = IO CBool
hs_bindgen_963abd764eea230e
foreign import ccall unsafe "hs_bindgen_9fd691470d9db666"
hs_bindgen_9fd691470d9db666_base
:: IO BG.CBool
hs_bindgen_9fd691470d9db666 :: IO BG.CBool
hs_bindgen_9fd691470d9db666 :: IO CBool
hs_bindgen_9fd691470d9db666 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_9fd691470d9db666_base
sDL_HasAVX :: IO BG.CBool
sDL_HasAVX :: IO CBool
sDL_HasAVX = IO CBool
hs_bindgen_9fd691470d9db666
foreign import ccall unsafe "hs_bindgen_124690c686028ea3"
hs_bindgen_124690c686028ea3_base
:: IO BG.CBool
hs_bindgen_124690c686028ea3 :: IO BG.CBool
hs_bindgen_124690c686028ea3 :: IO CBool
hs_bindgen_124690c686028ea3 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_124690c686028ea3_base
sDL_HasAVX2 :: IO BG.CBool
sDL_HasAVX2 :: IO CBool
sDL_HasAVX2 = IO CBool
hs_bindgen_124690c686028ea3
foreign import ccall unsafe "hs_bindgen_3ae539db5deb14c3"
hs_bindgen_3ae539db5deb14c3_base
:: IO BG.CBool
hs_bindgen_3ae539db5deb14c3 :: IO BG.CBool
hs_bindgen_3ae539db5deb14c3 :: IO CBool
hs_bindgen_3ae539db5deb14c3 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_3ae539db5deb14c3_base
sDL_HasAVX512F :: IO BG.CBool
sDL_HasAVX512F :: IO CBool
sDL_HasAVX512F = IO CBool
hs_bindgen_3ae539db5deb14c3
foreign import ccall unsafe "hs_bindgen_b00e33aa275d2caa"
hs_bindgen_b00e33aa275d2caa_base
:: IO BG.CBool
hs_bindgen_b00e33aa275d2caa :: IO BG.CBool
hs_bindgen_b00e33aa275d2caa :: IO CBool
hs_bindgen_b00e33aa275d2caa =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_b00e33aa275d2caa_base
sDL_HasARMSIMD :: IO BG.CBool
sDL_HasARMSIMD :: IO CBool
sDL_HasARMSIMD = IO CBool
hs_bindgen_b00e33aa275d2caa
foreign import ccall unsafe "hs_bindgen_1bc7c765b1884ac6"
hs_bindgen_1bc7c765b1884ac6_base
:: IO BG.CBool
hs_bindgen_1bc7c765b1884ac6 :: IO BG.CBool
hs_bindgen_1bc7c765b1884ac6 :: IO CBool
hs_bindgen_1bc7c765b1884ac6 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_1bc7c765b1884ac6_base
sDL_HasNEON :: IO BG.CBool
sDL_HasNEON :: IO CBool
sDL_HasNEON = IO CBool
hs_bindgen_1bc7c765b1884ac6
foreign import ccall unsafe "hs_bindgen_d7682979762c8eba"
hs_bindgen_d7682979762c8eba_base
:: IO BG.CBool
hs_bindgen_d7682979762c8eba :: IO BG.CBool
hs_bindgen_d7682979762c8eba :: IO CBool
hs_bindgen_d7682979762c8eba =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_d7682979762c8eba_base
sDL_HasLSX :: IO BG.CBool
sDL_HasLSX :: IO CBool
sDL_HasLSX = IO CBool
hs_bindgen_d7682979762c8eba
foreign import ccall unsafe "hs_bindgen_d5a768a4b808f80b"
hs_bindgen_d5a768a4b808f80b_base
:: IO BG.CBool
hs_bindgen_d5a768a4b808f80b :: IO BG.CBool
hs_bindgen_d5a768a4b808f80b :: IO CBool
hs_bindgen_d5a768a4b808f80b =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_d5a768a4b808f80b_base
sDL_HasLASX :: IO BG.CBool
sDL_HasLASX :: IO CBool
sDL_HasLASX = IO CBool
hs_bindgen_d5a768a4b808f80b
foreign import ccall unsafe "hs_bindgen_677c5a21a3ebeb42"
hs_bindgen_677c5a21a3ebeb42_base
:: IO BG.CInt
hs_bindgen_677c5a21a3ebeb42 :: IO BG.CInt
hs_bindgen_677c5a21a3ebeb42 :: IO CInt
hs_bindgen_677c5a21a3ebeb42 =
(CInt -> CInt) -> IO CInt -> IO CInt
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CInt
hs_bindgen_677c5a21a3ebeb42_base
sDL_GetSystemRAM :: IO BG.CInt
sDL_GetSystemRAM :: IO CInt
sDL_GetSystemRAM = IO CInt
hs_bindgen_677c5a21a3ebeb42
foreign import ccall unsafe "hs_bindgen_0e3c01d452c69d72"
hs_bindgen_0e3c01d452c69d72_base
:: IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_0e3c01d452c69d72 :: IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_0e3c01d452c69d72 :: IO CSize
hs_bindgen_0e3c01d452c69d72 =
(CSize -> CSize) -> IO CSize -> IO CSize
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CSize -> CSize
FFIType CSize -> CSize
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CSize
hs_bindgen_0e3c01d452c69d72_base
sDL_GetSIMDAlignment :: IO HsBindgen.Runtime.LibC.CSize
sDL_GetSIMDAlignment :: IO CSize
sDL_GetSIMDAlignment = IO CSize
hs_bindgen_0e3c01d452c69d72
foreign import ccall unsafe "hs_bindgen_d276a10dc866cd76"
hs_bindgen_d276a10dc866cd76_base
:: IO BG.CInt
hs_bindgen_d276a10dc866cd76 :: IO BG.CInt
hs_bindgen_d276a10dc866cd76 :: IO CInt
hs_bindgen_d276a10dc866cd76 =
(CInt -> CInt) -> IO CInt -> IO CInt
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CInt
hs_bindgen_d276a10dc866cd76_base
sDL_GetSystemPageSize :: IO BG.CInt
sDL_GetSystemPageSize :: IO CInt
sDL_GetSystemPageSize = IO CInt
hs_bindgen_d276a10dc866cd76