diff --git a/src/error.h b/src/error.h index 92a9ce71a3d939cb2e18267848b0e2c66dd4741a..cad442fab349022dfd42c9707bf1575ced35e18c 100644 --- a/src/error.h +++ b/src/error.h @@ -21,16 +21,21 @@ #ifndef SWIFT_ERROR_H #define SWIFT_ERROR_H +/* Config parameters. */ +#include "../config.h" + /* Some standard headers. */ #include <stdio.h> - -#include "clocks.h" +#include <stdlib.h> /* MPI headers. */ #ifdef WITH_MPI #include <mpi.h> #endif +/* Local headers. */ +#include "clocks.h" + /** * @brief Error macro. Prints the message given in argument and aborts. * diff --git a/src/intrinsics.h b/src/intrinsics.h index 27e0bcc729b58493aed8c7eae7dfcdfc8f0855aa..42dddf77c0cea59b8b12a9c1c9bb734652a486fc 100644 --- a/src/intrinsics.h +++ b/src/intrinsics.h @@ -19,11 +19,17 @@ #ifndef SWIFT_INTRINSICS_H #define SWIFT_INTRINSICS_H +/* Config parameters. */ +#include "../config.h" + +/* Local headers. */ +#include "inline.h" + /** * @brief Returns the number of leading 0-bits in x, starting at the most * significant bit position. If x is 0, the result is undefined. * - * This is a wrapper for the GCC intrinsics with an implementation (from + * This is a wrapper for the GNU intrinsic with an implementation (from * Hacker's Delight) if the compiler intrinsics are not available. */ __attribute__((always_inline)) INLINE static int intrinsics_clz( @@ -63,7 +69,7 @@ __attribute__((always_inline)) INLINE static int intrinsics_clz( /** * @brief Returns the number of 1-bits in x. * - * This is a wrapper for the GCC intrinsics with an implementation (from + * This is a wrapper for the GNU intrinsic with an implementation (from * Hacker's Delight) if the compiler intrinsics are not available. */ __attribute__((always_inline)) INLINE static int intrinsics_popcount(