5 * Created by Victor Grishchenko on 10/10/09.
6 * Copyright 2009 Delft University of Technology. All rights reserved.
11 const uint64_t bin64_t::NONE = 0xffffffffffffffffULL;
12 const uint64_t bin64_t::ALL = 0x7fffffffffffffffULL;
13 const uint32_t bin64_t::NONE32 = 0xffffffffU;
14 const uint32_t bin64_t::ALL32 = 0x7fffffffU;
16 uint32_t bin64_t::to32() const {
17 if (v<0xffffffff && v!=0x7fffffff)
24 bin64_t::bin64_t(const uint32_t val) {
33 bin64_t bin64_t::next_dfsio (uint8_t floor) {
34 /*while (ret.is_right())
37 while (ret.layer()>floor)
42 bin64_t ret = sibling();
43 while (ret.layer()>floor)
49 int bin64_t::peaks (uint64_t length, bin64_t* peaks) {
54 peaks[pp++] = bin64_t(layer,length^1);
58 for(int i=0; i<(pp>>1); i++) {
59 uint64_t memo = peaks[pp-1-i];
60 peaks[pp-1-i] = peaks[i];
69 const char* bin64_t::str () const {
70 static char _b64sr[4][32];
78 sprintf(_b64sr[_rsc],"(%i,%lli)",(int)layer(),offset());