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
5021909c
Commit
5021909c
authored
Nov 07, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Plain Diff
Merged in atomb/abc (pull request #2)
More portability/flexibility fixes
parents
24ffd526
6ce69bf4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile
+3
-3
src/misc/util/abc_global.h
+1
-1
No files found.
Makefile
View file @
5021909c
...
@@ -38,10 +38,10 @@ default: $(PROG)
...
@@ -38,10 +38,10 @@ default: $(PROG)
arch_flags
:
arch_flags.c
arch_flags
:
arch_flags.c
$(CC)
arch_flags.c
-o
arch_flags
$(CC)
arch_flags.c
-o
arch_flags
ARCHFLAGS
:
=
$(
shell
$(CC)
arch_flags.c
-o
arch_flags
&&
./arch_flags
)
ARCHFLAGS
?
=
$(
shell
$(CC)
arch_flags.c
-o
arch_flags
&&
./arch_flags
)
OPTFLAGS
:
=
-g
-O
#-DABC_NAMESPACE=xxx
OPTFLAGS
?
=
-g
-O
#-DABC_NAMESPACE=xxx
CFLAGS
+=
-Wall
-Wno-unused-function
-Wno-write-strings
-Wno-sign-compare
$(OPTFLAGS)
$(ARCHFLAGS)
-I
$(PWD)
/
src
CFLAGS
+=
-Wall
-Wno-unused-function
-Wno-write-strings
-Wno-sign-compare
$(OPTFLAGS)
$(ARCHFLAGS)
-Isrc
# Set -Wno-unused-bug-set-variable for GCC 4.6.0 and greater only
# Set -Wno-unused-bug-set-variable for GCC 4.6.0 and greater only
ifneq
($(or
$(findstring
gcc,$(CC)),$(findstring
g++,$(CC))),)
ifneq
($(or
$(findstring
gcc,$(CC)),$(findstring
g++,$(CC))),)
...
...
src/misc/util/abc_global.h
View file @
5021909c
...
@@ -274,7 +274,7 @@ static inline int Abc_Lit2LitL( int * pMap, int Lit ) { return Abc_LitNo
...
@@ -274,7 +274,7 @@ static inline int Abc_Lit2LitL( int * pMap, int Lit ) { return Abc_LitNo
typedef
ABC_INT64_T
abctime
;
typedef
ABC_INT64_T
abctime
;
static
inline
abctime
Abc_Clock
()
static
inline
abctime
Abc_Clock
()
{
{
#if (defined(LIN) || defined(LIN64)
&& !(__APPLE__ & __MACH__)
) && !defined(__MINGW32__)
#if (defined(LIN) || defined(LIN64)
) && !(__APPLE__ & __MACH__
) && !defined(__MINGW32__)
struct
timespec
ts
;
struct
timespec
ts
;
if
(
clock_gettime
(
CLOCK_THREAD_CPUTIME_ID
,
&
ts
)
<
0
)
if
(
clock_gettime
(
CLOCK_THREAD_CPUTIME_ID
,
&
ts
)
<
0
)
return
(
abctime
)
-
1
;
return
(
abctime
)
-
1
;
...
...
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