old systems may not have inf in math.h

This commit is contained in:
Martin Kroeker 2022-07-03 18:23:51 +02:00 committed by GitHub
parent ee41b6eb24
commit af88494f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "openblas_utest.h"
#if defined(BUILD_DOUBLE)
#ifndef INFINITY
#define INFINITY HUGE_VALF
#endif
CTEST(dnrm2,dnrm2_inf)
{
double x[29];