r263515 - in /trunk/libstdc++-v3: ChangeLog lib...

redi@gcc.gnu.org redi@gcc.gnu.org
Mon Aug 13 18:54:00 GMT 2018


Author: redi
Date: Mon Aug 13 18:54:38 2018
New Revision: 263515

URL: https://gcc.gnu.org/viewcvs?rev=263515&root=gcc&view=rev
Log:
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.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/libsupc++/new_opa.cc



More information about the Libstdc++-cvs mailing list