Module: RbSDL2::CPUInfo

Defined in:
lib/rb_sdl2/cpu_info.rb

Class Method Summary collapse

Class Method Details

.altivec?Boolean

Power CPU の AltiVec 拡張命令セット

Returns:

  • (Boolean)


5
# File 'lib/rb_sdl2/cpu_info.rb', line 5

def altivec? = ::SDL.HasAltiVec == ::SDL::TRUE

.amd3dnow?Boolean

AMD x86 CPU の 3DNow! 拡張命令セット

Returns:

  • (Boolean)


8
# File 'lib/rb_sdl2/cpu_info.rb', line 8

def amd3dnow? = ::SDL.Has3DNow == ::SDL::TRUE

.armsimd?Boolean

Arm CPU の SIMD 命令セット

Returns:

  • (Boolean)


11
# File 'lib/rb_sdl2/cpu_info.rb', line 11

def armsimd? = ::SDL.HasARMSIMD == ::SDL::TRUE

.avxObject

x86 CPU の AVX 命令セット



14
# File 'lib/rb_sdl2/cpu_info.rb', line 14

def avx = ::SDL.HasAVX == ::SDL::TRUE

.avx2Object

x86 CPU の AVX2 命令セット



17
# File 'lib/rb_sdl2/cpu_info.rb', line 17

def avx2 = ::SDL.HasAVX2 == ::SDL::TRUE

.avx512f?Boolean

x86 CPU の AVX-512F 命令セット

Returns:

  • (Boolean)


20
# File 'lib/rb_sdl2/cpu_info.rb', line 20

def avx512f? = ::SDL.HasAVX512F == ::SDL::TRUE

.cpu_cache_line_sizeObject

CPU の L1 キャッシュラインサイズ(Byte)



23
# File 'lib/rb_sdl2/cpu_info.rb', line 23

def cpu_cache_line_size = ::SDL.GetCPUCacheLineSize

.cpu_countObject

論理 CPU コアの総数



26
# File 'lib/rb_sdl2/cpu_info.rb', line 26

def cpu_count = ::SDL.GetCPUCount

.mmx?Boolean

x86 CPU の MMX 命令セット

Returns:

  • (Boolean)


29
# File 'lib/rb_sdl2/cpu_info.rb', line 29

def mmx? = ::SDL.HasMMX == ::SDL::TRUE

.neon?Boolean

Arm CPU の NEON 命令セット

Returns:

  • (Boolean)


32
# File 'lib/rb_sdl2/cpu_info.rb', line 32

def neon? = ::SDL.HasNEON == ::SDL::TRUE

.rdtsc?Boolean

x86 CPU の RDTSC 命令

Returns:

  • (Boolean)


35
# File 'lib/rb_sdl2/cpu_info.rb', line 35

def rdtsc? = ::SDL.HasRDTSC == ::SDL::TRUE

.sse2Object

x86 CPU の SSE2 命令セット



41
# File 'lib/rb_sdl2/cpu_info.rb', line 41

def sse2 = ::SDL.HasSSE2 == ::SDL::TRUE

.sse3Object

x86 CPU の SSE3 命令セット



44
# File 'lib/rb_sdl2/cpu_info.rb', line 44

def sse3 = ::SDL.HasSSE3 == ::SDL::TRUE

.sse41?Boolean

x86 CPU の SSE4.1 命令セット

Returns:

  • (Boolean)


47
# File 'lib/rb_sdl2/cpu_info.rb', line 47

def sse41? = ::SDL.HasSSE41 == ::SDL::TRUE

.sse42?Boolean

x86 CPU の SSE4.2 命令セット

Returns:

  • (Boolean)


50
# File 'lib/rb_sdl2/cpu_info.rb', line 50

def sse42? = ::SDL.HasSSE42 == ::SDL::TRUE

.sse?Boolean

x86 CPU の SSE 命令セット

Returns:

  • (Boolean)


38
# File 'lib/rb_sdl2/cpu_info.rb', line 38

def sse? = ::SDL.HasSSE == ::SDL::TRUE

.system_ramObject

システム RAM のサイズ(MB)



53
# File 'lib/rb_sdl2/cpu_info.rb', line 53

def system_ram = ::SDL.GetSystemRAM