Home | History | Annotate | Download | only in Scalar

Lines Matching defs:CM

388   // If CM is the Carmichael number then a weight W satisfying W >= CM+Bitwidth
389 // can be replaced with W-CM. That's because x^W=x^(W-CM) for every Bitwidth
390 // bit number x, since either x is odd in which case x^CM = 1, or x is even in
391 // which case both x^W and x^(W - CM) are zero. By subtracting off multiples
392 // of CM like this weights can always be reduced to the range [0, CM+Bitwidth)
398 /// CM - The value of Carmichael's lambda function.
399 APInt CM = APInt::getOneBitSet(Bitwidth, CarmichaelShift(Bitwidth));
400 // Any weight W >= Threshold can be replaced with W - CM.
401 APInt Threshold = CM + Bitwidth;
406 LHS -= CM;
410 unsigned CM = 1U << CarmichaelShift(Bitwidth);
411 unsigned Threshold = CM + Bitwidth;
416 Total -= CM;