Deprecate clutter_util_next_p2()

The next_p2() function should have never been publicly exposed by
Clutter.
This commit is contained in:
Emmanuele Bassi
2010-02-05 16:22:09 +00:00
parent bbaf6b233d
commit e55966d675
3 changed files with 31 additions and 12 deletions

View File

@ -25,12 +25,11 @@
/**
* SECTION:clutter-util
* @short_description: Misc utility functions.
* @short_description: Utility functions
*
* Various misc utilility functions.
* Various miscellaneous utilility functions.
*/
#include "clutter-util.h"
#include "clutter-main.h"
@ -41,13 +40,15 @@
* Calculates the nearest power of two, greater than or equal to @a.
*
* Return value: The nearest power of two, greater or equal to @a.
*
* Deprecated: 1.2
*/
int
clutter_util_next_p2 (int a)
gint
clutter_util_next_p2 (gint a)
{
int rval=1;
int rval = 1;
while(rval < a)
while (rval < a)
rval <<= 1;
return rval;