Back to index

lightning-sunbird  0.9+nobinonly
Functions
cairo-fixed.c File Reference
#include "cairoint.h"

Go to the source code of this file.

Functions

cairo_fixed_t _cairo_fixed_from_int (int i)
cairo_fixed_t _cairo_fixed_from_double (double d)
cairo_fixed_t _cairo_fixed_from_26_6 (uint32_t i)
double _cairo_fixed_to_double (cairo_fixed_t f)
int _cairo_fixed_is_integer (cairo_fixed_t f)
int _cairo_fixed_integer_part (cairo_fixed_t f)
int _cairo_fixed_integer_floor (cairo_fixed_t f)
int _cairo_fixed_integer_ceil (cairo_fixed_t f)

Function Documentation

Definition at line 52 of file cairo-fixed.c.

{
    return i << 10;
}

Here is the caller graph for this function:

Definition at line 46 of file cairo-fixed.c.

{
    return (cairo_fixed_t) floor (d * 65536 + 0.5);
}

Here is the caller graph for this function:

Definition at line 40 of file cairo-fixed.c.

{
    return i << 16;
}

Here is the caller graph for this function:

Definition at line 85 of file cairo-fixed.c.

{
    if (f > 0)
       return ((f - 1)>>16) + 1;
    else
       return - (-f >> 16);
}

Here is the caller graph for this function:

Definition at line 76 of file cairo-fixed.c.

{
    if (f >= 0)
       return f >> 16;
    else
       return -((-f - 1) >> 16) - 1;
}

Here is the caller graph for this function:

Definition at line 70 of file cairo-fixed.c.

{
    return f >> 16;
}

Here is the caller graph for this function:

Definition at line 64 of file cairo-fixed.c.

{
    return (f & 0xFFFF) == 0;
}

Here is the caller graph for this function:

Definition at line 58 of file cairo-fixed.c.

{
    return ((double) f) / 65536.0;
}

Here is the caller graph for this function: