Skip to content

Commit 8f486c9

Browse files
Cleaning up some things in dna_four_bit
1 parent dc25e2b commit 8f486c9

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

dna_four_bit.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ char dna_four_bit_decoding[] = {
6464
Z = 0000 = 0 = {} = Zero
6565
*/
6666
uint8_t dna_four_bit_encoding[] = {
67-
/*first*/ /*last*/
68-
/* 0*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0*/
67+
/*first*/ /*last*/
68+
/* 0*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0*/
6969
/* 16*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 31*/
7070
/* 32*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 47*/
7171
/* 48*/ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 63*/
72-
/* 64*/ 0, 1, 14, 2, 13, 0, 0, 4, 11, 0, 0, 12, 0, 3, 0, 0, /* 79*/
73-
/* 80*/ 0, 0, 5, 6, 8, 0, 7, 9, 0, 10, 0, 0, 0, 0, 0, 0, /* 95*/
74-
/* 96*/ 0, 1, 14, 2, 13, 0, 0, 4, 11, 0, 0, 12, 0, 3, 0, 0, /*111*/
75-
/*112*/ 0, 0, 5, 6, 8, 0, 7, 9, 0, 10, 0, 0, 0, 0, 0, 0 /*127*/
72+
/* 64*/ 0, 1,14, 2,13, 0, 0, 4,11, 0, 0,12, 0, 3, 0, 0, /* 79*/
73+
/* 80*/ 0, 0, 5, 6, 8, 0, 7, 9, 0,10, 0, 0, 0, 0, 0, 0, /* 95*/
74+
/* 96*/ 0, 1,14, 2,13, 0, 0, 4,11, 0, 0,12, 0, 3, 0, 0, /*111*/
75+
/*112*/ 0, 0, 5, 6, 8, 0, 7, 9, 0,10, 0, 0, 0, 0, 0, 0 /*127*/
7676
};
77-
// . A B C D . . G H . . K . M N .
78-
// . . R S T . V W . Y Z
77+
// . A B C D . . G H . . K . M N .
78+
// . . R S T . V W . Y Z

dna_four_bit.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ struct genome_four_bit_itr {
115115
genome_four_bit_itr& operator--() {
116116
itr -= (offset == 0);
117117

118-
// GS: will underflow on 0 but it's ok?
119118
offset = (offset - 1) & 15ul;
120119
return *this;
121120
}
@@ -126,7 +125,7 @@ struct genome_four_bit_itr {
126125
return tmp;
127126
}
128127
genome_four_bit_itr operator+(const size_t step) const {
129-
// whether the sum of offsets is >= 16
128+
// whether the sum of offsets is >= 16
130129
const bool shift_one_pos =
131130
(((offset + (static_cast<int>(step) & 15)) & 16) >> 4);
132131

0 commit comments

Comments
 (0)