Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 2010 14:55:32 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libutil expand_number.c
Message-ID:  <201008151455.o7FEtf8F042599@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
des         2010-08-15 14:55:32 UTC

  FreeBSD src repository

  Modified files:
    lib/libutil          expand_number.c 
  Log:
  SVN rev 211338 on 2010-08-15 14:55:32Z by des
  
  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
  
  Revision  Changes    Path
  1.7       +1 -1      src/lib/libutil/expand_number.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008151455.o7FEtf8F042599>