Certain static code analysis tools (FlexeLint being one) are very
suspicious about 'l' and '1' being confused in numeric constants. The fear being that some old fart programmer might still think that he is using a Remmington Noiseless as input terminal device. An easy way to placate this fear is to use capital 'L' or to put the 'u' in unsigned constants in front of the 'l'.
This commit is contained in:
parent
873ddec3fb
commit
47a9ec4107
@ -95,11 +95,11 @@ bintime_mul(struct bintime *bt, u_int x)
|
||||
{
|
||||
uint64_t p1, p2;
|
||||
|
||||
p1 = (bt->frac & 0xffffffffllu) * x;
|
||||
p1 = (bt->frac & 0xffffffffull) * x;
|
||||
p2 = (bt->frac >> 32) * x + (p1 >> 32);
|
||||
bt->sec *= x;
|
||||
bt->sec += (p2 >> 32);
|
||||
bt->frac = (p2 << 32) | (p1 & 0xffffffffllu);
|
||||
bt->frac = (p2 << 32) | (p1 & 0xffffffffull);
|
||||
}
|
||||
|
||||
#define bintime_clear(a) ((a)->sec = (a)->frac = 0)
|
||||
|
Loading…
Reference in New Issue
Block a user