Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
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
abc
Commits
3be417ae
Commit
3be417ae
authored
Apr 25, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inconsistency between operators and symbols in Wlc_Ntk_t.
parent
55e7dd16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
37 deletions
+38
-37
src/base/wlc/wlc.h
+19
-19
src/base/wlc/wlcNtk.c
+19
-18
No files found.
src/base/wlc/wlc.h
View file @
3be417ae
...
@@ -68,25 +68,25 @@ typedef enum {
...
@@ -68,25 +68,25 @@ typedef enum {
WLC_OBJ_LOGIC_NOT
,
// 23: logic NOT
WLC_OBJ_LOGIC_NOT
,
// 23: logic NOT
WLC_OBJ_LOGIC_AND
,
// 24: logic AND
WLC_OBJ_LOGIC_AND
,
// 24: logic AND
WLC_OBJ_LOGIC_OR
,
// 25: logic OR
WLC_OBJ_LOGIC_OR
,
// 25: logic OR
WLC_OBJ_LOGIC_XOR
,
// 2
6
: logic XOR
WLC_OBJ_LOGIC_XOR
,
// 2
7
: logic XOR
WLC_OBJ_COMP_EQU
,
// 2
7
: compare equal
WLC_OBJ_COMP_EQU
,
// 2
8
: compare equal
WLC_OBJ_COMP_NOTEQU
,
// 2
8
: compare not equal
WLC_OBJ_COMP_NOTEQU
,
// 2
9
: compare not equal
WLC_OBJ_COMP_LESS
,
//
29
: compare less
WLC_OBJ_COMP_LESS
,
//
30
: compare less
WLC_OBJ_COMP_MORE
,
// 3
0
: compare more
WLC_OBJ_COMP_MORE
,
// 3
1
: compare more
WLC_OBJ_COMP_LESSEQU
,
// 3
1
: compare less or equal
WLC_OBJ_COMP_LESSEQU
,
// 3
2
: compare less or equal
WLC_OBJ_COMP_MOREEQU
,
// 3
2
: compare more or equal
WLC_OBJ_COMP_MOREEQU
,
// 3
3
: compare more or equal
WLC_OBJ_REDUCT_AND
,
// 3
3
: reduction AND
WLC_OBJ_REDUCT_AND
,
// 3
4
: reduction AND
WLC_OBJ_REDUCT_OR
,
// 3
4
: reduction OR
WLC_OBJ_REDUCT_OR
,
// 3
5
: reduction OR
WLC_OBJ_REDUCT_XOR
,
// 3
5
: reduction XOR
WLC_OBJ_REDUCT_XOR
,
// 3
6
: reduction XOR
WLC_OBJ_ARI_ADD
,
// 3
6
: arithmetic addition
WLC_OBJ_ARI_ADD
,
// 3
7
: arithmetic addition
WLC_OBJ_ARI_SUB
,
// 3
7
: arithmetic subtraction
WLC_OBJ_ARI_SUB
,
// 3
8
: arithmetic subtraction
WLC_OBJ_ARI_MULTI
,
// 3
8
: arithmetic multiplier
WLC_OBJ_ARI_MULTI
,
// 3
9
: arithmetic multiplier
WLC_OBJ_ARI_DIVIDE
,
//
39
: arithmetic division
WLC_OBJ_ARI_DIVIDE
,
//
40
: arithmetic division
WLC_OBJ_ARI_MODULUS
,
// 4
0
: arithmetic modulus
WLC_OBJ_ARI_MODULUS
,
// 4
1
: arithmetic modulus
WLC_OBJ_ARI_POWER
,
// 4
1
: arithmetic power
WLC_OBJ_ARI_POWER
,
// 4
2
: arithmetic power
WLC_OBJ_ARI_MINUS
,
// 4
2
: arithmetic minus
WLC_OBJ_ARI_MINUS
,
// 4
3
: arithmetic minus
WLC_OBJ_TABLE
,
// 4
3
: bit table
WLC_OBJ_TABLE
,
// 4
4
: bit table
WLC_OBJ_NUMBER
// 4
4
: unused
WLC_OBJ_NUMBER
// 4
5
: unused
}
Wlc_ObjType_t
;
}
Wlc_ObjType_t
;
...
...
src/base/wlc/wlcNtk.c
View file @
3be417ae
...
@@ -56,24 +56,25 @@ static char * Wlc_Names[WLC_OBJ_NUMBER+1] = {
...
@@ -56,24 +56,25 @@ static char * Wlc_Names[WLC_OBJ_NUMBER+1] = {
"!"
,
// 23: logic NOT
"!"
,
// 23: logic NOT
"&&"
,
// 24: logic AND
"&&"
,
// 24: logic AND
"||"
,
// 25: logic OR
"||"
,
// 25: logic OR
"=="
,
// 26: compare equal
"^^"
,
// 27: logic XOR
"!="
,
// 27: compare not equal
"=="
,
// 28: compare equal
"<"
,
// 28: compare less
"!="
,
// 29: compare not equal
">"
,
// 29: compare more
"<"
,
// 30: compare less
"<="
,
// 30: compare less or equal
">"
,
// 31: compare more
">="
,
// 31: compare more or equal
"<="
,
// 32: compare less or equal
"&"
,
// 32: reduction AND
">="
,
// 33: compare more or equal
"|"
,
// 33: reduction OR
"&"
,
// 34: reduction AND
"^"
,
// 34: reduction XOR
"|"
,
// 35: reduction OR
"+"
,
// 35: arithmetic addition
"^"
,
// 36: reduction XOR
"-"
,
// 36: arithmetic subtraction
"+"
,
// 37: arithmetic addition
"*"
,
// 37: arithmetic multiplier
"-"
,
// 38: arithmetic subtraction
"//"
,
// 38: arithmetic division
"*"
,
// 39: arithmetic multiplier
"%"
,
// 39: arithmetic modulus
"/"
,
// 40: arithmetic division
"**"
,
// 40: arithmetic power
"%"
,
// 41: arithmetic modulus
"-"
,
// 41: arithmetic minus
"**"
,
// 42: arithmetic power
"table"
,
// 42: bit table
"-"
,
// 43: arithmetic minus
NULL
// 43: unused
"table"
,
// 44: bit table
NULL
// 45: unused
};
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
...
...
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