mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03: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
|