Switch Bits.h to just use the popcount builtins directly
authorChristopher Dykes <cdykes@fb.com>
Mon, 5 Jun 2017 23:38:24 +0000 (16:38 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 5 Jun 2017 23:38:55 +0000 (16:38 -0700)
commitf1eb3c506a6510dd1101da0d071ef4a41650f70a
treea29b841d25039e6aaad0f7c48310776e5e9fef17
parent43fde9f2bc353ef04b53721f8a3242ffda9f1f71
Switch Bits.h to just use the popcount builtins directly

Summary:
These builtins are available on all platforms under GCC, using the instruction directly when available and a fallback implementation otherwise.
They are implemented in the builtins portability header for MSVC.

Reviewed By: yfeldblum

Differential Revision: D5185106

fbshipit-source-id: a58305a6b99eb49bd165876a4a60c512a259b225
folly/Bits.cpp [deleted file]
folly/Bits.h
folly/Makefile.am
folly/detail/BitsDetail.h [deleted file]