runtime.h 941 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef sodium_runtime_H
  2. #define sodium_runtime_H
  3. #include "export.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. SODIUM_EXPORT_WEAK
  8. int sodium_runtime_has_neon(void);
  9. SODIUM_EXPORT_WEAK
  10. int sodium_runtime_has_sse2(void);
  11. SODIUM_EXPORT_WEAK
  12. int sodium_runtime_has_sse3(void);
  13. SODIUM_EXPORT_WEAK
  14. int sodium_runtime_has_ssse3(void);
  15. SODIUM_EXPORT_WEAK
  16. int sodium_runtime_has_sse41(void);
  17. SODIUM_EXPORT_WEAK
  18. int sodium_runtime_has_avx(void);
  19. SODIUM_EXPORT_WEAK
  20. int sodium_runtime_has_avx2(void);
  21. SODIUM_EXPORT_WEAK
  22. int sodium_runtime_has_avx512f(void);
  23. SODIUM_EXPORT_WEAK
  24. int sodium_runtime_has_pclmul(void);
  25. SODIUM_EXPORT_WEAK
  26. int sodium_runtime_has_aesni(void);
  27. SODIUM_EXPORT_WEAK
  28. int sodium_runtime_has_rdrand(void);
  29. /* ------------------------------------------------------------------------- */
  30. int _sodium_runtime_get_cpu_features(void);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif