Skip to content

Commit 78d3554

Browse files
Merge pull request #271 from insertinterestingnamehere/stdint
Use stdint.h directly instead of our old compat header.
2 parents 8f430df + a0ee74e commit 78d3554

38 files changed

+54
-810
lines changed

config/ax_create_stdint_h.m4

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

configure.ac

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ AC_ARG_ENABLE([lf-febs],
378378
AC_ARG_WITH([cacheline-width],
379379
[AS_HELP_STRING([--with-cacheline-width=bytes],
380380
[Specify the cacheline width for the target
381-
machine. Defaults to 64. Used only for optimizing
381+
machine. Defaults to 256. Used only for optimizing
382382
internal data structure layout;
383383
qthread_cacheline() still detects this at
384384
runtime.])],
385385
[],
386-
[with_cacheline_width=64])
386+
[with_cacheline_width=256])
387387

388388
AC_ARG_ENABLE([multinode],
389389
[AS_HELP_STRING([--enable-multinode],
@@ -587,7 +587,6 @@ AC_HEADER_STDC
587587
AC_HEADER_SYS_WAIT
588588
AC_HEADER_TIME
589589
AC_CHECK_HEADERS([stdlib.h fcntl.h ucontext.h sys/time.h sys/resource.h mach/mach_time.h malloc.h math.h sys/types.h sys/sysctl.h unistd.h sys/syscall.h])
590-
AX_CREATE_STDINT_H([include/qthread/qthread-int.h])
591590
AC_SYS_LARGEFILE
592591

593592
QTHREAD_CHECK_FUNCTION

include/fastcontext/386-ucontext.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
#include <stdarg.h> /* for the qt_makectxt prototype */
77
#endif
88
#include <stddef.h> /* for size_t, per C89 */
9-
10-
#include "qthread-int.h"
9+
#include <stdint.h>
1110

1211
#define setcontext(u) qt_setmctxt(&(u)->mc)
1312
#define getcontext(u) qt_getmctxt(&(u)->mc)

include/fastcontext/arm-ucontext.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
#endif
88

99
#include <stddef.h>
10-
11-
#include "qthread/qthread-int.h" /* for uint32_t */
10+
#include <stdint.h>
1211

1312
#include "qt_visibility.h"
1413

include/qt_gcd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "config.h"
33
#endif
44

5-
#include "qthread-int.h"
5+
#include <stdint.h>
66

77
static QINLINE size_t qt_gcd(size_t a, size_t b) {
88
#ifdef QTHREAD_SHIFT_GCD

include/qt_hash.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
#endif
77

88
#include <stddef.h>
9-
10-
#include "qthread-int.h" /* for uintptr_t (standin for C99's stdint.h) */
9+
#include <stdint.h>
1110

1211
#include "qt_visibility.h"
1312

include/qt_threadqueues.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#ifndef QT_THREADQUEUES_H
22
#define QT_THREADQUEUES_H
3+
#include <stdint.h>
34

45
#include <sys/types.h> /* for ssize_t (according to P90) */
56

6-
#include "qthread-int.h"
7-
87
#include "qt_filters.h"
98
#include "qt_mpool.h"
109
#include "qt_qthread_t.h" /* for qthread_t */

include/qthread/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
common.h
2-
qthread-int.h
32
stamp-h2

include/qthread/Makefile.am

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ pkginclude_HEADERS = \
3434

3535
# These headers are generated by ./configure
3636
nodist_pkginclude_HEADERS = \
37-
common.h \
38-
qthread-int.h
37+
common.h
3938

4039
# Installed here to keep it separate from the "real" omp_defines.h
4140
noinst_HEADERS = \
@@ -47,9 +46,6 @@ pkginclude_HEADERS += \
4746
spr.h
4847
endif
4948

50-
distclean-local:
51-
$(RM) -f qthread-int.h
52-
5349
# ensure that this happens after the rest of the uninstall is done
5450
uninstall-hook:
5551
test -d "$(pkgincludedir)" && rmdir $(pkgincludedir) || true

include/qthread/qarray.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#ifndef QTHREAD_QARRAY_H
22
#define QTHREAD_QARRAY_H
33

4+
#include <stdint.h>
5+
46
#include "macros.h"
57
#include "qloop.h"
6-
#include "qthread-int.h"
78

89
Q_STARTCXX /* */
910
typedef enum {

0 commit comments

Comments
 (0)