Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
a58c1338
Commit
a58c1338
authored
Sep 07, 2021
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve code_point_length codegen on older gcc
parent
aeee70a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/fmt/core.h
include/fmt/core.h
+3
-3
No files found.
include/fmt/core.h
View file @
a58c1338
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
# define FMT_CONSTEXPR_DECL
# define FMT_CONSTEXPR_DECL
#endif
#endif
#if ((__cplusplus >= 202002L) && \
#if ((__cplusplus >= 202002L) &&
\
(!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE > 9)) || \
(!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE > 9)) || \
(__cplusplus >= 201709L && FMT_GCC_VERSION >= 1002)
(__cplusplus >= 201709L && FMT_GCC_VERSION >= 1002)
# define FMT_CONSTEXPR20 constexpr
# define FMT_CONSTEXPR20 constexpr
...
@@ -2140,8 +2140,8 @@ constexpr auto to_ascii(Char value) ->
...
@@ -2140,8 +2140,8 @@ constexpr auto to_ascii(Char value) ->
template
<
typename
Char
>
template
<
typename
Char
>
FMT_CONSTEXPR
auto
code_point_length
(
const
Char
*
begin
)
->
int
{
FMT_CONSTEXPR
auto
code_point_length
(
const
Char
*
begin
)
->
int
{
if
(
const_check
(
sizeof
(
Char
)
!=
1
))
return
1
;
if
(
const_check
(
sizeof
(
Char
)
!=
1
))
return
1
;
constexpr
char
lengths
[]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
auto
lengths
=
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
2
,
2
,
2
,
3
,
3
,
4
,
0
}
;
"
\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\2\2\2\2\3\3\4
"
;
int
len
=
lengths
[
static_cast
<
unsigned
char
>
(
*
begin
)
>>
3
];
int
len
=
lengths
[
static_cast
<
unsigned
char
>
(
*
begin
)
>>
3
];
// Compute the pointer to the next character early so that the next
// Compute the pointer to the next character early so that the next
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment