Fix: Resolve Operator Precedence Warning in Zen5 DCOMPLEX Threshold Logic

- Add explicit parentheses around (n <= 1520) && (k <= 128) to clarify
  operator precedence and resolve compiler warning. The intended logic
  is (m <= 1380) OR (n <= 1520 AND k <= 128).

- This change eliminates the compiler warning about mixing || and &&
  operators without explicit grouping.
This commit is contained in:
S, Hari Govind
2025-10-24 14:23:03 +05:30
committed by GitHub
parent 1e2a8db100
commit 64d8d06aad

View File

@@ -87,7 +87,7 @@ bool bli_cntx_gemmsup_thresh_is_met_zen5( obj_t* a, obj_t* b, obj_t* c, cntx_t*
// The threshold for m is a single value, but for n, it is
// also based on the packing size of A, since the kernels are
// column preferential
if ( ( ( m <= 1380 ) || ( n <= 1520 ) && ( k <= 128 ) ) && ( m + n + k < 6400 ) ) return TRUE;
if ( ( ( m <= 1380 ) || ( ( n <= 1520 ) && ( k <= 128 ) ) ) && ( m + n + k < 6400 ) ) return TRUE;
return FALSE;
}