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
45f4d6c7
Commit
45f4d6c7
authored
Feb 11, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Movinng custom floating-point implementations, etc.
parent
ab2d3aca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
21 deletions
+19
-21
abclib.dsp
+12
-12
src/misc/util/abc_global.h
+2
-0
src/misc/util/utilDouble.h
+1
-5
src/misc/util/utilFloat.h
+2
-3
src/sat/bsat/satSolver.h
+2
-1
No files found.
abclib.dsp
View file @
45f4d6c7
...
...
@@ -1971,10 +1971,6 @@ SOURCE=.\src\sat\xsat\xsatCnfReader.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\xsat\xsatFloat.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\xsat\xsatHeap.h
# End Source File
# Begin Source File
...
...
@@ -2031,10 +2027,6 @@ SOURCE=.\src\sat\satoko\cnf_reader.c
# End 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
# End Source File
# Begin Source File
...
...
@@ -2051,6 +2043,10 @@ SOURCE=.\src\sat\satoko\satoko.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\sdbl.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\solver.c
# End Source File
# Begin Source File
...
...
@@ -2075,10 +2071,6 @@ SOURCE=.\src\sat\satoko\utils\vec\vec_char.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_dble.h
# End Source File
# Begin Source File
SOURCE=.\src\sat\satoko\utils\vec\vec_flt.h
# End Source File
# Begin Source File
...
...
@@ -3659,10 +3651,18 @@ SOURCE=.\src\misc\util\utilColor.c
# End Source File
# Begin Source File
SOURCE=.\src\misc\util\utilDouble.h
# End Source File
# Begin Source File
SOURCE=.\src\misc\util\utilFile.c
# End Source File
# Begin Source File
SOURCE=.\src\misc\util\utilFloat.h
# End Source File
# Begin Source File
SOURCE=.\src\misc\util\utilIsop.c
# End Source File
# Begin Source File
...
...
src/misc/util/abc_global.h
View file @
45f4d6c7
...
...
@@ -225,6 +225,8 @@ static inline double Abc_MinDouble( double a, double b ) { return a < b ?
static
inline
int
Abc_Float2Int
(
float
Val
)
{
union
{
int
x
;
float
y
;
}
v
;
v
.
y
=
Val
;
return
v
.
x
;
}
static
inline
float
Abc_Int2Float
(
int
Num
)
{
union
{
int
x
;
float
y
;
}
v
;
v
.
x
=
Num
;
return
v
.
y
;
}
static
inline
word
Abc_Dbl2Word
(
double
Dbl
)
{
union
{
word
x
;
double
y
;
}
v
;
v
.
y
=
Dbl
;
return
v
.
x
;
}
static
inline
double
Abc_Word2Dbl
(
word
Num
)
{
union
{
word
x
;
double
y
;
}
v
;
v
.
x
=
Num
;
return
v
.
y
;
}
static
inline
int
Abc_Base2Log
(
unsigned
n
)
{
int
r
;
if
(
n
<
2
)
return
n
;
for
(
r
=
0
,
n
--
;
n
;
n
>>=
1
,
r
++
)
{};
return
r
;
}
static
inline
int
Abc_Base10Log
(
unsigned
n
)
{
int
r
;
if
(
n
<
2
)
return
n
;
for
(
r
=
0
,
n
--
;
n
;
n
/=
10
,
r
++
)
{};
return
r
;
}
static
inline
int
Abc_Base16Log
(
unsigned
n
)
{
int
r
;
if
(
n
<
2
)
return
n
;
for
(
r
=
0
,
n
--
;
n
;
n
/=
16
,
r
++
)
{};
return
r
;
}
...
...
src/
sat/xsat/xsat
Double.h
→
src/
misc/util/util
Double.h
View file @
45f4d6c7
/**CFile****************************************************************
FileName [
xd
ouble.h]
FileName [
utilD
ouble.h]
SystemName [ABC: Logic synthesis and verification system.]
...
...
@@ -46,10 +46,6 @@ ABC_NAMESPACE_HEADER_START
Only addition, multiplication, and division by 2^n are currently implemented.
*/
static
inline
word
Abc_Dbl2Word
(
double
Dbl
)
{
union
{
word
x
;
double
y
;
}
v
;
v
.
y
=
Dbl
;
return
v
.
x
;
}
static
inline
double
Abc_Word2Dbl
(
word
Num
)
{
union
{
word
x
;
double
y
;
}
v
;
v
.
x
=
Num
;
return
v
.
y
;
}
typedef
word
xdbl
;
static
inline
word
Xdbl_Exp
(
xdbl
a
)
{
return
a
>>
48
;
}
...
...
src/
sat/xsat/xsat
Float.h
→
src/
misc/util/util
Float.h
View file @
45f4d6c7
/**CFile****************************************************************
FileName [
xsat
Float.h]
FileName [
util
Float.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [xSAT - A SAT solver written in C.
Read the license file for more info.]
PackageName []
Synopsis [Floating point number implementation.]
...
...
src/sat/bsat/satSolver.h
View file @
45f4d6c7
...
...
@@ -30,7 +30,8 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
#include "satVec.h"
#include "satClause.h"
#include "sat/xsat/xsatFloat.h"
#include "misc/util/utilFloat.h"
#include "misc/util/utilDouble.h"
ABC_NAMESPACE_HEADER_START
...
...
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