* [v3] Fix _S_local_capacity for large sizeof(_CharT)
@ 2014-12-22 17:59 Paolo Carlini
0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2014-12-22 17:59 UTC (permalink / raw)
To: libstdc++; +Cc: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 234 bytes --]
Hi,
minimally, fix _S_local_capacity for sizeof(_CharT) > 16. Probably we'll
come back to it in order to tune it more finely for char, wchar_t,
char16_t, and char32_t.
Tested x86_64-linux.
Thanks,
Paolo.
///////////////////////
[-- Attachment #2: CL --]
[-- Type: text/plain, Size: 136 bytes --]
2014-12-22 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/basic_string.h: Fix _S_local_capacity for
large sizeof(_CharT).
[-- Attachment #3: patchlet --]
[-- Type: text/plain, Size: 433 bytes --]
Index: include/bits/basic_string.h
===================================================================
--- include/bits/basic_string.h (revision 219015)
+++ include/bits/basic_string.h (working copy)
@@ -114,7 +114,7 @@
_Alloc_hider _M_dataplus;
size_type _M_string_length;
- enum { _S_local_capacity = 16 / sizeof(_CharT) - 1 };
+ enum { _S_local_capacity = 15 / sizeof(_CharT) };
union
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-22 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-22 17:59 [v3] Fix _S_local_capacity for large sizeof(_CharT) Paolo Carlini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).