Definition in file eg_nummacros.h.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <float.h>
#include "eg_macros.h"
Include dependency graph for eg_nummacros.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | EGabs(var) |
a general macro to return the absolute value of the given variable | |
#define | EGmax(a, b) |
given two variables (of the same type, and of some predefined type) return the maximum value among the two of them. | |
#define | EGmin(a, b) |
given two variables (of the same type, and of some predefined type) return the minimum value among the two of them. | |
#define | EGswap(N1, N2, Ntmp) |
Given tree numbers N1, N2 and Ntmp, swap values of N1 and N2 using Ntmp as a temporal number. The variables should be of some primitive type of C for this macro to work. |