Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
130a7859
Commit
130a7859
authored
Apr 22, 2014
by
Yufeng Zhang
Committed by
Marcus Shawcroft
Apr 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge longlong.h from glibc tree.
From-SVN: r209649
parent
e54c2dd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
include/ChangeLog
+4
-0
include/longlong.h
+17
-1
No files found.
include/ChangeLog
View file @
130a7859
2014-04-22 Yufeng Zhang <yufeng.zhang@arm.com>
* longlong.h: Merge from glibc.
2014-01-21 Tom Tromey <tromey@redhat.com>
2014-01-21 Tom Tromey <tromey@redhat.com>
* ansidecl.h (ANSI_PROTOTYPES, PTRCONST, LONG_DOUBLE, PARAMS)
* ansidecl.h (ANSI_PROTOTYPES, PTRCONST, LONG_DOUBLE, PARAMS)
...
...
include/longlong.h
View file @
130a7859
/* longlong.h -- definitions for mixed size 32/64 bit arithmetic.
/* longlong.h -- definitions for mixed size 32/64 bit arithmetic.
Copyright (C) 1991-201
3
Free Software Foundation, Inc.
Copyright (C) 1991-201
4
Free Software Foundation, Inc.
This file is part of the GNU C Library.
This file is part of the GNU C Library.
...
@@ -122,6 +122,22 @@ extern const UQItype __clz_tab[256] attribute_hidden;
...
@@ -122,6 +122,22 @@ extern const UQItype __clz_tab[256] attribute_hidden;
#define __AND_CLOBBER_CC , "cc"
#define __AND_CLOBBER_CC , "cc"
#endif
/* __GNUC__ < 2 */
#endif
/* __GNUC__ < 2 */
#if defined (__aarch64__)
#if W_TYPE_SIZE == 32
#define count_leading_zeros(COUNT, X) ((COUNT) = __builtin_clz (X))
#define count_trailing_zeros(COUNT, X) ((COUNT) = __builtin_ctz (X))
#define COUNT_LEADING_ZEROS_0 32
#endif
/* W_TYPE_SIZE == 32 */
#if W_TYPE_SIZE == 64
#define count_leading_zeros(COUNT, X) ((COUNT) = __builtin_clzll (X))
#define count_trailing_zeros(COUNT, X) ((COUNT) = __builtin_ctzll (X))
#define COUNT_LEADING_ZEROS_0 64
#endif
/* W_TYPE_SIZE == 64 */
#endif
/* __aarch64__ */
#if defined (__alpha) && W_TYPE_SIZE == 64
#if defined (__alpha) && W_TYPE_SIZE == 64
#define umul_ppmm(ph, pl, m0, m1) \
#define umul_ppmm(ph, pl, m0, m1) \
do { \
do { \
...
...
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