Skip to content

Instantly share code, notes, and snippets.

@pauldardeau
Created December 16, 2015 19:12
Show Gist options
  • Select an option

  • Save pauldardeau/aa77a8163b2c7e3fe840 to your computer and use it in GitHub Desktop.

Select an option

Save pauldardeau/aa77a8163b2c7e3fe840 to your computer and use it in GitHub Desktop.
swift ring partitioning
power shift count
---------------------------------------
32 0 4294967296
31 1 2147483648
30 2 1073741824
29 3 536870912
28 4 268435456
27 5 134217728
26 6 67108864
25 7 33554432
===========================================================
24 8 16777216 (clayg: would freak out if higher)
23 9 8388608
-----------------------------------------------------------
22 10 4194304 (clayg: more likely upper bound)
21 11 2097152
20 12 1048576 (rax uses this?)
19 13 524288
18 14 262144
17 15 131072
16 16 65536
15 17 32768
14 18 16384
13 19 8192
12 20 4096
11 21 2048
10 22 1024
-----------------------------------------------------------
9 23 512
8 24 256
7 25 128
6 26 64
5 27 32
4 28 16
3 29 8
2 30 4
1 31 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment