From Sven-Ola Tuecke <sven-ola@gmx.de>: add support for fixedpoint math
[olsrd.git] / src / hysteresis.h
index 141a989..7ce66ab 100644 (file)
  * to the project. For more information see the website or contact
  * the copyright holders.
  *
- * $Id: hysteresis.h,v 1.10 2007/11/29 18:09:11 bernd67 Exp $
  */
 #ifndef _OLSR_HYSTERESIS
 #define _OLSR_HYSTERESIS
 
 #include "link_set.h"
 
+#ifdef USE_FPM
+fpm
+olsr_hyst_calc_stability(fpm);
+#else
 float
-olsr_hyst_calc_stability(float);
+olsr_hyst_calc_stability
+(float);
+#endif
 
 int
 olsr_process_hysteresis(struct link_entry *);
 
+#ifdef USE_FPM
+fpm
+olsr_hyst_calc_instability(fpm);
+#else
 float
 olsr_hyst_calc_instability(float);
+#endif
 
 void
 olsr_update_hysteresis_hello(struct link_entry *, double);