mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-20 12:30:27 -05:00
RandomX: returned old soft AES impl and auto-select between the two
This commit is contained in:
@@ -38,7 +38,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
namespace randomx {
|
||||
|
||||
template<bool softAes>
|
||||
template<int softAes>
|
||||
class InterpretedVm : public VmBase<softAes>, public BytecodeMachine {
|
||||
public:
|
||||
using VmBase<softAes>::mem;
|
||||
@@ -65,6 +65,6 @@ namespace randomx {
|
||||
InstructionByteCode bytecode[RANDOMX_PROGRAM_MAX_SIZE];
|
||||
};
|
||||
|
||||
using InterpretedVmDefault = InterpretedVm<true>;
|
||||
using InterpretedVmHardAes = InterpretedVm<false>;
|
||||
using InterpretedVmDefault = InterpretedVm<1>;
|
||||
using InterpretedVmHardAes = InterpretedVm<0>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user