Lines Matching defs:ZB

115   static unsigned count(T Val, ZeroBehavior ZB) {
116 if (ZB != ZB_Undefined && Val == 0)
131 static unsigned count(T Val, ZeroBehavior ZB) {
132 if (ZB != ZB_Undefined && Val == 0)
153 /// \param ZB the behavior on an input of 0. Only ZB_Width and ZB_Undefined are
156 unsigned countTrailingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
160 return llvm::detail::TrailingZerosCounter<T, sizeof(T)>::count(Val, ZB);
184 static unsigned count(T Val, ZeroBehavior ZB) {
185 if (ZB != ZB_Undefined && Val == 0)
200 static unsigned count(T Val, ZeroBehavior ZB) {
201 if (ZB != ZB_Undefined && Val == 0)
222 /// \param ZB the behavior on an input of 0. Only ZB_Width and ZB_Undefined are
225 unsigned countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
229 return llvm::detail::LeadingZerosCounter<T, sizeof(T)>::count(Val, ZB);
237 /// \param ZB the behavior on an input of 0. Only ZB_Max and ZB_Undefined are
239 template <typename T> T findFirstSet(T Val, ZeroBehavior ZB = ZB_Max) {
240 if (ZB == ZB_Max && Val == 0)
278 /// \param ZB the behavior on an input of 0. Only ZB_Max and ZB_Undefined are
280 template <typename T> T findLastSet(T Val, ZeroBehavior ZB = ZB_Max) {
281 if (ZB == ZB_Max && Val == 0)
506 /// \param ZB the behavior on an input of all ones. Only ZB_Width and
509 unsigned countLeadingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
513 return countLeadingZeros<T>(~Value, ZB);
522 /// \param ZB the behavior on an input of all ones. Only ZB_Width and
525 unsigned countTrailingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
529 return countTrailingZeros<T>(~Value, ZB);