]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
no-op commit to note that the example given in the previous commit is
authorDag-Erling Smørgrav <des@FreeBSD.org>
Sun, 15 Aug 2010 14:55:32 +0000 (14:55 +0000)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Sun, 15 Aug 2010 14:55:32 +0000 (14:55 +0000)
commitb6fbd4d50dd30e90231bb0b2f8ddf9fd96691b39
tree2df0914821a027f90d0fb465de23796faf70a3c0
parent1035d74025de93515f0a7baf2c48eed25e854099
no-op commit to note that the example given in the previous commit is
a very bad one, since the shift does not actually overflow.  This is
a better example (assuming uint64_t = unsigned long long):

  ~0LLU >> 9             =   0x7fffffffffffffLLU
  ~0LLU >> 9 << 10       = 0xfffffffffffffc00LLU
  ~0LLU >> 9 << 10 >> 10 =   0x3fffffffffffffLLU
lib/libutil/expand_number.c