Style tweaks to max_align_v calculation
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 21 Jul 2017 07:20:14 +0000 (00:20 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 21 Jul 2017 07:38:49 +0000 (00:38 -0700)
commit1804caeedfa12ede64783fe40f8b3570b1868a92
treec70f2e4df10453130962d6823febed0098d5d047
parentefce85539ca788a4f3205aba825dc1962606181a
Style tweaks to max_align_v calculation

Summary:
[Folly] Style tweaks to `max_align_v` calculation.

* Change ns from `folly::detail` since that can be crowded and many other folly libraries may include this header.
* Extract a 2-param `max` alias.
* Fix an incorrectly hardcoded `size_t`.

Reviewed By: WillerZ

Differential Revision: D5468758

fbshipit-source-id: 14a3f67323020a3cfce2b3b46f5f64f3e6125027
folly/Portability.h