Advertisement
Kitomas

_kit_corePrivate.h as of 2023-10-05

Oct 6th, 2023
819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. #ifndef _KIT_COREPRIVATE_H
  2. #define _KIT_COREPRIVATE_H
  3.  
  4.  
  5. #include <SDL2/SDL.h>
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11.  
  12.  
  13. //bitmasks for _kit_coreGlobals.capabilities
  14. #define _SSE_MASK   (1<<5)
  15. #define _SSE2_MASK  (1<<4)
  16. #define _SSE3_MASK  (1<<3)
  17. #define _SSE41_MASK (1<<2) //(SSE4.1)
  18. #define _AVX_MASK   (1<<1)
  19. #define _AVX2_MASK  (1<<0)
  20.  
  21.  
  22.  
  23.  
  24. struct _kit_coreGlobals_t {
  25.   SDL_mutex* lock;
  26.   int cores, capabilities;
  27.   int init;
  28. };
  29. extern struct _kit_coreGlobals_t _kit_coreGlobals;
  30.  
  31.  
  32.  
  33.  
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37.  
  38. #endif /* _KIT_COREPRIVATE_H */
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement