2018-09-10 03:54:05 +08:00
|
|
|
#ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_RUNTIME_H
|
|
|
|
#define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_RUNTIME_H
|
|
|
|
|
2014-09-13 10:15:05 +08:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
2014-09-10 01:23:09 +08:00
|
|
|
#ifdef VANILLA_NACL /* toxcore only uses this when libsodium is unavailable */
|
|
|
|
|
|
|
|
#ifndef __SODIUM_RUNTIME_H__
|
|
|
|
#define __SODIUM_RUNTIME_H__ 1
|
|
|
|
|
|
|
|
#include "export.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
SODIUM_EXPORT
|
|
|
|
int sodium_runtime_get_cpu_features(void);
|
|
|
|
|
|
|
|
SODIUM_EXPORT
|
|
|
|
int sodium_runtime_has_neon(void);
|
|
|
|
|
|
|
|
SODIUM_EXPORT
|
|
|
|
int sodium_runtime_has_sse2(void);
|
|
|
|
|
|
|
|
SODIUM_EXPORT
|
|
|
|
int sodium_runtime_has_sse3(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2018-09-10 03:54:05 +08:00
|
|
|
|
|
|
|
#endif
|