From 77f87009a34c745255bd84d8f2647040d831a2b3 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Fri, 6 Dec 2019 05:36:40 -0800 Subject: Export of internal Abseil changes -- d8ddeda8e52132b908fae89b25f117a055d78c04 by Abseil Team : Improve performance of ByteStringFromAscii by changing kHexValue to have -1 in invalid value slots. This way a single load can do both the validation and conversion. PiperOrigin-RevId: 284167344 -- 5037e97e2eaaac8ced9a5290949deda4b43b9ceb by Mark Barolak : Change the underlying symbol name of Cord to absl::Cord. PiperOrigin-RevId: 284005429 -- 4ef66c72aedf135f2b4fd0ba7a73de6642decfff by Abseil Team : Eliminate an unnecessary load when futex is contended in Waiter::Wait() The first argument to compare_exchange_weak() is a reference and will be updated upon failure. There is no need to do an additional load on the same variable. PiperOrigin-RevId: 284002752 GitOrigin-RevId: d8ddeda8e52132b908fae89b25f117a055d78c04 Change-Id: Idac68a1901eb8c30050adc3860765b1a6fa085c7 --- absl/strings/internal/str_format/output.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'absl/strings/internal/str_format/output.h') diff --git a/absl/strings/internal/str_format/output.h b/absl/strings/internal/str_format/output.h index 42da641..6dc2f3f 100644 --- a/absl/strings/internal/str_format/output.h +++ b/absl/strings/internal/str_format/output.h @@ -28,9 +28,10 @@ #include "absl/base/port.h" #include "absl/strings/string_view.h" +namespace absl { + class Cord; -namespace absl { namespace str_format_internal { // RawSink implementation that writes into a char* buffer. @@ -76,7 +77,7 @@ inline void AbslFormatFlush(std::ostream* out, string_view s) { } template ::value>::type> + std::is_same::value>::type> inline void AbslFormatFlush(AbslCord* out, string_view s) { out->Append(s); } -- cgit v1.2.3