-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDL_cpuinfo.fth
44 lines (40 loc) · 1.93 KB
/
SDL_cpuinfo.fth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
\ This file has been generated using SWIG and fsi,
\ and is already platform dependent, search for the corresponding
\ fsi-file to compile it where no one has compiled it before ;)
\ Forth systems have their own own dynamic loader and don't need addional C-Code.
\ That's why this file will just print normal forth-code once compiled
\ and can be used directly with include or require.
\ As all comments are stripped during the compilation, please
\ insert the copyright notice of the original file here.
\ ----===< prefix >===-----
c-library sdl_cpuinfo
s" SDL2" add-lib
\c #include <SDL2/SDL_cpuinfo.h>
\ ----===< int constants >===-----
#128 constant SDL_CACHELINE_SIZE
\ ------===< functions >===-------
c-function SDL_GetCPUCount SDL_GetCPUCount -- n ( -- )
c-function SDL_GetCPUCacheLineSize SDL_GetCPUCacheLineSize -- n ( -- )
c-function SDL_HasRDTSC SDL_HasRDTSC -- n ( -- )
c-function SDL_HasAltiVec SDL_HasAltiVec -- n ( -- )
c-function SDL_HasMMX SDL_HasMMX -- n ( -- )
c-function SDL_Has3DNow SDL_Has3DNow -- n ( -- )
c-function SDL_HasSSE SDL_HasSSE -- n ( -- )
c-function SDL_HasSSE2 SDL_HasSSE2 -- n ( -- )
c-function SDL_HasSSE3 SDL_HasSSE3 -- n ( -- )
c-function SDL_HasSSE41 SDL_HasSSE41 -- n ( -- )
c-function SDL_HasSSE42 SDL_HasSSE42 -- n ( -- )
c-function SDL_HasAVX SDL_HasAVX -- n ( -- )
c-function SDL_HasAVX2 SDL_HasAVX2 -- n ( -- )
c-function SDL_HasAVX512F SDL_HasAVX512F -- n ( -- )
c-function SDL_HasARMSIMD SDL_HasARMSIMD -- n ( -- )
c-function SDL_HasNEON SDL_HasNEON -- n ( -- )
c-function SDL_HasLSX SDL_HasLSX -- n ( -- )
c-function SDL_HasLASX SDL_HasLASX -- n ( -- )
c-function SDL_GetSystemRAM SDL_GetSystemRAM -- n ( -- )
c-function SDL_SIMDGetAlignment SDL_SIMDGetAlignment -- n ( -- )
c-function SDL_SIMDAlloc SDL_SIMDAlloc n -- a ( len -- )
c-function SDL_SIMDRealloc SDL_SIMDRealloc a n -- a ( mem len -- )
c-function SDL_SIMDFree SDL_SIMDFree a -- void ( ptr -- )
\ ----===< postfix >===-----
end-c-library