17 return static_cast<int>(
index);
22 phi *= TSU::phiRescaleFactor;
24 return static_cast<unsigned int>(phiInt);
33 if ( ((bits >> (
length-1)) & 1) == 0) {
34 return bits & ((1<<
length)-1);
41 return TSU::toSigned(std::stoi(bits,
nullptr, 2), bits.length());