Replace modulus with mask operation in over-aligned new
authorJonathan Wakely <jwakely@redhat.com>
Fri, 16 Sep 2016 18:09:14 +0000 (19:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 16 Sep 2016 18:09:14 +0000 (19:09 +0100)
commit84c08ec96a558fcb648e27f3f4a2e7532079d5bd
treeb8c56baa281de2eae77e1ec2845a367d9bf8d38d
parent8d987deb5be9484c103d3a786590c84b54535813
Replace modulus with mask operation in over-aligned new

2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
    Marc Glisse  <marc.glisse@inria.fr>

* libsupc++/new_opa.cc [_GLIBCXX_HAVE_ALIGNED_ALLOC]
(operator new(size_t, align_val_t)): Replace modulus operator with
mask.

Co-Authored-By: Marc Glisse <marc.glisse@inria.fr>
From-SVN: r240192
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/new_opa.cc