Skip to content

Commit d1ead06

Browse files
authored
define NAN and INFINITY if needed
1 parent 7df363e commit d1ead06

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utest/test_zscal.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
#include <cblas.h>
33
#ifdef BUILD_COMPLEX16
44

5+
#ifndef NAN
6+
#define NAN 0.0/0.0
7+
#endif
8+
#ifndef INFINITY
9+
#define INFINITY 1.0/0.0
10+
#endif
11+
512
CTEST(zscal, i_nan)
613
{
714
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };

0 commit comments

Comments
 (0)