Add 32 bit support for software AES too.

This commit is contained in:
XMRig 2017-04-21 15:47:11 +03:00
parent ac89023a79
commit 8235ae0fa6
3 changed files with 282 additions and 9 deletions

View file

@ -37,19 +37,14 @@
void cryptonight_av1_aesni(void* output, const void* input, struct cryptonight_ctx* ctx);
void cryptonight_av4_softaes(void* output, const void* input, struct cryptonight_ctx* ctx);
#if defined(__x86_64__)
void cryptonight_av2_aesni_stak(void* output, const void* input, struct cryptonight_ctx* ctx);
void cryptonight_av3_aesni_bmi2(void* output, const void* input, struct cryptonight_ctx* ctx);
void cryptonight_av4_softaes(void* output, const void* input, struct cryptonight_ctx* ctx);
void cryptonight_av5_aesni_experimental(void* output, const void* input, struct cryptonight_ctx* ctx);
#elif defined(__i386__)
// void cryptonight_av1_aesni32(void* output, const void* input, const char *memory, struct cryptonight_ctx* ctx);
#endif
//void cryptonight_av4_softaes(void* output, const void* input, struct cryptonight_ctx* ctx);
void (*cryptonight_hash_ctx)(void* output, const void* input, struct cryptonight_ctx* ctx) = NULL;
@ -74,9 +69,9 @@ void cryptonight_init(int variant)
break;
# endif
// case XMR_AV4_SOFT_AES:
// cryptonight_hash_ctx = cryptonight_av4_softaes;
// break;
case XMR_AV4_SOFT_AES:
cryptonight_hash_ctx = cryptonight_av4_softaes;
break;
default:
break;