More for GNU/Linux emulation.

This commit is contained in:
NIIBE Yutaka
2017-09-28 16:44:54 +09:00
parent 86715dd4fe
commit 81b18f2db4
4 changed files with 17 additions and 5 deletions

View File

@@ -31,6 +31,10 @@ USE_USB = yes
USE_ADC = yes
USE_EVENTFLAG = yes
ifneq ($(EMULATION),)
DEFS += -DBN256_C_IMPLEMENTATION
endif
ifneq ($(ENABLE_DEBUG),)
CSRC += debug.c
endif

View File

@@ -42,9 +42,11 @@
/*
* a = 0, b = 7
*/
#if 0
static const bn256 coefficient_a[1] = {
{{ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }}
};
#endif
static const bn256 coefficient_b[1] = {
{{ 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }}