Commit 38ba1e95 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Missing includes in some header files.

parent 16311ff3
......@@ -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.
*
......
......@@ -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(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment