Skip to content

Commit

Permalink
simpler build configuration for complex<>
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenwater committed Aug 30, 2024
1 parent 2ea7eea commit a29c087
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,10 @@ if(BUILD_COMPLEX)
# are maintained in the individual number system regression suites.
# Their respective build systems will use BUILD_COMPLEX to add/remove
# the complex<> regression suites.

set(BUILD_APPLICATIONS ON)
set(BUILD_NUMBER_FIXPNTS ON)
set(BUILD_NUMBER_CFLOATS ON)
set(BUILD_NUMBER_POSITS ON)
# I am leaving this segment here as a pattern that might drive the development
# of a complex<> replacement that might need its own regression suite
# independent of user-defined types.
Expand Down
2 changes: 1 addition & 1 deletion applications/performance/complex/compute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// second: enable/disable posit arithmetic exceptions
#define POSIT_THROW_ARITHMETIC_EXCEPTION 1
#include <universal/number/posit/posit.hpp>
#include <universal/math/complex_manipulators.hpp> // to_binary() for complex types
#include <universal/math/complex/manipulators.hpp> // to_binary() for complex types


template<typename Scalar>
Expand Down
4 changes: 2 additions & 2 deletions static/fixpnt/binary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ message(STATUS "CMAKE_CXX_COMPILER ID is -${CMAKE_CXX_COMPILER_ID}-")
if(BUILD_COMPLEX)

message(STATUS "Adding regression suite for complex arithmetic using fixpnt")
compile_all("true" "fixpnt_cmplx" "Complex/Number System/static/fixed-point/binary/fixpnt/arithmetic" "${COMPLEX_ARITHMETIC_SRC}")
compile_all("true" "fixpnt_cmplx" "Complex/Number Systems/static/fixed-point/binary/fixpnt/arithmetic" "${COMPLEX_ARITHMETIC_SRC}")

message(STATUS "Adding regression suite for complex math functions using fixpnt")
compile_all("true" "fixpnt_cmplx" "Complex/Number System/static/fixed-point/binary/fixpnt/math" "${COMPLEX_MATH_SRC}")
compile_all("true" "fixpnt_cmplx" "Complex/Number Systems/static/fixed-point/binary/fixpnt/math" "${COMPLEX_MATH_SRC}")

else(BUILD_COMPLEX)
message(STATUS "Removing regression suite for complex arithmetic using fixpnt")
Expand Down

0 comments on commit a29c087

Please sign in to comment.