11/*********************************************************************/
22/* Copyright 2009, 2010 The University of Texas at Austin. */
3+ /* Copyright 2023 The OpenBLAS Project */
34/* All rights reserved. */
45/* */
56/* Redistribution and use in source and binary forms, with or */
@@ -54,7 +55,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
5455 svint64_t one_vec = svdup_s64 (1LL );
5556
5657 int64_t j = 0 ;
57- svbool_t pg = svwhilelt_b64 (j , n );
58+ svbool_t pg = svwhilelt_b64 (( uint64_t ) j , ( uint64_t ) n );
5859 int64_t active = svcntp_b64 (svptrue_b64 (), pg );
5960 svint64_t index_neg = svindex_s64 (0LL , -1LL );
6061 svint64_t index = svindex_s64 (0LL , 1LL );
@@ -79,7 +80,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
7980 gat_ind = svadd_m (cmp , gat_ind , lda_vec );
8081 gat_ind = svadd_m (svnot_z (pg , cmp ) , gat_ind , 2 );
8182 if (offset <= 0 ) {
82- svbool_t off_g = svwhilelt_b64 (offset , 0LL );
83+ svbool_t off_g = svwhilelt_b64 (( uint64_t ) offset , ( uint64_t ) 0LL );
8384 data_vec_imag = svneg_m (data_vec_imag , off_g , data_vec_imag );
8485 }
8586
@@ -99,7 +100,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
99100 posX += sve_size ;
100101 posX_vec = svdup_s64 (posX );
101102 j += sve_size ;
102- pg = svwhilelt_b64 (j , n );
103+ pg = svwhilelt_b64 (( uint64_t ) j , ( uint64_t ) n );
103104 active = svcntp_b64 (svptrue_b64 (), pg );
104105 } while (svptest_any (svptrue_b64 (), pg ));
105106
@@ -117,7 +118,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
117118
118119 int32_t j = 0 ;
119120 int32_t N = n ;
120- svbool_t pg = svwhilelt_b32 (j , N );
121+ svbool_t pg = svwhilelt_b32 (( uint32_t ) j , ( uint32_t ) N );
121122 int32_t active = svcntp_b32 (svptrue_b32 (), pg );
122123 svint32_t index_neg = svindex_s32 (0 , -1 );
123124 svint32_t index = svindex_s32 (0 , 1 );
@@ -142,7 +143,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
142143 gat_ind = svadd_m (cmp , gat_ind , lda_vec );
143144 gat_ind = svadd_m (svnot_z (pg , cmp ) , gat_ind , 2 );
144145 if (offset <= 0 ) {
145- svbool_t off_g = svwhilelt_b32 (offset , 0 );
146+ svbool_t off_g = svwhilelt_b32 (( uint32_t ) offset , ( uint32_t ) 0 );
146147 data_vec_imag = svneg_m (data_vec_imag , off_g , data_vec_imag );
147148 }
148149
@@ -162,7 +163,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
162163 posX += sve_size ;
163164 posX_vec = svdup_s32 (posX );
164165 j += sve_size ;
165- pg = svwhilelt_b32 (j , N );
166+ pg = svwhilelt_b32 (( uint32_t ) j , ( uint32_t ) N );
166167 active = svcntp_b32 (svptrue_b32 (), pg );
167168 } while (svptest_any (svptrue_b32 (), pg ));
168169
0 commit comments