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
cce4a958
Commit
cce4a958
authored
Dec 17, 1998
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Dec 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* hwint.h: New file to consolidate HOST_WIDE_INT (etc) macros.
From-SVN: r24362
parent
d5ff227d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
0 deletions
+100
-0
gcc/ChangeLog
+4
-0
gcc/hwint.h
+96
-0
No files found.
gcc/ChangeLog
View file @
cce4a958
Thu
Dec
17
15
:
58
:
26
1998
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
hwint
.
h
:
New
file
to
consolidate
HOST_WIDE_INT
(
etc
)
macros
.
Thu
Dec
17
12
:
31
:
12
1998
Jim
Wilson
<
wilson
@cygnus
.
com
>
*
Makefile
.
in
(
INTERNAL_CFLAGS
)
:
Add
SCHED_CFLAGS
.
...
...
gcc/hwint.h
0 → 100644
View file @
cce4a958
/* HOST_WIDE_INT definitions for the GNU compiler.
Copyright (C) 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
Provide definitions for macros which depend on HOST_BITS_PER_INT
and HOST_BITS_PER_LONG. */
#ifndef __HWINT_H__
#define __HWINT_H__
/* Only do all of this if both of these macros are defined, otherwise
they'll evaluate to zero, which is not what you want. */
#if defined (HOST_BITS_PER_LONG) && defined (HOST_BITS_PER_INT)
/* Find the largest host integer type and set its size and type. */
#ifndef HOST_BITS_PER_WIDE_INT
# if HOST_BITS_PER_LONG > HOST_BITS_PER_INT
# define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
# define HOST_WIDE_INT long
# else
# define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_INT
# define HOST_WIDE_INT int
# endif
#endif
/* ! HOST_BITS_PER_WIDE_INT */
/* Provide defaults for the way to print a HOST_WIDE_INT
in various manners. */
#ifndef HOST_WIDE_INT_PRINT_DEC
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
# define HOST_WIDE_INT_PRINT_DEC "%d"
# else
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
# define HOST_WIDE_INT_PRINT_DEC "%ld"
# else
# define HOST_WIDE_INT_PRINT_DEC "%lld"
# endif
# endif
#endif
/* ! HOST_WIDE_INT_PRINT_DEC */
#ifndef HOST_WIDE_INT_PRINT_UNSIGNED
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
# define HOST_WIDE_INT_PRINT_UNSIGNED "%u"
# else
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
# define HOST_WIDE_INT_PRINT_UNSIGNED "%lu"
# else
# define HOST_WIDE_INT_PRINT_UNSIGNED "%llu"
# endif
# endif
#endif
/* ! HOST_WIDE_INT_PRINT_UNSIGNED */
#ifndef HOST_WIDE_INT_PRINT_HEX
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
# define HOST_WIDE_INT_PRINT_HEX "0x%x"
# else
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
# define HOST_WIDE_INT_PRINT_HEX "0x%lx"
# else
# define HOST_WIDE_INT_PRINT_HEX "0x%llx"
# endif
# endif
#endif
/* ! HOST_WIDE_INT_PRINT_HEX */
#ifndef HOST_WIDE_INT_PRINT_DOUBLE_HEX
# if HOST_BITS_PER_WIDE_INT == 64
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%x%016x"
# else
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%016lx"
# else
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%llx%016llx"
# endif
# endif
# else
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%x%08x"
# else
# if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx"
# else
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%llx%08llx"
# endif
# endif
# endif
#endif
/* ! HOST_WIDE_INT_PRINT_DOUBLE_HEX */
#endif
/* HOST_BITS_PER_LONG && HOST_BITS_PER_INT */
#endif
/* __HWINT_H__ */
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