[phobos] [D-Programming-Language/phobos] 9da546: core.bitop bsr(), bsf(), and popcnt() now support ...

GitHub via phobos phobos at puremagic.com
Wed Jan 13 20:55:34 PST 2016


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 9da546b2a635d0772ea93be84f92e5294ab39597
      https://github.com/D-Programming-Language/phobos/commit/9da546b2a635d0772ea93be84f92e5294ab39597
  Author: tsbockman <thomas.bockman at gmail.com>
  Date:   2016-01-13 (Wed, 13 Jan 2016)

  Changed paths:
    M std/bitmanip.d
    M std/math.d
    M std/numeric.d

  Log Message:
  -----------
  core.bitop bsr(), bsf(), and popcnt() now support ulong inputs even on a 32-bit arch.

This also fixes a few small issues:
* In std.numeric, `Ulong union` didn't consider endianness, and
* in `roundDownToPowerOf2()`, this expression: (1 << bsr(num)) is always 32-bit,
    whereas it should, at a minimum, match the bit-ness of num.
* ilogb() supports integer inputs, but this was undocumented.


  Commit: 66e2918040b7073c33f188c125a23d5998279546
      https://github.com/D-Programming-Language/phobos/commit/66e2918040b7073c33f188c125a23d5998279546
  Author: Andrei Alexandrescu <andrei at erdani.com>
  Date:   2016-01-13 (Wed, 13 Jan 2016)

  Changed paths:
    M std/bitmanip.d
    M std/math.d
    M std/numeric.d

  Log Message:
  -----------
  Merge pull request #3888 from tsbockman/bitop-ulong

Update Phobos for druntime PR #1452 core.bitop changes


Compare: https://github.com/D-Programming-Language/phobos/compare/22615a8e57bd...66e2918040b7


More information about the phobos mailing list