Logo Search packages:      
Sourcecode: librasterlite version File versions  Download package

Defines | Typedefs | Functions | Variables

common.h File Reference

Useful macro and defines. More...

#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <sys/types.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define ABS(_x)   ((_x) >= 0 ? (_x) : -(_x))
#define GET_BYTE(_x, _i)   (((unsigned char *) &(_x))[(_i)])
#define local   static
#define MAX(_x, _y)   ((_x) > (_y) ? (_x) : (_y))
#define MIN(_x, _y)   ((_x) < (_y) ? (_x) : (_y))
#define NUMBER_OF_BITS(_x)   (number_of_bits_table[(_x)])
#define SQRT2   1.414213562373095


typedef double coeff_t


int is_power_of_two (int value)
int number_of_bits (int value)


local int number_of_bits_table [256]

Detailed Description

Useful macro and defines.

This file contains useful macro and defines which are common to all library parts.

Definition in file common.h.

Generated by  Doxygen 1.6.0   Back to index