Skip to content

Commit

Permalink
fast_math: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
olupton committed May 4, 2023
1 parent 966fc36 commit c5cf4c1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 393 deletions.
2 changes: 0 additions & 2 deletions .sanitizers/undefined.supp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
implicit-integer-sign-change:double vector[2] Eigen::internal::pabs<double vector[2]>(double vector[2] const&)
unsigned-integer-overflow:nmodl::fast_math::vexp(double)
unsigned-integer-overflow:nmodl::fast_math::vexpm1(double)
unsigned-integer-overflow:std::mersenne_twister_engine
unsigned-integer-overflow:fmt::v9::detail::make_write_int_arg
4 changes: 0 additions & 4 deletions src/codegen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ add_library(
codegen_utils.cpp)
add_dependencies(codegen lexer util visitor)
target_link_libraries(codegen PRIVATE util)

# copy to build directory to make usable from build directory
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/fast_math.hpp
${CMAKE_BINARY_DIR}/include/nmodl/fast_math.hpp COPYONLY)
1 change: 0 additions & 1 deletion src/codegen/codegen_cpp_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2450,7 +2450,6 @@ void CodegenCVisitor::print_backend_info() {
void CodegenCVisitor::print_standard_includes() {
printer->add_newline();
printer->add_line("#include <math.h>");
printer->add_line("#include \"nmodl/fast_math.hpp\" // extend math with some useful functions");
printer->add_line("#include <stdio.h>");
printer->add_line("#include <stdlib.h>");
printer->add_line("#include <string.h>");
Expand Down
258 changes: 0 additions & 258 deletions src/codegen/fast_math.hpp

This file was deleted.

2 changes: 0 additions & 2 deletions test/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ add_executable(testprinter printer/printer.cpp)
add_executable(testsymtab symtab/symbol_table.cpp)
add_executable(testnewton newton/newton.cpp ${NEWTON_SOLVER_SOURCE_FILES})
add_executable(testcrout crout/crout.cpp ${CROUT_SOLVER_SOURCE_FILES})
add_executable(testfast_math fast_math/fast_math.cpp ${NEWTON_SOLVER_SOURCE_FILES})
add_executable(testunitlexer units/lexer.cpp)
add_executable(testunitparser units/parser.cpp)
add_executable(
Expand Down Expand Up @@ -127,7 +126,6 @@ foreach(
testsymtab
testnewton
testcrout
testfast_math
testunitlexer
testunitparser)

Expand Down
Loading

0 comments on commit c5cf4c1

Please sign in to comment.