Skip to content

Commit

Permalink
use blasint for INTERFACE64 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Apr 5, 2024
1 parent d3f93c6 commit 9c86838
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions utest/test_zscal.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

CTEST(zscal, i_nan)
{
int N=9;
int incX=1;
blasint N=9;
blasint incX=1;
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };
double nan[] = {NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0};
BLASFUNC(zscal)(&N, i, nan, &incX);
Expand All @@ -24,8 +24,8 @@ CTEST(zscal, i_nan)

CTEST(zscal, i_nan_inc_2)
{
int N=9;
int incX=1;
blasint N=9;
blasint incX=1;
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };
double nan[] = {NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0,
NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0};
Expand All @@ -38,8 +38,8 @@ CTEST(zscal, i_nan_inc_2)

CTEST(zscal, nan_i)
{
int N=9;
int incX=1;
blasint N=9;
blasint incX=1;
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };
double nan[] = {NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0};
BLASFUNC(zscal)(&N, nan, i, &incX);
Expand All @@ -51,8 +51,8 @@ CTEST(zscal, nan_i)

CTEST(zscal, nan_i_inc_2)
{
int N=9;
int incX=1;
blasint N=9;
blasint incX=1;
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1,
0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };
double nan[] = {NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0, NAN,0};
Expand All @@ -65,8 +65,8 @@ CTEST(zscal, nan_i_inc_2)

CTEST(zscal, i_inf)
{
int N=9;
int incX=1;
blasint N=9;
blasint incX=1;
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };
double inf[] = {INFINITY, 0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0};
BLASFUNC(zscal)(&N, i, inf, &incX);
Expand All @@ -78,8 +78,8 @@ CTEST(zscal, i_inf)

CTEST(zscal, i_inf_inc_2)
{
int N=9;
int incX=2;
blasint N=9;
blasint incX=2;
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };
double inf[] = {INFINITY, 0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0,
INFINITY, 0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0};
Expand All @@ -92,8 +92,8 @@ CTEST(zscal, i_inf_inc_2)

CTEST(zscal, inf_i)
{
int N=9;
int incX=1;
blasint N=9;
blasint incX=1;
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };
double inf[] = {INFINITY, 0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0};
BLASFUNC(zscal)(&N, inf, i, &incX);
Expand All @@ -105,8 +105,8 @@ CTEST(zscal, inf_i)

CTEST(zscal, inf_i_inc_2)
{
int N=9;
int incX=2;
blasint N=9;
blasint incX=2;
double i[] = {0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1,
0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1, 0,1 };
double inf[] = {INFINITY, 0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0, INFINITY,0};
Expand Down

0 comments on commit 9c86838

Please sign in to comment.