Skip to content

Commit 65330e0

Browse files
committed
Merge pull request swiftlang#71 from linux-on-ibm-z/test_fixes
Adjust code speed when running on s390x
2 parents 1fa1513 + 48b2bd1 commit 65330e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/dispatch_apply.c

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ static volatile int32_t busy_threads_started, busy_threads_finished;
4040
#if TARGET_OS_EMBEDDED
4141
// iPhone 4
4242
#define ITERS_PER_SECOND 50000000UL
43+
#elif __s390x__
44+
#define ITERS_PER_SECOND 15000000000UL
4345
#else
4446
// On a 2.7 4-core i5 iMac12,2, one thread of this loop runs at ROUGHLY:
4547
#define ITERS_PER_SECOND 1000000000UL

0 commit comments

Comments
 (0)