Skip to content

Commit ef5389d

Browse files
authored
Merge pull request #6 from QuantamHD/update_abc
Update abc
2 parents 5532997 + 884b90b commit ef5389d

File tree

8 files changed

+23
-11
lines changed

8 files changed

+23
-11
lines changed

.github/workflows/build-posix-cmake.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
on: [push]
1+
name: Build Posix CMake
2+
3+
on:
4+
push:
5+
pull_request:
26

37
jobs:
48

.github/workflows/build-posix.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
on: [push]
1+
name: Build Posix
2+
3+
on:
4+
push:
5+
pull_request:
26

37
jobs:
48

.github/workflows/build-windows.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
on: [push]
1+
name: Build Windows
2+
3+
on:
4+
push:
5+
pull_request:
26

37
jobs:
48

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
cmake_minimum_required(VERSION 3.3.0)
1+
cmake_minimum_required(VERSION 3.5.0)
22

33
include(CMakeParseArguments)
44
include(CheckCCompilerFlag)
55
include(CheckCXXCompilerFlag)
66

7+
# Default c++ standard used unless otherwise specified in target_compile_features.
8+
set(CMAKE_CXX_STANDARD 17 CACHE STRING "the C++ standard to use for this project")
9+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
10+
711
function(addprefix var prefix)
812
foreach( s ${ARGN} )
913
list(APPEND tmp "-I${s}")

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ ifdef ABC_USE_LIBSTDCXX
152152
endif
153153

154154
$(info $(MSG_PREFIX)Using CFLAGS=$(CFLAGS))
155-
CXXFLAGS += $(CFLAGS) -std=c++11
155+
CXXFLAGS += $(CFLAGS) -std=c++17
156156

157157
SRC :=
158158
GARBAGE := core core.* *.stackdump ./tags $(PROG) arch_flags

src/base/wlc/wlc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,6 @@ Gia_Man_t * Wlc_ManGenTree( int nInputs, int Value, int nBits, int fVerbose )
678678
Gia_Man_t * Wlc_ManGenProd( int nInputs, int fVerbose )
679679
{
680680
extern void Wlc_BlastBooth( Gia_Man_t * pNew, int * pArgA, int * pArgB, int nArgA, int nArgB, Vec_Int_t * vRes, int fSigned, int fCla, Vec_Wec_t ** pvProds, int fVerbose );
681-
extern void Wlc_BlastMultiplier3( Gia_Man_t * pNew, int * pArgA, int * pArgB, int nArgA, int nArgB, Vec_Int_t * vRes, int fSigned, int fCla, Vec_Wec_t ** pvProds );
682681
Vec_Int_t * vIns = Vec_IntAlloc( 2*nInputs );
683682
Gia_Man_t * pTemp, * pNew;
684683
Vec_Wec_t * vProds; int i;
@@ -694,8 +693,6 @@ Gia_Man_t * Wlc_ManGenProd( int nInputs, int fVerbose )
694693

695694
Gia_ManHashAlloc( pNew );
696695
Wlc_BlastBooth( pNew, Vec_IntArray(vIns), Vec_IntArray(vIns)+nInputs, nInputs, nInputs, NULL, 0, 0, &vProds, 0 );
697-
//Wlc_BlastMultiplier3( pNew, Vec_IntArray(vIns), Vec_IntArray(vIns)+nInputs, nInputs, nInputs, NULL, 0, 0, &vProds );
698-
//Vec_WecPrint( vProds, 0 );
699696
Wlc_ManGenTreeOne( pNew, vProds, 1, fVerbose );
700697
Gia_ManHashStop( pNew );
701698
Vec_WecFree( vProds );

src/base/wlc/wlcBlast.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,6 @@ void Wlc_BlastReduceMatrix2( Gia_Man_t * pNew, Vec_Wec_t * vProds, Vec_Int_t * v
10491049
Vec_IntFree( vTemp );
10501050
}
10511051

1052-
10531052
void Wlc_BlastMultiplier3( Gia_Man_t * pNew, int * pArgA, int * pArgB, int nArgA, int nArgB, Vec_Int_t * vRes, int fSigned, int fCla, Vec_Wec_t ** pvProds, int fVerbose )
10541053
{
10551054
Vec_Wec_t * vProds = Vec_WecStart( nArgA + nArgB );

src/base/wln/wlnBlast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void Rtl_NtkBlastNode( Gia_Man_t * pNew, int Type, int nIns, Vec_Int_t * vDatas,
7070
extern void Wlc_BlastSubtract( Gia_Man_t * pNew, int * pAdd0, int * pAdd1, int nBits, int Carry ); // result is in pAdd0
7171
extern int Wlc_NtkCountConstBits( int * pArray, int nSize );
7272
extern void Wlc_BlastBooth( Gia_Man_t * pNew, int * pArgA, int * pArgB, int nArgA, int nArgB, Vec_Int_t * vRes, int fSigned, int fCla, Vec_Wec_t ** pvProds, int fVerbose );
73-
extern void Wlc_BlastMultiplier3( Gia_Man_t * pNew, int * pArgA, int * pArgB, int nArgA, int nArgB, Vec_Int_t * vRes, int fSigned, int fCla, Vec_Wec_t ** pvProds );
73+
extern void Wlc_BlastMultiplier3( Gia_Man_t * pNew, int * pArgA, int * pArgB, int nArgA, int nArgB, Vec_Int_t * vRes, int fSigned, int fCla, Vec_Wec_t ** pvProds, int fVerbose );
7474
extern void Wlc_BlastZeroCondition( Gia_Man_t * pNew, int * pDiv, int nDiv, Vec_Int_t * vRes );
7575
extern void Wlc_BlastDividerTop( Gia_Man_t * pNew, int * pNum, int nNum, int * pDiv, int nDiv, int fQuo, Vec_Int_t * vRes, int fNonRest );
7676
extern void Wlc_BlastDividerSigned( Gia_Man_t * pNew, int * pNum, int nNum, int * pDiv, int nDiv, int fQuo, Vec_Int_t * vRes, int fNonRest );
@@ -305,7 +305,7 @@ void Rtl_NtkBlastNode( Gia_Man_t * pNew, int Type, int nIns, Vec_Int_t * vDatas,
305305
if ( fBooth )
306306
Wlc_BlastBooth( pNew, Vec_IntArray(vArg0), Vec_IntArray(vArg1), Vec_IntSize(vArg0), Vec_IntSize(vArg1), vRes, fSigned, fCla, NULL, 0 );
307307
else
308-
Wlc_BlastMultiplier3( pNew, Vec_IntArray(vArg0), Vec_IntArray(vArg1), Vec_IntSize(vArg0), Vec_IntSize(vArg1), vRes, fSigned, fCla, NULL );
308+
Wlc_BlastMultiplier3( pNew, Vec_IntArray(vArg0), Vec_IntArray(vArg1), Vec_IntSize(vArg0), Vec_IntSize(vArg1), vRes, fSigned, fCla, NULL, 0 );
309309
if ( nRange > Vec_IntSize(vRes) )
310310
Vec_IntFillExtra( vRes, nRange, fSigned ? Vec_IntEntryLast(vRes) : 0 );
311311
else

0 commit comments

Comments
 (0)