Fix MacOS compilation

This commit is contained in:
SChernykh 2020-03-11 16:35:52 +01:00
parent e22f798085
commit 539943c655
4 changed files with 7 additions and 3 deletions

View file

@ -48,7 +48,7 @@ static bool astrobwtInitialized = false;
static bool hasAVX2 = false;
extern "C"
#ifdef __GNUC__
#ifndef _MSC_VER
__attribute__((ms_abi))
#endif
void SHA3_256_AVX2_ASM(const void* in, size_t inBytes, void* out);

View file

@ -40,6 +40,9 @@
.global DECL(SHA3_256_AVX2_ASM)
ALIGN 64
DECL(SHA3_256_AVX2_ASM):
#include "sha3_256_avx2.inc"
KeccakF1600_AVX2_ASM:

View file

@ -29,6 +29,9 @@
_SHA3_256_AVX2_ASM SEGMENT PAGE READ EXECUTE
PUBLIC SHA3_256_AVX2_ASM
ALIGN 64
SHA3_256_AVX2_ASM:
include sha3_256_avx2.inc
KeccakF1600_AVX2_ASM:

View file

@ -26,8 +26,6 @@
;# along with this program. If not, see <http://www.gnu.org/licenses/>.
;#
ALIGN 64
SHA3_256_AVX2_ASM:
vzeroupper
mov qword ptr [rsp+8],rbx