Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
pypocketfft
Commits
3f894f35
Commit
3f894f35
authored
Jan 08, 2020
by
Martin Reinecke
Browse files
fix
parent
200cbe53
Changes
1
Hide whitespace changes
Inline
Side-by-side
pocketfft_hdronly.h
View file @
3f894f35
...
...
@@ -492,8 +492,8 @@ namespace threading {
#ifdef POCKETFFT_NO_MULTITHREADING
constexpr
size_t
thread_id
()
{
return
0
;
}
constexpr
size_t
num_threads
()
{
return
1
;
}
constexpr
inline
size_t
thread_id
()
{
return
0
;
}
constexpr
inline
size_t
num_threads
()
{
return
1
;
}
template
<
typename
Func
>
void
thread_map
(
size_t
/* nthreads */
,
Func
f
)
...
...
@@ -501,12 +501,12 @@ void thread_map(size_t /* nthreads */, Func f)
#else
size_t
&
thread_id
()
inline
size_t
&
thread_id
()
{
static
thread_local
size_t
thread_id_
=
0
;
return
thread_id_
;
}
size_t
&
num_threads
()
inline
size_t
&
num_threads
()
{
static
thread_local
size_t
num_threads_
=
1
;
return
num_threads_
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment