Skip to content

Commit 1eefb31

Browse files
iboBDiamonDinoia
authored andcommitted
move include/common to include/finufft_common
1 parent c131f98 commit 1eefb31

21 files changed

+32
-32
lines changed

include/common/common.h

Lines changed: 0 additions & 5 deletions
This file was deleted.

include/cufinufft.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <stdint.h>
55

6-
#include <common/defines.h>
6+
#include <finufft_common/defines.h>
77
#include <cufinufft_opts.h>
88
#include <finufft_errors.h>
99

include/cufinufft/defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CUFINUFFT_DEFS_H
22
#define CUFINUFFT_DEFS_H
33

4-
#include <common/common.h>
4+
#include <finufft_common/common.h>
55
#include <limits>
66

77
// FIXME: If cufft ever takes N > INT_MAX...

include/cufinufft/utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <type_traits>
1313
#include <utility> // for std::forward
1414

15-
#include <common/common.h>
15+
#include <finufft_common/common.h>
1616

1717
#ifndef _USE_MATH_DEFINES
1818
#define _USE_MATH_DEFINES
@@ -137,7 +137,7 @@ template<typename T> auto arrayrange(int n, T *a, cudaStream_t stream) {
137137

138138
// Writes out w = half-width and c = center of an interval enclosing all a[n]'s
139139
// Only chooses a nonzero center if this increases w by less than fraction
140-
// ARRAYWIDCEN_GROWFRAC defined in common/constants.h.
140+
// ARRAYWIDCEN_GROWFRAC defined in finufft_common/constants.h.
141141
// This prevents rephasings which don't grow nf by much. 6/8/17
142142
// If n==0, w and c are not finite.
143143
template<typename T> auto arraywidcen(int n, T *a, cudaStream_t stream) {

include/finufft/finufft_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <cstdint>
66
#include <memory>
77

8-
#include "common/common.h"
8+
#include "finufft_common/common.h"
99
#include "finufft_errors.h"
1010

1111
// All indexing in library that potentially can exceed 2^31 uses 64-bit signed.

include/finufft/finufft_utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include "finufft_core.h"
77
#include <cmath>
8-
#include <common/common.h>
8+
#include <finufft_common/common.h>
99

1010
namespace finufft::utils {
1111

@@ -28,7 +28,7 @@ FINUFFT_EXPORT FINUFFT_ALWAYS_INLINE void FINUFFT_CDECL arraywidcen(BIGINT n, co
2828
T *w, T *c)
2929
// Writes out w = half-width and c = center of an interval enclosing all a[n]'s
3030
// Only chooses a nonzero center if this increases w by less than fraction
31-
// ARRAYWIDCEN_GROWFRAC defined in common/constants.h.
31+
// ARRAYWIDCEN_GROWFRAC defined in finufft_common/constants.h.
3232
// This prevents rephasings which don't grow nf by much. 6/8/17
3333
// If n==0, w and c are not finite.
3434
{

include/finufft/test_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <finufft.h>
1616

1717
// convenient private finufft internals that tests need
18-
#include <common/common.h>
18+
#include <finufft_common/common.h>
1919
#include <finufft/finufft_core.h>
2020
#include <finufft/finufft_utils.hpp>
2121
#include <memory>

include/finufft_common/common.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#pragma once
2+
3+
#include <finufft_common/constants.h>
4+
#include <finufft_common/defines.h>
5+
#include <finufft_common/utils.h>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)