Minor optimisations in operator new(size_t, align_val_t)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 13 Aug 2018 18:54:38 +0000 (19:54 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 13 Aug 2018 18:54:38 +0000 (19:54 +0100)
commit2383ed026914b85980520278455f97c270006d4d
tree62ef9e0c82e2e10010b35153162acaf010635c9f
parent7997ede243f459020ec756905749dea47187e0a8
Minor optimisations in operator new(size_t, align_val_t)

* libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Use
__is_pow2 to check for valid alignment. Avoid branching when rounding
size to multiple of alignment.

From-SVN: r263515
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/new_opa.cc