diff options
author | 2020-09-20 08:04:22 +0200 | |
---|---|---|
committer | 2020-09-20 17:34:54 +0200 | |
commit | 63efcfcb85e2f475b26541d0973b0321c9204598 (patch) | |
tree | 63a3862e71012a254bb17a4d8d099a7a6d16b91d /src/lib/netlist/plib/pgsl.h | |
parent | 9e4377dc4f2f22e0aecc9daaf043eedf398e38e2 (diff) |
netlist: code refactoring.
- rename mat_cr.h to pmatrix_cr.h
- Optimization to the gmres solver.
- Simplifcation of vector operation code
Diffstat (limited to 'src/lib/netlist/plib/pgsl.h')
-rw-r--r-- | src/lib/netlist/plib/pgsl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pgsl.h b/src/lib/netlist/plib/pgsl.h index ab7798071a5..590765429eb 100644 --- a/src/lib/netlist/plib/pgsl.h +++ b/src/lib/netlist/plib/pgsl.h @@ -25,6 +25,8 @@ #if defined(__has_builtin) // clang and gcc 10 #if __has_builtin(__builtin_unreachable) #define gsl_Expects(e) ((e) ? static_cast<void>(0) : __builtin_unreachable()) + #else + #define gsl_Expects(e) ((e) ? static_cast<void>(0) : static_cast<void>(0)) #endif #elif defined(__GNUC__) && !(defined( __CUDACC__ ) && defined( __CUDA_ARCH__ )) #define gsl_Expects(e) ((e) ? static_cast<void>(0) : __builtin_unreachable()) @@ -34,8 +36,10 @@ #define gsl_Expects(e) ((e) ? static_cast<void>(0) : static_cast<void>(0)) #endif +#if 0 #undef gsl_Expects #define gsl_Expects(e) do {} while (0) +#endif #define gsl_Ensures(e) gsl_Expects(e) namespace plib { |