|
gpp4
1.3.1
|
Header file containing various commonly used type definitions and some useful macros. More...
#include "ccp4_sysdep.h"Go to the source code of this file.
Classes | |
| union | float_uint_uchar |
| Common data structure for floats, ints, and chars. More... | |
| struct | COMPLEX |
| Contruct representing a complex number. More... | |
| struct | POLAR |
| Contruct representing a polar coordinate complex number. More... | |
Macros | |
| #define | FALSE 0 |
| #define | TRUE 1 |
| #define | SQR(x) ((x)*(x)) |
| A macro that returns the square of x. | |
| #define | DEGREE(x) ((((x < 0)?(x)+2*M_PI:(x))*360)/(2*M_PI)) |
| Convert radians to degrees. The result will be in [0:360]. | |
| #define | RADIAN(x) ((((x<0)?(x)+360:(x))*2*M_PI)/360) |
| Convert degrees to radians. The result will be in [0:pi]. | |
| #define | MAX(x, y) (((x)>(y))?(x):(y)) |
| A macro that returns the maximum of x and y. | |
| #define | MIN(x, y) (((x)<(y))?(x):(y)) |
| A macro that returns the minimum of x and y. | |
| #define | ABS(x) (((x)<0)?-(x):(x)) |
| A macro that returns the absolute value of x. | |
| #define | SIGN(x) (((x)<0)?-1:1) |
| Return the sign of x. | |
Typedefs | |
| typedef unsigned short | uint16 |
| typedef unsigned int | uint32 |
| typedef float | float32 |
| typedef unsigned char | uint8 |
| typedef char * | pstr |
Header file containing various commonly used type definitions and some useful macros.
1.8.13