Lines Matching refs:lit
2173 // Returns true if it added instructions to 'cUnit' to divide 'rlSrc' by 'lit'
2176 RegLocation rlSrc, RegLocation rlDest, int lit)
2178 if (lit < 2 || !isPowerOfTwo(lit)) {
2181 int k = lowestSetBit(lit);
2191 if (lit == 2) {
2204 loadConstant(cUnit, cReg, lit - 1);
2207 if (lit == 2) {
2224 // Returns true if it added instructions to 'cUnit' to multiply 'rlSrc' by 'lit'
2227 RegLocation rlSrc, RegLocation rlDest, int lit)
2233 if (lit < 2) {
2236 lit)) {
2238 } else if (isPopCountLE2(lit)) {
2240 } else if (isPowerOfTwo(lit + 1)) {
2250 lowestSetBit(lit));
2253 int firstBit = lowestSetBit(lit);
2254 int secondBit = lowestSetBit(lit ^ (1 << firstBit));
2255 genMultiplyByTwoBitMultiplier(cUnit, rlSrc, rlResult, lit,
2260 genMultiplyByShiftAndReverseSubtract(cUnit, rlSrc, rlResult, lowestSetBit(lit + 1));
2272 int lit = mir->dalvikInsn.vC;
2284 loadConstant(cUnit, tReg, lit);
2299 if (handleEasyMultiply(cUnit, rlSrc, rlDest, lit)) {
2318 lit &= 31;
2323 lit &= 31;
2328 lit &= 31;
2337 if (lit == 0) {
2342 if (handleEasyDivide(cUnit, dalvikOpcode, rlSrc, rlDest, lit)) {
2356 loadConstant(cUnit, r1, lit);
2372 if (shiftOp && (lit == 0)) {
2375 opRegRegImm(cUnit, op, rlResult.lowReg, rlSrc.lowReg, lit);