diff options
Diffstat (limited to 'test/monniaux/bitsliced-aes')
-rw-r--r-- | test/monniaux/bitsliced-aes/Makefile | 23 | ||||
-rw-r--r-- | test/monniaux/bitsliced-aes/bs.c | 4 | ||||
-rw-r--r-- | test/monniaux/bitsliced-aes/make.proto | 4 |
3 files changed, 8 insertions, 23 deletions
diff --git a/test/monniaux/bitsliced-aes/Makefile b/test/monniaux/bitsliced-aes/Makefile deleted file mode 100644 index 6a0367e0..00000000 --- a/test/monniaux/bitsliced-aes/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -src = $(wildcard *.c) tests/tests.c - -include ../rules.mk - -all: test.gcc.k1c.out test.gcc.o1.k1c.out test.ccomp.k1c.out test.gcc.host.out test.ccomp.host.out - -test.gcc.o1.k1c: $(src:.c=.gcc.o1.k1c.o) ../clock.gcc.k1c.o - $(K1C_CC) $(K1C_CFLAGS_O1) -o $@ $+ - -test.gcc.k1c: $(src:.c=.gcc.k1c.o) ../clock.gcc.k1c.o - $(K1C_CC) $(K1C_CFLAGS) -o $@ $+ - -test.ccomp.k1c: $(src:.c=.ccomp.k1c.o) ../clock.gcc.k1c.o - $(K1C_CCOMP) $(K1C_CCOMPFLAGS) -o $@ $+ - -test.gcc.host: $(src:.c=.gcc.host.o) ../clock.gcc.host.o - $(CC) $(CFLAGS) -o $@ $+ - -test.ccomp.host: $(src:.c=.ccomp.host.o) ../clock.gcc.host.o - $(CCOMP) $(CCOMPFLAGS) -o $@ $+ - -clean: - rm -f *.o *.k1c *.host */*.o *.s */*.s *.out diff --git a/test/monniaux/bitsliced-aes/bs.c b/test/monniaux/bitsliced-aes/bs.c index 083a8fc5..3132e1d9 100644 --- a/test/monniaux/bitsliced-aes/bs.c +++ b/test/monniaux/bitsliced-aes/bs.c @@ -3,7 +3,11 @@ #include "bs.h" #include "../ternary.h" +/* TEMPORARY */ +#define TERNARY(x, v0, v1) ((x) ? (v0) : (v1)) +/* #define TERNARY(x, v0, v1) TERNARY64(x, v1, v0) +*/ #if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) ||\ defined(__amd64__) || defined(__amd32__)|| defined(__amd16__) diff --git a/test/monniaux/bitsliced-aes/make.proto b/test/monniaux/bitsliced-aes/make.proto new file mode 100644 index 00000000..8a9a1bff --- /dev/null +++ b/test/monniaux/bitsliced-aes/make.proto @@ -0,0 +1,4 @@ +sources: "$(wildcard *.c) tests/tests.c" +target: test +measures: [cycles] +name: bitsliced-aes |