module Graphics.UI.SDL.CPUInfo
( hasRDTSC
, hasMMX
, hasMMXExt
, has3DNow
, has3DNowExt
, hasSSE
, hasSSE2
, hasAltiVec
) where
import Foreign.Marshal.Utils (toBool)
foreign import ccall unsafe "SDL_HasRDTSC" sdlHasRDTSC :: Int
hasRDTSC :: Bool
hasRDTSC = toBool sdlHasRDTSC
foreign import ccall unsafe "SDL_HasMMX" sdlHasMMX :: Int
hasMMX :: Bool
hasMMX = toBool sdlHasMMX
foreign import ccall unsafe "SDL_HasMMXExt" sdlHasMMXExt :: Int
hasMMXExt :: Bool
hasMMXExt = toBool sdlHasMMXExt
foreign import ccall unsafe "SDL_Has3DNow" sdlHas3DNow :: Int
has3DNow :: Bool
has3DNow = toBool sdlHas3DNow
foreign import ccall unsafe "SDL_Has3DNowExt" sdlHas3DNowExt :: Int
has3DNowExt :: Bool
has3DNowExt = toBool sdlHas3DNowExt
foreign import ccall unsafe "SDL_HasSSE" sdlHasSSE :: Int
hasSSE :: Bool
hasSSE = toBool sdlHasSSE
foreign import ccall unsafe "SDL_HasSSE2" sdlHasSSE2 :: Int
hasSSE2 :: Bool
hasSSE2 = toBool sdlHasSSE2
foreign import ccall unsafe "SDL_HasAltiVec" sdlHasAltiVec :: Int
hasAltiVec :: Bool
hasAltiVec = toBool sdlHasAltiVec