RandomX: returned old soft AES impl and auto-select between the two
This commit is contained in:
parent
852fe14604
commit
8d1168385a
16 changed files with 194 additions and 101 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "crypto/rx/RxConfig.h"
|
||||
#include "crypto/rx/RxQueue.h"
|
||||
#include "crypto/randomx/randomx.h"
|
||||
#include "crypto/randomx/soft_aes.h"
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
@ -113,6 +114,9 @@ bool xmrig::Rx::init(const T &seed, const RxConfig &config, const CpuConfig &cpu
|
|||
|
||||
if (!osInitialized) {
|
||||
setupMainLoopExceptionFrame();
|
||||
if (!cpu.isHwAES()) {
|
||||
SelectSoftAESImpl();
|
||||
}
|
||||
osInitialized = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue