Qt 4.8
Functions
qtextureglyphcache.cpp File Reference
#include <qmath.h>
#include "qtextureglyphcache_p.h"
#include "private/qnumeric_p.h"
#include "private/qnativeimage_p.h"
#include "private/qfontengine_ft_p.h"

Go to the source code of this file.

Functions

static int qt_next_power_of_two (int v)
 

Function Documentation

◆ qt_next_power_of_two()

static int qt_next_power_of_two ( int  v)
inlinestatic

Definition at line 56 of file qtextureglyphcache.cpp.

Referenced by QTextureGlyphCache::fillInPendingGlyphs(), and QTextureGlyphCache::populate().

57 {
58  v--;
59  v |= v >> 1;
60  v |= v >> 2;
61  v |= v >> 4;
62  v |= v >> 8;
63  v |= v >> 16;
64  ++v;
65  return v;
66 }