mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 00:37:46 +00:00
Fix MacOS compilation
This commit is contained in:
parent
e22f798085
commit
539943c655
4 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue