Creator of $BCH , now working on $XEC: https://e.cash
Benevolent dictator of @Bitcoin_ABC
. Vi/Vim
@b0rk I cannot strongly enough advise you to add the following alias to your .gitcongfig and play with it to get ideas:
[alias]
sl = log --graph --branches HEAD --format=format:'%h %an %C(auto,green)%D%C(auto,reset)%n %s%n'
@b0rk @gdinwiddie say you want a signed 31 bit integer and a bool packed into 32 bits.
int x; // the packed 32bits.
x & 0x01; // the bool.
x >> 1; // the int.
More generally, you want that to optimize, for instance, division by powers of two.
@b0rk @gdinwiddie say you write the following bound check:
if (x < length - 1) { ... }
If you are using usigned, and if legth is zero, then the bound check is busted. This is a common error, and is very likely to pass code review.