From Sven-Ola Tuecke <sven-ola@gmx.de>: add support for fixedpoint math
[olsrd.git] / src / hysteresis.h
index 7a64ad1..7ce66ab 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * The olsr.org Optimized Link-State Routing daemon(olsrd)
- * Copyright (c) 2004, Andreas Tønnesen(andreto@olsr.org)
+ * Copyright (c) 2004, Andreas Tønnesen(andreto@olsr.org)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without 
  * to the project. For more information see the website or contact
  * the copyright holders.
  *
- * $Id: hysteresis.h,v 1.9 2007/04/20 13:46:04 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);