Cogl.Fixed

g Cogl.Fixed Cogl.Fixed

Subclasses:

None

Methods

class

pow (x, y)

pow2 ()

Virtual Methods

None

Fields

None

Class Details

class Cogl.Fixed
Abstract:

No

Fixed point number using a (16.16) notation.

classmethod pow(x, y)
Parameters:
Returns:

the power of x to the y

Return type:

int

Calculates x to the y power.

New in version 1.0.

pow2()
Returns:

the power of 2 to the passed value

Return type:

int

Calculates 2 to the self power.

This function is around 11 times faster on x86, and around 22 times faster on fpu-less arm than libc pow(2, x).

New in version 1.0.