Skip to content
Snippets Groups Projects
Commit d4a1703d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Missing includes in some header files.

parent 110bce86
No related branches found
No related tags found
1 merge request!301New time line
...@@ -21,16 +21,21 @@ ...@@ -21,16 +21,21 @@
#ifndef SWIFT_ERROR_H #ifndef SWIFT_ERROR_H
#define SWIFT_ERROR_H #define SWIFT_ERROR_H
/* Config parameters. */
#include "../config.h"
/* Some standard headers. */ /* Some standard headers. */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include "clocks.h"
/* MPI headers. */ /* MPI headers. */
#ifdef WITH_MPI #ifdef WITH_MPI
#include <mpi.h> #include <mpi.h>
#endif #endif
/* Local headers. */
#include "clocks.h"
/** /**
* @brief Error macro. Prints the message given in argument and aborts. * @brief Error macro. Prints the message given in argument and aborts.
* *
......
...@@ -19,11 +19,17 @@ ...@@ -19,11 +19,17 @@
#ifndef SWIFT_INTRINSICS_H #ifndef SWIFT_INTRINSICS_H
#define 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 * @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. * 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. * Hacker's Delight) if the compiler intrinsics are not available.
*/ */
__attribute__((always_inline)) INLINE static int intrinsics_clz( __attribute__((always_inline)) INLINE static int intrinsics_clz(
...@@ -63,7 +69,7 @@ __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. * @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. * Hacker's Delight) if the compiler intrinsics are not available.
*/ */
__attribute__((always_inline)) INLINE static int intrinsics_popcount( __attribute__((always_inline)) INLINE static int intrinsics_popcount(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment