]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Optimize std::add_pointer compilation performance
authorKen Matsui <kmatsui@gcc.gnu.org>
Wed, 14 Feb 2024 11:42:33 +0000 (03:42 -0800)
committerKen Matsui <kmatsui@gcc.gnu.org>
Thu, 13 Jun 2024 12:56:08 +0000 (05:56 -0700)
commit24da955ab442107909a06f3ef722f4dbf6751236
tree3d14d9c93ad2a19cb047932467788967fe53ccc8
parentb38aefbbc90a3334c6c5ba6569816d348a1a0c91
libstdc++: Optimize std::add_pointer compilation performance

This patch optimizes the compilation performance of std::add_pointer
by dispatching to the new __add_pointer built-in trait.

libstdc++-v3/ChangeLog:

* include/std/type_traits (add_pointer): Use __add_pointer
built-in trait.

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/std/type_traits