1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Crypto performance figures for Arduino Due

This commit is contained in:
Rhys Weatherley
2015-04-19 15:26:27 +10:00
parent b5d6c8de33
commit c0470980de
2 changed files with 52 additions and 0 deletions

View File

@@ -28,9 +28,16 @@
// Define exactly one of these to 1 to set the size of the basic limb type.
// 16-bit limbs seem to give the best performance on 8-bit AVR micros.
#if defined(__AVR__)
#define BIGNUMBER_LIMB_8BIT 0
#define BIGNUMBER_LIMB_16BIT 1
#define BIGNUMBER_LIMB_32BIT 0
#else
// On all other platforms, assume 32-bit is best (e.g. ARM).
#define BIGNUMBER_LIMB_8BIT 0
#define BIGNUMBER_LIMB_16BIT 0
#define BIGNUMBER_LIMB_32BIT 1
#endif
// Define the limb types to use on this platform.
#if BIGNUMBER_LIMB_8BIT