aboutsummaryrefslogtreecommitdiffstats
path: root/Hilbert/GrayCodeRank.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-08-04 19:58:27 +0200
committerDavid Robillard <d@drobilla.net>2018-08-07 20:01:12 +0200
commit7a9f0cef536dd257474ea64cd0df86bf5ed778b3 (patch)
tree8a34049c73cd8e275a787a61d5ea83ac24da17b2 /Hilbert/GrayCodeRank.hpp
parentc08a9f3cc4bca0558814ba9f0376051b3dc78306 (diff)
downloadchilbert-7a9f0cef536dd257474ea64cd0df86bf5ed778b3.tar.gz
chilbert-7a9f0cef536dd257474ea64cd0df86bf5ed778b3.tar.bz2
chilbert-7a9f0cef536dd257474ea64cd0df86bf5ed778b3.zip
Remove dead code
Diffstat (limited to 'Hilbert/GrayCodeRank.hpp')
-rw-r--r--Hilbert/GrayCodeRank.hpp40
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