Skip to content

Commit a3f5604

Browse files
author
Diptorup Deb
authored
Merge pull request #914 from IntelPython/header_remove
Removed unused header file.
2 parents 7b237f9 + a0caaa7 commit a3f5604

File tree

2 files changed

+8
-35
lines changed

2 files changed

+8
-35
lines changed

numba_dpex/core/runtime/_nrt_helper.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88
#include <stdbool.h>
99

1010
#ifdef _MSC_VER
11-
#include "_stdatomic.h"
11+
#include <stddef.h>
12+
#include <stdint.h>
13+
#include <windows.h>
14+
typedef intptr_t atomic_size_t;
15+
#ifdef _WIN64
16+
#define atomic_fetch_add(obj, op) InterlockedExchangeAdd64(obj, op)
17+
#endif
18+
#define atomic_fetch_add_explicit(obj, op, od) atomic_fetch_add(obj, op)
1219
#else
1320
#include <stdatomic.h>
1421
#endif

numba_dpex/core/runtime/_stdatomic.h

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

0 commit comments

Comments
 (0)