diff options
author | Tim Blechmann <timblech@users.sourceforge.net> | 2006-09-06 20:32:21 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:12:02 +0200 |
commit | fae4d2ec359b596a775973956daf4636856f0141 (patch) | |
tree | 4b6e6ae8127b2ba3070080221ba85fb99fabe641 /chaos/src/chaos.hpp | |
parent | 47603a7ffe9d354ef5a2af7981504527a9e742da (diff) |
cleanups
svn path=/trunk/externals/tb/; revision=5880
Diffstat (limited to 'chaos/src/chaos.hpp')
-rw-r--r-- | chaos/src/chaos.hpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/chaos/src/chaos.hpp b/chaos/src/chaos.hpp index 971d503..259f56e 100644 --- a/chaos/src/chaos.hpp +++ b/chaos/src/chaos.hpp @@ -38,27 +38,14 @@ /* internal we can work with a higher precision than pd */ #ifdef DOUBLE_PRECISION typedef double data_t; -#define CHAOS_ABS(x) fabs(x) #else typedef float data_t; -#define CHAOS_ABS(x) fabsf(x) #endif -inline data_t chaos_mod(data_t x, data_t y) -{ -#ifdef DOUBLE_PRECISION - return fmod(x,y); -#else - return fmodf(x,y); -#endif -} - inline data_t rand_range(data_t low, data_t high) { return low + ( (rand() * (high - low)) / RAND_MAX); } - - #define __chaos_hpp #endif /* __chaos_hpp */ |