chiark
/
gitweb
/
~mdw
/
catacomb
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
More whitespace fixes.
[catacomb]
/
utils
/
mpreducetests.py
1
#! /usr/bin/python
2
3
import random as R
4
5
print "# mpreduce torture"
6
7
print "reduce {"
8
first = True
9
for i in xrange(16, 90):
10
for j in xrange(1, i - 1):
11
m = (1L << i) - (1L << j)
12
for k in xrange(i + 1, i + 16):
13
x = R.randrange(1L << k)
14
print " 0x%x" % m
15
print " 0x%x" % x
16
print " 0x%x;" % (x%m)
17
if not first:
18
print
19
first = False
20
print "}"