MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / isValidFlagMatrix

Function isValidFlagMatrix

src/library/tools/tune/storage_data.c:109–124  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

107
108////////////////////////////////////////////////////////////////////////////////
109bool
110isValidFlagMatrix(DataType curType, unsigned int flags)
111{
112 bool ret;
113 // todo Make refactoring expressions.
114
115 ret = !isComplexType(curType)
116 && ( (flags & KEXTRA_CONJUGATE_A) || (flags & KEXTRA_CONJUGATE_B));
117 // The flag KEXTRA_CONJUGATE_X can be set TRUE only when the flag KEXTRA_TRANS_X is TRUE.
118 ret = ret || (flags & (KEXTRA_TRANS_A | KEXTRA_CONJUGATE_A))
119 == KEXTRA_CONJUGATE_A;
120 ret = ret || (flags & (KEXTRA_TRANS_B | KEXTRA_CONJUGATE_B))
121 == KEXTRA_CONJUGATE_B;
122
123 return ret;
124}
125
126size_t
127getDTypeArray(DataType * dTypes, size_t dtypeCount, DeviceInfo* defInf )

Callers

nothing calls this directly

Calls 1

isComplexTypeFunction · 0.85

Tested by

no test coverage detected