2018-12-31 18:06:45 +00:00
|
|
|
;# Copyright (c) 2018 tevador
|
|
|
|
;#
|
|
|
|
;# This file is part of RandomX.
|
|
|
|
;#
|
|
|
|
;# RandomX is free software: you can redistribute it and/or modify
|
|
|
|
;# it under the terms of the GNU General Public License as published by
|
|
|
|
;# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;# (at your option) any later version.
|
|
|
|
;#
|
|
|
|
;# RandomX is distributed in the hope that it will be useful,
|
|
|
|
;# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;# GNU General Public License for more details.
|
|
|
|
;#
|
|
|
|
;# You should have received a copy of the GNU General Public License
|
|
|
|
;# along with RandomX. If not, see<http://www.gnu.org/licenses/>.
|
|
|
|
|
2019-01-18 16:57:47 +00:00
|
|
|
IFDEF RAX
|
|
|
|
|
2018-12-31 18:06:45 +00:00
|
|
|
_RANDOMX_JITX86_STATIC SEGMENT PAGE READ EXECUTE
|
|
|
|
|
|
|
|
PUBLIC randomx_program_prologue
|
2019-01-27 09:52:30 +00:00
|
|
|
PUBLIC randomx_loop_begin
|
|
|
|
PUBLIC randomx_program_load_int
|
|
|
|
PUBLIC randomx_program_load_flt
|
|
|
|
PUBLIC randomx_program_start
|
|
|
|
PUBLIC randomx_program_read_dataset
|
|
|
|
PUBLIC randomx_program_store_int
|
|
|
|
PUBLIC randomx_program_store_flt
|
|
|
|
PUBLIC randomx_program_loop_end
|
2018-12-31 18:06:45 +00:00
|
|
|
PUBLIC randomx_program_epilogue
|
|
|
|
PUBLIC randomx_program_end
|
|
|
|
|
|
|
|
ALIGN 64
|
|
|
|
randomx_program_prologue PROC
|
|
|
|
include asm/program_prologue_win64.inc
|
|
|
|
randomx_program_prologue ENDP
|
|
|
|
|
|
|
|
ALIGN 64
|
2019-01-27 09:52:30 +00:00
|
|
|
include asm/program_xmm_constants.inc
|
|
|
|
|
|
|
|
ALIGN 64
|
|
|
|
randomx_loop_begin PROC
|
|
|
|
nop
|
|
|
|
randomx_loop_begin ENDP
|
|
|
|
|
|
|
|
randomx_program_load_int PROC
|
|
|
|
include asm/program_load_int.inc
|
|
|
|
randomx_program_load_int ENDP
|
|
|
|
|
|
|
|
randomx_program_load_flt PROC
|
|
|
|
include asm/program_load_flt.inc
|
|
|
|
randomx_program_load_flt ENDP
|
|
|
|
|
|
|
|
randomx_program_start PROC
|
2018-12-31 18:06:45 +00:00
|
|
|
nop
|
2019-01-27 09:52:30 +00:00
|
|
|
randomx_program_start ENDP
|
|
|
|
|
|
|
|
randomx_program_read_dataset PROC
|
|
|
|
include asm/program_read_dataset.inc
|
|
|
|
randomx_program_read_dataset ENDP
|
|
|
|
|
|
|
|
randomx_program_store_int PROC
|
|
|
|
include asm/program_store_int.inc
|
|
|
|
randomx_program_store_int ENDP
|
|
|
|
|
|
|
|
randomx_program_store_flt PROC
|
|
|
|
include asm/program_store_flt.inc
|
|
|
|
randomx_program_store_flt ENDP
|
|
|
|
|
|
|
|
randomx_program_loop_end PROC
|
|
|
|
nop
|
|
|
|
randomx_program_loop_end ENDP
|
2018-12-31 18:06:45 +00:00
|
|
|
|
|
|
|
ALIGN 64
|
|
|
|
randomx_program_epilogue PROC
|
|
|
|
include asm/program_epilogue_win64.inc
|
|
|
|
randomx_program_epilogue ENDP
|
|
|
|
|
|
|
|
ALIGN 64
|
|
|
|
randomx_program_end PROC
|
|
|
|
nop
|
|
|
|
randomx_program_end ENDP
|
|
|
|
|
|
|
|
_RANDOMX_JITX86_STATIC ENDS
|
|
|
|
|
2019-01-18 16:57:47 +00:00
|
|
|
ENDIF
|
|
|
|
|
2018-12-31 18:06:45 +00:00
|
|
|
END
|