blob: 02c5bf547013e6fa67cd69ee1e3f044a05bdf3e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env python
#
# Copyright (c) 2008-2012 WiredTiger, Inc.
# All rights reserved.
#
# See the file LICENSE for redistribution information.
from intpacking import compress_int
i = 1
while i < 1 << 60:
print -i, ''.join('%02x' % ord(c) for c in compress_int(-i))
print i, ''.join('%02x' % ord(c) for c in compress_int(i))
i <<= 1
|