Skip to content

Commit

Permalink
kernel: tweak some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Dec 22, 2022
1 parent bcdfe8d commit bc29a47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/permutat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ static inline Obj OnTuplesPerm_(Obj tup, Obj perm)
}
else {
tmp = POW(tmp, perm);
// POW may trigger a garbage collection, so update pointers
// POW may trigger a garbage collection, so update pointers
ptRes = ADDR_OBJ(res) + i;
ptPrm = CONST_ADDR_PERM<T>(perm);
*ptRes = tmp;
Expand Down Expand Up @@ -2098,7 +2098,7 @@ static inline Obj OnSetsPerm_(Obj set, Obj perm)
else {
isSmallIntList = FALSE;
tmp = POW(tmp, perm);
// POW may trigger a garbage collection, so update pointers
// POW may trigger a garbage collection, so update pointers
ptRes = ADDR_OBJ(res) + i;
ptPrm = CONST_ADDR_PERM<T>(perm);
*ptRes = tmp;
Expand Down
3 changes: 1 addition & 2 deletions src/trans.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2014,8 +2014,7 @@ static Obj FuncAS_TRANS_TRANS(Obj self, Obj f, Obj m)
}
}
else {
// f is T_TRANS4 but n <= 65536 < def and so g will be T_TRANS2 *
// /
// f is T_TRANS4 but n <= 65536 < def and so g will be T_TRANS2
g = NEW_TRANS2(n);
ptf4 = CONST_ADDR_TRANS4(f);
ptg2 = ADDR_TRANS2(g);
Expand Down
2 changes: 1 addition & 1 deletion src/vec8bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ static void AddVec8BitVec8BitMultInner(
return;
}

// so we have some work. get the tables
// so we have some work. get the tables
info = GetFieldInfo8Bit(FIELD_VEC8BIT(sum));

p = P_FIELDINFO_8BIT(info);
Expand Down
3 changes: 1 addition & 2 deletions src/vecgf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1542,8 +1542,7 @@ static Obj FuncPLAIN_GF2VEC(Obj self, Obj list)
*/


// A list of flip values for bytes (i.e. ..xyz -> zyx..)

// A list of flip values for bytes (i.e. ..xyz -> zyx..)
static const UInt1 revertlist[] = {
0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240,
8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184, 120, 248,
Expand Down

0 comments on commit bc29a47

Please sign in to comment.