Clean up some header files.

This commit is contained in:
Ken MacKay
2015-10-12 21:51:39 -07:00
parent 1affc1b75c
commit 12d16b6b67
3 changed files with 17 additions and 0 deletions
+7
View File
@@ -1,3 +1,8 @@
/* Copyright 2015, Kenneth MacKay. Licensed under the BSD 2-clause license. */
#ifndef _UECC_ASM_AVR_H_
#define _UECC_ASM_AVR_H_
#if __AVR_HAVE_EIJMP_EICALL__
#define IJMP "eijmp \n\t"
#else
@@ -951,3 +956,5 @@ uECC_VLI_API void uECC_vli_square(uECC_word_t *result,
}
#define asm_square 1
#endif /* uECC_SQUARE_FUNC && !asm_square */
#endif /* _UECC_ASM_AVR_H_ */
+7
View File
@@ -1,3 +1,8 @@
/* Copyright 2015, Kenneth MacKay. Licensed under the BSD 2-clause license. */
#ifndef _UECC_ASM_AVR_MULT_SQUARE_H_
#define _UECC_ASM_AVR_MULT_SQUARE_H_
#define FAST_MULT_ASM_5 \
"adiw r30, 10 \n\t" \
"adiw r28, 10 \n\t" \
@@ -21177,3 +21182,5 @@
"st z+, r23 \n\t" \
"st z+, r28 \n\t" \
"eor r1, r1 \n\t"
#endif /* _UECC_ASM_AVR_MULT_SQUARE_H_ */
+3
View File
@@ -28,6 +28,9 @@ platform. */
#define uECC_OPTIMIZATION_LEVEL 2
#endif
/* uECC_SQUARE_FUNC - If enabled (defined as nonzero), this will cause a specific function to be
used for (scalar) squaring instead of the generic multiplication function. This can make things
faster somewhat faster, but increases the code size. */
#ifndef uECC_SQUARE_FUNC
#define uECC_SQUARE_FUNC 0
#endif