2011-05-24 21:32:38 +10:00
|
|
|
#!/usr/bin/env python
|
2012-02-02 10:03:18 +11:00
|
|
|
#
|
|
|
|
|
# Copyright (c) 2008-2012 WiredTiger, Inc.
|
2012-02-02 20:18:52 +00:00
|
|
|
# All rights reserved.
|
2012-02-02 10:03:18 +11:00
|
|
|
#
|
2012-02-02 20:18:52 +00:00
|
|
|
# See the file LICENSE for redistribution information.
|
2011-05-24 21:32:38 +10:00
|
|
|
|
|
|
|
|
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
|