Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / math / utilities.h
index 4a7187cd0919ab7bcda354c8c52f2eed56238fa3..2932220068bf53b5d43731c35882630a0f84d4ae 100644 (file)
 #ifndef GMX_MATH_UTILITIES_H
 #define GMX_MATH_UTILITIES_H
 
-#include "../legacyheaders/types/simple.h"
+#include <limits.h>
+#include <math.h>
+
+#include "gromacs/utility/basedefinitions.h"
+#include "gromacs/utility/real.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -134,16 +138,16 @@ gmx_within_tol(double   f1,
 int
 gmx_numzero(double a);
 
-/*! \brief Compute logarithm to base 2
+/*! \brief Compute floor of logarithm to base 2
  *
  * \return log2(x)
  */
-real
-gmx_log2(real x);
+unsigned int
+gmx_log2i(unsigned int x);
 
-/*! /brief Multiply two large ints
+/*! \brief Multiply two large ints
  *
- *  \return False iff overflow occured
+ * \return False iff overflow occured
  */
 gmx_bool
 check_int_multiply_for_overflow(gmx_int64_t  a,