Searched defs:Bitwidth (Results 1 - 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp252 /// CarmichaelShift - Returns k such that lambda(2^Bitwidth) = 2^k, where lambda
253 /// is the Carmichael function. This means that x^(2^k) === 1 mod 2^Bitwidth for
254 /// every odd x, i.e. x^(2^k) = 1 for every odd x in Bitwidth-bit arithmetic.
255 /// Note that 0 <= k < Bitwidth, and if Bitwidth > 3 then x^(2^k) = 0 for every
256 /// even x in Bitwidth-bit arithmetic.
257 static unsigned CarmichaelShift(unsigned Bitwidth) { argument
258 if (Bitwidth < 3)
259 return Bitwidth - 1;
260 return Bitwidth
308 unsigned Bitwidth = LHS.getBitWidth(); local
453 unsigned Bitwidth = I->getType()->getScalarType()->getPrimitiveSizeInBits(); local
[all...]
/external/clang/lib/CodeGen/
H A DCGExpr.cpp954 unsigned Bitwidth = LTy->getScalarSizeInBits(); local
960 assert(NumBits <= Bitwidth);
961 End = llvm::APInt(Bitwidth, 1) << (NumBits - 1);
964 assert(NumPositiveBits <= Bitwidth);
965 End = llvm::APInt(Bitwidth, 1) << NumPositiveBits;
966 Min = llvm::APInt(Bitwidth, 0);

Completed in 151 milliseconds