[PATCH] [Support] Add BitHacks.h - generic bit utility functions.

Michael Spencer bigcheesegs at gmail.com
Tue May 21 18:57:46 PDT 2013


On Tue, May 21, 2013 at 5:36 PM, Evan Cheng <evan.cheng at apple.com> wrote:

> Can this consolidate with MathExtras.h?
>
> Evan
>

Yes, it can.

- Michael Spencer


>
> On May 21, 2013, at 5:28 PM, Michael Spencer <bigcheesegs at gmail.com>
> wrote:
>
> > I need generic bit utility functions for lld, so I wrote these. The main
> additional functionality is giving a choice of behavior on zero, and being
> generic instead of having _32 and _64 versions.
> >
> > The signed version of most of these functions are marked = delete; As
> the operation doesn't make sense in C++.
> >
> > I plan to move all users of the versions in MathExtras.h over to this.
> >
> > http://llvm-reviews.chandlerc.com/D841
> >
> > Files:
> >  include/llvm/Support/BitHacks.h
> >  unittests/Support/BitHacksTest.cpp
> >  unittests/Support/CMakeLists.txt
> > <D841.1.patch>_______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130521/2634f72f/attachment.html>


More information about the llvm-commits mailing list