mirror of
https://github.com/amd/blis.git
synced 2026-04-20 07:38:53 +00:00
Replaced use of bool_t type with C99 bool.
Details: - Textually replaced nearly all non-comment instances of bool_t with the C99 bool type. A few remaining instances, such as those in the files bli_herk_x_ker_var2.c, bli_trmm_xx_ker_var2.c, and bli_trsm_xx_ker_var2.c, were promoted to dim_t since they were being used not for boolean purposes but to index into an array. - This commit constitutes the third phase of a transition toward using C99's bool instead of bool_t, which was raised in issue #420. The first phase, which cleaned up various typecasts in preparation for using bool as the basis for bool_t (instead of gint_t), was implemented by commita69a4d7. The second phase, which redefined the bool_t typedef in terms of bool (from gint_t), was implemented by commit2c554c2.
This commit is contained in:
@@ -829,7 +829,7 @@ void GENBAINAME(cntx_init)
|
||||
}
|
||||
else if ( method == BLIS_1M )
|
||||
{
|
||||
const bool_t is_pb = FALSE;
|
||||
const bool is_pb = FALSE;
|
||||
|
||||
// We MUST set the induced method in the context prior to calling
|
||||
// bli_cntx_l3_ukr_prefers_cols_dt() because that function queries
|
||||
@@ -930,7 +930,7 @@ void GENBAINAME(cntx_init)
|
||||
}
|
||||
else if ( method == BLIS_1M )
|
||||
{
|
||||
//const bool_t is_pb = FALSE;
|
||||
//const bool is_pb = FALSE;
|
||||
|
||||
// Set the anti-preference field to TRUE when executing a panel-block
|
||||
// algorithm, and FALSE otherwise. This will cause higher-level generic
|
||||
|
||||
@@ -54,8 +54,8 @@ void PASTEMAC3(ch,opname,arch,suf) \
|
||||
\
|
||||
PASTECH(chr,gemm_ukr_ft) \
|
||||
rgemm_ukr = bli_cntx_get_l3_nat_ukr_dt( dt_r, BLIS_GEMM_UKR, cntx ); \
|
||||
const bool_t col_pref = bli_cntx_l3_nat_ukr_prefers_cols_dt( dt_r, BLIS_GEMM_UKR, cntx ); \
|
||||
const bool_t row_pref = !col_pref; \
|
||||
const bool col_pref = bli_cntx_l3_nat_ukr_prefers_cols_dt( dt_r, BLIS_GEMM_UKR, cntx ); \
|
||||
const bool row_pref = !col_pref; \
|
||||
\
|
||||
const dim_t mr = bli_cntx_get_blksz_def_dt( dt, BLIS_MR, cntx ); \
|
||||
const dim_t nr = bli_cntx_get_blksz_def_dt( dt, BLIS_NR, cntx ); \
|
||||
@@ -84,7 +84,7 @@ void PASTEMAC3(ch,opname,arch,suf) \
|
||||
inc_t rs_c_use; \
|
||||
inc_t cs_c_use; \
|
||||
\
|
||||
bool_t using_ct; \
|
||||
bool using_ct; \
|
||||
\
|
||||
/*
|
||||
PASTEMAC(chr,fprintm)( stdout, "gemm_ukr: a", mr, 2*k, \
|
||||
|
||||
@@ -59,7 +59,7 @@ void PASTEMAC3(ch,opname,arch,suf) \
|
||||
PASTECH(ch,trsm_ukr_ft) \
|
||||
ctrsm_vir_ukr = bli_cntx_get_l3_vir_ukr_dt( dt, trsmkerid, cntx ); \
|
||||
\
|
||||
const bool_t col_pref = bli_cntx_l3_nat_ukr_prefers_cols_dt( dt_r, BLIS_GEMM_UKR, cntx ); \
|
||||
const bool col_pref = bli_cntx_l3_nat_ukr_prefers_cols_dt( dt_r, BLIS_GEMM_UKR, cntx ); \
|
||||
\
|
||||
const dim_t mr = bli_cntx_get_blksz_def_dt( dt, BLIS_MR, cntx ); \
|
||||
const dim_t nr = bli_cntx_get_blksz_def_dt( dt, BLIS_NR, cntx ); \
|
||||
|
||||
Reference in New Issue
Block a user