Skip to content

Commit ceb1de5

Browse files
committed
update config files
1 parent 134d10e commit ceb1de5

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111

1212
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
1313

14-
set(AVX512 OFF CACHE BOOL "Set ON for AVX-512, set OFF for AVX2.")
14+
set(VECTORFORTH_AVX512 OFF CACHE BOOL "Set ON for AVX-512, set OFF for AVX2.")
1515

16-
set(SINCOS_METHOD "approximate" CACHE STRING "Choose the method to compute sin/cos. Vectorclass is accurate. Approximate is least accurate but fastest. Lookup uses a lookup table and is faster than vectorclass but less accurate.")
16+
set(VECTORFORTH_SINCOS_METHOD "approximate" CACHE STRING "Choose the method to compute sin/cos. Vectorclass is accurate. Approximate is least accurate but fastest. Lookup uses a lookup table and is faster than vectorclass but less accurate.")
1717

18-
set_property(CACHE SINCOS_METHOD PROPERTY STRINGS vectorclass lookup approximate)
18+
set_property(CACHE VECTORFORTH_SINCOS_METHOD PROPERTY STRINGS vectorclass lookup approximate)
1919

20-
message(STATUS "SINCOS_METHOD='${SINCOS_METHOD}'")
20+
message(STATUS "VECTORFORTH_SINCOS_METHOD='${VECTORFORTH_SINCOS_METHOD}'")
2121

2222
add_subdirectory(asm)
2323
add_subdirectory(asm.tests)

sf/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ endif (UNIX)
4444
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
4545
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
4646

47-
if (AVX512)
47+
if (VECTORFORTH_AVX512)
4848
add_definitions(-DAVX512)
49-
endif (AVX512)
49+
endif (VECTORFORTH_AVX512)
5050

51-
if (${SINCOS_METHOD} STREQUAL "lookup")
51+
if (${VECTORFORTH_SINCOS_METHOD} STREQUAL "lookup")
5252
add_definitions(-DSINCOSLOOKUP)
53-
endif (${SINCOS_METHOD} STREQUAL "lookup")
53+
endif (${VECTORFORTH_SINCOS_METHOD} STREQUAL "lookup")
5454

55-
if (${SINCOS_METHOD} STREQUAL "approximate")
55+
if (${VECTORFORTH_SINCOS_METHOD} STREQUAL "approximate")
5656
add_definitions(-DSINCOSAPPROX)
57-
endif (${SINCOS_METHOD} STREQUAL "approximate")
57+
endif (${VECTORFORTH_SINCOS_METHOD} STREQUAL "approximate")
5858

5959
include ("../jtk/jtk/jtk.cmake")
6060

shaderforth/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ endif (UNIX)
8080
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
8181
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
8282

83-
if (AVX512)
83+
if (VECTORFORTH_AVX512)
8484
add_definitions(-DAVX512)
85-
endif (AVX512)
85+
endif (VECTORFORTH_AVX512)
8686

87-
if (${SINCOS_METHOD} STREQUAL "lookup")
87+
if (${VECTORFORTH_SINCOS_METHOD} STREQUAL "lookup")
8888
add_definitions(-DSINCOSLOOKUP)
89-
endif (${SINCOS_METHOD} STREQUAL "lookup")
89+
endif (${VECTORFORTH_SINCOS_METHOD} STREQUAL "lookup")
9090

91-
if (${SINCOS_METHOD} STREQUAL "approximate")
91+
if (${VECTORFORTH_SINCOS_METHOD} STREQUAL "approximate")
9292
add_definitions(-DSINCOSAPPROX)
93-
endif (${SINCOS_METHOD} STREQUAL "approximate")
93+
endif (${VECTORFORTH_SINCOS_METHOD} STREQUAL "approximate")
9494

9595
include ("../jtk/jtk/jtk.cmake")
9696

vectorforth.tests/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
3838

3939
add_definitions(-DMEMORY_LEAK_TRACKING)
4040

41-
if (AVX512)
41+
if (VECTORFORTH_AVX512)
4242
add_definitions(-DAVX512)
43-
endif (AVX512)
43+
endif (VECTORFORTH_AVX512)
4444

45-
if (${SINCOS_METHOD} STREQUAL "lookup")
45+
if (${VECTORFORTH_SINCOS_METHOD} STREQUAL "lookup")
4646
add_definitions(-DSINCOSLOOKUP)
47-
endif (${SINCOS_METHOD} STREQUAL "lookup")
47+
endif (${VECTORFORTH_SINCOS_METHOD} STREQUAL "lookup")
4848

49-
if (${SINCOS_METHOD} STREQUAL "approximate")
49+
if (${VECTORFORTH_SINCOS_METHOD} STREQUAL "approximate")
5050
add_definitions(-DSINCOSAPPROX)
51-
endif (${SINCOS_METHOD} STREQUAL "approximate")
51+
endif (${VECTORFORTH_SINCOS_METHOD} STREQUAL "approximate")
5252

5353
add_executable(vectorforth.tests ${HDRS} ${SRCS})
5454
source_group("Header Files" FILES ${hdrs})
@@ -66,4 +66,4 @@ target_link_libraries(vectorforth.tests
6666
PRIVATE
6767
asm
6868
vectorforth
69-
)
69+
)

vectorforth/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ endif (UNIX)
5858
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
5959
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
6060

61-
if (AVX512)
61+
if (VECTORFORTH_AVX512)
6262
add_definitions(-DAVX512)
63-
endif (AVX512)
63+
endif (VECTORFORTH_AVX512)
6464

65-
if (${SINCOS_METHOD} STREQUAL "lookup")
65+
if (${VECTORFORTH_SINCOS_METHOD} STREQUAL "lookup")
6666
add_definitions(-DSINCOSLOOKUP)
67-
endif (${SINCOS_METHOD} STREQUAL "lookup")
67+
endif (${VECTORFORTH_SINCOS_METHOD} STREQUAL "lookup")
6868

69-
if (${SINCOS_METHOD} STREQUAL "approximate")
69+
if (${VECTORFORTH_SINCOS_METHOD} STREQUAL "approximate")
7070
add_definitions(-DSINCOSAPPROX)
71-
endif (${SINCOS_METHOD} STREQUAL "approximate")
71+
endif (${VECTORFORTH_SINCOS_METHOD} STREQUAL "approximate")
7272

7373
add_library(vectorforth SHARED ${HDRS} ${SRCS})
7474
source_group("Header Files" FILES ${hdrs})

0 commit comments

Comments
 (0)