-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format C and C++ files with pre-commit hooks including clang-format
- Loading branch information
Showing
59 changed files
with
61,026 additions
and
74,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include "benchmark/benchmark.h" | ||
|
||
#include "phevaluator/card_sampler.h" | ||
#include "phevaluator/phevaluator.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
c_example | ||
cpp_example | ||
plo4_example | ||
plo5_example | ||
plo6_example | ||
omaha_example | ||
c_example cpp_example plo4_example plo5_example plo6_example omaha_example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,67 @@ | ||
CC=gcc | ||
CXX=g++ | ||
TOPDIR=.. | ||
INCLUDE=${TOPDIR}/include | ||
CFLAGS+=-std=c99 | ||
CXXFLAG+=-std=c++17 | ||
CC = gcc CXX = g++ TOPDIR =..INCLUDE = ${TOPDIR} / include CFLAGS += -std = | ||
c99 CXXFLAG += -std = | ||
c++ 17 | ||
|
||
all: c_example cpp_example plo4_example omaha_example plo5_example plo6_example | ||
all | ||
: c_example cpp_example plo4_example omaha_example plo5_example plo6_example | ||
|
||
c_example: c_example.c ../libpheval.a | ||
${CC} ${CFLAGS} -I${INCLUDE} $^ -o $@ | ||
c_example | ||
: c_example.c../ libpheval.a ${CC} ${CFLAGS} - I${INCLUDE} $ ^ | ||
-o $ @ | ||
|
||
cpp_example: cpp_example.cc ../libpheval.a | ||
${CXX} ${CFLAGS} ${CXXFLAG} -I${INCLUDE} $^ -o $@ | ||
cpp_example | ||
: cpp_example.cc../ libpheval.a ${CXX} ${CFLAGS} ${CXXFLAG} - | ||
I${INCLUDE} $ ^ | ||
-o $ @ | ||
|
||
plo4_example: plo4_example.cc ../libphevalplo4.a | ||
${CXX} ${CFLAGS} ${CXXFLAG} -I${INCLUDE} $^ -o $@ | ||
plo4_example | ||
: plo4_example.cc../ libphevalplo4.a ${CXX} ${CFLAGS} ${CXXFLAG} - | ||
I${INCLUDE} $ ^ | ||
-o $ @ | ||
|
||
omaha_example: omaha_example.cc ../libphevalplo4.a | ||
${CXX} ${CFLAGS} ${CXXFLAG} -I${INCLUDE} $^ -o $@ | ||
omaha_example | ||
: omaha_example.cc../ libphevalplo4.a ${CXX} ${CFLAGS} ${CXXFLAG} - | ||
I${INCLUDE} $ ^ | ||
-o $ @ | ||
|
||
plo5_example: plo5_example.cc ../libphevalplo5.a | ||
${CXX} ${CFLAGS} ${CXXFLAG} -I${INCLUDE} $^ -o $@ | ||
plo5_example | ||
: plo5_example.cc../ libphevalplo5.a ${CXX} ${CFLAGS} ${CXXFLAG} - | ||
I${INCLUDE} $ ^ | ||
-o $ @ | ||
|
||
plo6_example: plo6_example.cc ../libphevalplo6.a | ||
${CXX} ${CFLAGS} ${CXXFLAG} -I${INCLUDE} $^ -o $@ | ||
plo6_example | ||
: plo6_example.cc../ libphevalplo6.a ${CXX} ${CFLAGS} ${CXXFLAG} - | ||
I${INCLUDE} $ ^ | ||
-o $ @ | ||
|
||
../libpheval.a: | ||
$(MAKE) -C ../; | ||
../ | ||
libpheval.a | ||
: $(MAKE) - C../ | ||
; | ||
|
||
../libphevalplo4.a: | ||
$(MAKE) -C ../ libphevalplo4.a | ||
../ libphevalplo4.a : $(MAKE) - | ||
C../ | ||
libphevalplo4 | ||
.a | ||
|
||
../libphevalplo5.a: | ||
$(MAKE) -C ../ libphevalplo5.a | ||
../ | ||
libphevalplo5.a : $(MAKE) - | ||
C../ | ||
libphevalplo5 | ||
.a | ||
|
||
../libphevalplo6.a: | ||
$(MAKE) -C ../ libphevalplo6.a | ||
../ | ||
libphevalplo6.a : $(MAKE) - | ||
C../ libphevalplo6.a | ||
|
||
%.o: %.cc | ||
${CXX} -c ${CXXFLAG} -I${INCLUDE} $< -o $@ | ||
%.o : %.cc ${CXX} - | ||
c ${CXXFLAG} - I${INCLUDE} $ < | ||
-o $ @ | ||
|
||
%.o: %.c | ||
${CC} -c ${CFLAGS} -I${INCLUDE} $< -o $@ | ||
%.o : %.c ${CC} - | ||
c ${CFLAGS} - I${INCLUDE} $ < | ||
-o $ @ | ||
|
||
clean: | ||
rm -f *.o c_example cpp_example plo4_example omaha_example plo5_example plo6_example | ||
clean : rm | ||
- f *.o c_example cpp_example plo4_example omaha_example plo5_example | ||
plo6_example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.