Skip to content

Commit

Permalink
Update include/cyclone/precision.h
Browse files Browse the repository at this point in the history
Added definition of epsilons
  • Loading branch information
LucasCampos committed Feb 27, 2013
1 parent 1686718 commit 8a76fd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/cyclone/precision.h
Expand Up @@ -63,6 +63,9 @@ namespace cyclone {

/** Defines the precision of the floating point modulo operator. */
#define real_fmod fmodf

/** Defines the number e on which 1+e == 1 **/
#define real_epsilon FLT_EPSILON

#define R_PI 3.14159f
#else
Expand All @@ -76,8 +79,9 @@ namespace cyclone {
#define real_exp exp
#define real_pow pow
#define real_fmod fmod
#define real_epsilon DBL_EPSILON
#define R_PI 3.14159265358979
#endif
}

#endif // CYCLONE_PRECISION_H
#endif // CYCLONE_PRECISION_H

0 comments on commit 8a76fd1

Please sign in to comment.