Lines Matching refs:lft
71 ScalarType::Kind usualArithmeticConversion(ScalarType::Kind lft, in usualArithmeticConversion() argument
73 CHECK(isSupported(lft) && isSupported(rgt)); in usualArithmeticConversion()
75 if(lft == rgt) return lft; // easy case in usualArithmeticConversion()
76 if(lft == SK(BOOL)) return rgt; in usualArithmeticConversion()
77 if(rgt == SK(BOOL)) return lft; in usualArithmeticConversion()
78 bool isLftSigned = (lft == SK(INT8)) || (lft == SK(INT16)) in usualArithmeticConversion()
79 || (lft == SK(INT32)) || (lft == SK(INT64)); in usualArithmeticConversion()
82 if(isLftSigned == isRgtSigned) return lft < rgt ? rgt : lft; in usualArithmeticConversion()
83 ScalarType::Kind unsignedRank = isLftSigned ? rgt : lft; in usualArithmeticConversion()
84 ScalarType::Kind signedRank = isLftSigned ? lft : rgt; in usualArithmeticConversion()
90 CHECK(false) << "Could not do usual arithmetic conversion for type " << lft << "and" << rgt; in usualArithmeticConversion()