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
2e4038bf
Commit
2e4038bf
authored
Jan 13, 2022
by
Junekey Jeon
Committed by
Victor Zverovich
Jan 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify lines with __builtin_addcll and friends
parent
76336b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
include/fmt/format-inl.h
include/fmt/format-inl.h
+2
-3
No files found.
include/fmt/format-inl.h
View file @
2e4038bf
...
...
@@ -802,13 +802,12 @@ struct uint128_wrapper {
#if FMT_HAS_BUILTIN(__builtin_addcll)
unsigned
long
long
carry
;
low_
=
__builtin_addcll
(
low_
,
n
,
0
,
&
carry
);
high_
=
__builtin_addcll
(
high_
,
0
,
carry
,
&
carry
)
;
high_
+=
carry
;
#elif FMT_HAS_BUILTIN(__builtin_ia32_addcarryx_u64)
unsigned
long
long
result
;
auto
carry
=
__builtin_ia32_addcarryx_u64
(
0
,
low_
,
n
,
&
result
);
low_
=
result
;
__builtin_ia32_addcarryx_u64
(
carry
,
high_
,
0
,
&
result
);
high_
=
result
;
high_
+=
carry
;
#elif defined(_MSC_VER) && defined(_M_X64)
auto
carry
=
_addcarry_u64
(
0
,
low_
,
n
,
&
low_
);
_addcarry_u64
(
carry
,
high_
,
0
,
&
high_
);
...
...
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