Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
d4a1703d
Commit
d4a1703d
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Missing includes in some header files.
parent
110bce86
No related branches found
No related tags found
1 merge request
!301
New time line
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/error.h
+7
-2
7 additions, 2 deletions
src/error.h
src/intrinsics.h
+8
-2
8 additions, 2 deletions
src/intrinsics.h
with
15 additions
and
4 deletions
src/error.h
+
7
−
2
View file @
d4a1703d
...
@@ -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.
*
*
...
...
This diff is collapsed.
Click to expand it.
src/intrinsics.h
+
8
−
2
View file @
d4a1703d
...
@@ -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 G
CC
intrinsic
s
with an implementation (from
* This is a wrapper for the G
NU
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 G
CC
intrinsic
s
with an implementation (from
* This is a wrapper for the G
NU
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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment