summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/fastlog.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-16 23:30:28 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-16 23:30:28 -0400
commitc5115c9a3c8ce6639f37e0b429e0498bb522d913 (patch)
tree667e48ff6ec80f274c7eafda4e44dceaaaeb342b /libs/pbd/pbd/fastlog.h
parentcb3abec9665b7a69702294e5a6ffdd26f54885c3 (diff)
add export visibility control to libpbd (works thus far on linux/gcc)
Diffstat (limited to 'libs/pbd/pbd/fastlog.h')
-rw-r--r--libs/pbd/pbd/fastlog.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/pbd/pbd/fastlog.h b/libs/pbd/pbd/fastlog.h
index f64ad996cf..e8aef4119d 100644
--- a/libs/pbd/pbd/fastlog.h
+++ b/libs/pbd/pbd/fastlog.h
@@ -10,7 +10,9 @@ as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
#include <math.h> /* for HUGE_VAL */
-static inline float fast_log2 (float val)
+#include "pbd/libpbd_visibility.h"
+
+LIBPBD_API static inline float fast_log2 (float val)
{
/* don't use reinterpret_cast<> because that prevents this
from being used by pure C code (for example, GnomeCanvasItems)
@@ -29,16 +31,16 @@ static inline float fast_log2 (float val)
return (val + log_2);
}
-static inline float fast_log (const float val)
+LIBPBD_API static inline float fast_log (const float val)
{
return (fast_log2 (val) * 0.69314718f);
}
-static inline float fast_log10 (const float val)
+LIBPBD_API static inline float fast_log10 (const float val)
{
return fast_log2(val) / 3.312500f;
}
-static inline float minus_infinity(void) { return -HUGE_VAL; }
+LIBPBD_API static inline float minus_infinity(void) { return -HUGE_VAL; }
#endif /* __pbd_fastlog_h__ */