[libcxx-commits] [PATCH] D66614: Add inline to uflow and underflow

Aditya Kumar via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 22 12:22:54 PDT 2019


hiraditya created this revision.
hiraditya added reviewers: mclow.lists, EricWF.
Herald added subscribers: libcxx-commits, ldionne, christof.

Called from xsgetn in a loop. Helps with performance.


Repository:
  rCXX libc++

https://reviews.llvm.org/D66614

Files:
  libcxx/include/streambuf


Index: libcxx/include/streambuf
===================================================================
--- libcxx/include/streambuf
+++ libcxx/include/streambuf
@@ -281,7 +281,9 @@
     // 27.6.2.4.3 Get area:
     virtual streamsize showmanyc();
     virtual streamsize xsgetn(char_type* __s, streamsize __n);
+    inline _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY
     virtual int_type underflow();
+    inline _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY
     virtual int_type uflow();
 
     // 27.6.2.4.4 Putback:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66614.216687.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190822/12698aa8/attachment.bin>


More information about the libcxx-commits mailing list