Qt 4.8
Functions
qxlibeglintegration.cpp File Reference
#include "qxlibeglintegration.h"

Go to the source code of this file.

Functions

static int countBits (unsigned long mask)
 

Function Documentation

◆ countBits()

static int countBits ( unsigned long  mask)
static

Definition at line 44 of file qxlibeglintegration.cpp.

Referenced by QXlibEglIntegration::getCompatibleVisualId().

45 {
46  int count = 0;
47  while (mask != 0) {
48  if (mask & 1)
49  ++count;
50  mask >>= 1;
51  }
52  return count;
53 }