diff options
Diffstat (limited to 'Hilbert/GrayCodeRank.hpp')
-rw-r--r-- | Hilbert/GrayCodeRank.hpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/Hilbert/GrayCodeRank.hpp b/Hilbert/GrayCodeRank.hpp index 1165598..f4f46d1 100644 --- a/Hilbert/GrayCodeRank.hpp +++ b/Hilbert/GrayCodeRank.hpp @@ -53,46 +53,6 @@ namespace Hilbert // Run through the levels of precision for ( i = 0; i < m; i++ ) { - // #D - // int k = ds[i] + 1; - // if ( k == n ) k = 0; - // j = k; - -/*#define COMP { \ - if(ms[j]>i) { \ - if(h.racks()[hr]&hm)hc.racks()[hcr]|=hcm; \ - hcm<<=1;if(hcm==0){hcm=1;++hcr;} \ - } \ - if((++j)==n)j=0; \ - hm<<=1;if(hm==0){hm=1;++hr;} \ - } -#define COMP1(a) case a: COMP; -#define COMP2(a) COMP1(a+1); \ - COMP1(a); -#define COMP4(a) COMP2(a+2); \ - COMP2(a); -#define COMP8(a) COMP4(a+4); \ - COMP4(a); -#define COMP16(a) COMP8(a+8); \ - COMP8(a); -#define COMP32(a) COMP16(a+16); \ - COMP16(a); - - // This complicated mess only buys a marginal performance increase. - int k, kd; - k = n; - j = ds[i]; - while ( k ) - { - kd = k; - switch ( kd ) - { - default: kd = 32; - COMP32(1); - } - k -= kd; - }*/ - // Run through the dimensions j = ds[i]; do |