sc_nbutils.hh (12853:e23d6f09069a) | sc_nbutils.hh (13160:1e959d3afc64) |
---|---|
1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 808 unchanged lines hidden (view full) --- 817 v == -std::numeric_limits<double>::infinity(); 818} 819 820inline void 821is_bad_double(double v) 822{ 823 // Windows throws exception. 824 if (is_nan(v) || is_inf(v)) | 1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 808 unchanged lines hidden (view full) --- 817 v == -std::numeric_limits<double>::infinity(); 818} 819 820inline void 821is_bad_double(double v) 822{ 823 // Windows throws exception. 824 if (is_nan(v) || is_inf(v)) |
825 SC_REPORT_ERROR("value is not valid", | 825 SC_REPORT_ERROR("(E204) value is not valid", |
826 "is_bad_double(double v) : " 827 "v is not finite - NaN or Inf"); 828} 829 830} // namespace sc_dt 831 832#endif // __SYSTEMC_EXT_DT_INT_SC_NBUTILS_HH__ | 826 "is_bad_double(double v) : " 827 "v is not finite - NaN or Inf"); 828} 829 830} // namespace sc_dt 831 832#endif // __SYSTEMC_EXT_DT_INT_SC_NBUTILS_HH__ |