Skip to content

Commit

Permalink
ALL: removed asm code
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Oct 29, 2023
1 parent 47e1ad5 commit f2615c2
Show file tree
Hide file tree
Showing 42 changed files with 74 additions and 4,114 deletions.
23 changes: 0 additions & 23 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,29 +279,6 @@ function(add_botlib TARGET)
endforeach()
endfunction()

function(add_asm TARGET)
if (MSVC)
enable_language(ASM_MASM)
set(ASM_SRCS)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
list(APPEND ASM_SRCS ${CODE_DIR}/asm/vm_x86_64.asm)
endif()
list(APPEND ASM_SRCS ${CODE_DIR}/asm/snapvector.asm ${CODE_DIR}/asm/ftola.asm)
foreach(_file ${ASM_SRCS})
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
set_property(SOURCE ${_file} APPEND PROPERTY COMPILE_DEFINITIONS idx64=1)
endif()
set_property(SOURCE ${_file} APPEND PROPERTY LANGUAGE ASM_MASM)
set_source_files_properties(${_file} PROPERTIES COMPILE_FLAGS "/safeseh")
endforeach()
target_sources(${TARGET} PRIVATE ${ASM_SRCS})
else()
target_sources(${TARGET} PRIVATE ${CODE_DIR}/asm/snapvector.c ${CODE_DIR}/asm/ftola.c)
set_source_files_properties(${CODE_DIR}/asm/snapvector.c PROPERTIES COMPILE_FLAGS -march=k8)
set_source_files_properties(${CODE_DIR}/asm/ftola.c PROPERTIES COMPILE_FLAGS -march=k8)
endif()
endfunction()

if (DEFAULT_BASEDIR)
add_compile_definitions(DEFAULT_BASEDIR="${DEFAULT_BASEDIR}")
endif()
Expand Down
89 changes: 0 additions & 89 deletions code/asm/ftola.asm

This file was deleted.

83 changes: 0 additions & 83 deletions code/asm/ftola.c

This file was deleted.

54 changes: 0 additions & 54 deletions code/asm/matha.s

This file was deleted.

39 changes: 0 additions & 39 deletions code/asm/qasm-inline.h

This file was deleted.

37 changes: 0 additions & 37 deletions code/asm/qasm.h

This file was deleted.

Loading

0 comments on commit f2615c2

Please sign in to comment.