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
d4b491d8
Commit
d4b491d8
authored
Feb 10, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to compile on Windows.
parent
f7a1fe88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
abclib.dsp
+4
-0
src/sat/satoko/utils/fixed.h
+3
-3
No files found.
abclib.dsp
View file @
d4b491d8
...
@@ -2031,6 +2031,10 @@ SOURCE=.\src\sat\satoko\cnf_reader.c
...
@@ -2031,6 +2031,10 @@ SOURCE=.\src\sat\satoko\cnf_reader.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\fixed.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\heap.h
SOURCE=.\src\sat\satoko\utils\heap.h
# End Source File
# End Source File
# Begin Source File
# Begin Source File
...
...
src/sat/satoko/utils/fixed.h
View file @
d4b491d8
...
@@ -16,11 +16,11 @@ ABC_NAMESPACE_HEADER_START
...
@@ -16,11 +16,11 @@ ABC_NAMESPACE_HEADER_START
typedef
unsigned
fixed_t
;
typedef
unsigned
fixed_t
;
static
const
int
FIXED_W_BITS
=
16
;
/* */
static
const
int
FIXED_W_BITS
=
16
;
/* */
static
const
int
FIXED_F_BITS
=
32
-
FIXED_W_BITS
;
static
const
int
FIXED_F_BITS
=
16
;
//
32 - FIXED_W_BITS;
static
const
int
FIXED_F_MASK
=
(
1
<<
FIXED_F_BITS
)
-
1
;
static
const
int
FIXED_F_MASK
=
0xFFFF
;
//
(1 << FIXED_F_BITS) - 1;
static
const
fixed_t
FIXED_MAX
=
0xFFFFFFFF
;
static
const
fixed_t
FIXED_MAX
=
0xFFFFFFFF
;
static
const
fixed_t
FIXED_MIN
=
0x00000000
;
static
const
fixed_t
FIXED_MIN
=
0x00000000
;
static
const
fixed_t
FIXED_ONE
=
(
1
<<
FIXED_F_BITS
);
static
const
fixed_t
FIXED_ONE
=
0x10000
;
//
(1 << FIXED_F_BITS);
/* Conversion functions */
/* Conversion functions */
static
inline
fixed_t
uint2fixed
(
unsigned
a
)
{
return
a
*
FIXED_ONE
;
}
static
inline
fixed_t
uint2fixed
(
unsigned
a
)
{
return
a
*
FIXED_ONE
;
}
...
...
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