mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-10-31 09:20:38 +00:00
62cd9fffa3
Rework CPU extensions detection code and build with AES-NI and AVX support by default
24 lines
376 B
C++
24 lines
376 B
C++
/*
|
|
* Copyright (c) 2013-2020, The PurpleI2P Project
|
|
*
|
|
* This file is part of Purple i2pd project and licensed under BSD3
|
|
*
|
|
* See full license text in LICENSE file at top of project tree
|
|
*/
|
|
|
|
#ifndef LIBI2PD_CPU_H
|
|
#define LIBI2PD_CPU_H
|
|
|
|
namespace i2p
|
|
{
|
|
namespace cpu
|
|
{
|
|
extern bool aesni;
|
|
extern bool avx;
|
|
|
|
void Detect(bool AesSwitch, bool AvxSwitch, bool force);
|
|
}
|
|
}
|
|
|
|
#endif
|