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
3e00fefd
Commit
3e00fefd
authored
Oct 04, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast enum arithmetic and logical operands to int.
From-SVN: r5595
parent
f0afa4a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gcc/bc-typecd.h
+4
-4
No files found.
gcc/bc-typecd.h
View file @
3e00fefd
...
@@ -30,19 +30,19 @@ enum typecode
...
@@ -30,19 +30,19 @@ enum typecode
};
};
/* Determine if a given type is integer. */
/* Determine if a given type is integer. */
#define TYPECODE_INTEGER_P(TYPECODE) ((
TYPECODE) <
SFcode)
#define TYPECODE_INTEGER_P(TYPECODE) ((
int) (TYPECODE) < (int)
SFcode)
/* Determine if a given type is unsigned. */
/* Determine if a given type is unsigned. */
#define TYPECODE_UNSIGNED_P(TYPECODE) \
#define TYPECODE_UNSIGNED_P(TYPECODE) \
(TYPECODE_INTEGER_P(TYPECODE) && (TYPECODE) & 1)
(TYPECODE_INTEGER_P(TYPECODE) && (
int) (
TYPECODE) & 1)
/* Determine if a given type is signed. */
/* Determine if a given type is signed. */
#define TYPECODE_SIGNED_P(TYPECODE) \
#define TYPECODE_SIGNED_P(TYPECODE) \
(TYPECODE_INTEGER_P(TYPECODE) && !((TYPECODE) & 1))
(TYPECODE_INTEGER_P(TYPECODE) && !((
int) (
TYPECODE) & 1))
/* Determine if a given type is floating. */
/* Determine if a given type is floating. */
#define TYPECODE_FLOAT_P(TYPECODE) \
#define TYPECODE_FLOAT_P(TYPECODE) \
((
TYPECODE) <
Pcode && !TYPECODE_INTEGER_P(TYPECODE))
((
int) (TYPECODE) < (int)
Pcode && !TYPECODE_INTEGER_P(TYPECODE))
/* Determine if the given type is arithmetic. */
/* Determine if the given type is arithmetic. */
#define TYPECODE_ARITH_P(TYPECODE) \
#define TYPECODE_ARITH_P(TYPECODE) \
...
...
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