mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
fix cycles per byte format is cycles > 100
This commit is contained in:
@@ -85,7 +85,7 @@
|
|||||||
static word64 total_cycles;
|
static word64 total_cycles;
|
||||||
#define BEGIN_INTEL_CYCLES total_cycles = get_intel_cycles();
|
#define BEGIN_INTEL_CYCLES total_cycles = get_intel_cycles();
|
||||||
#define END_INTEL_CYCLES total_cycles = get_intel_cycles() - total_cycles;
|
#define END_INTEL_CYCLES total_cycles = get_intel_cycles() - total_cycles;
|
||||||
#define SHOW_INTEL_CYCLES printf(" Cycles per byte = %5.2f", \
|
#define SHOW_INTEL_CYCLES printf(" Cycles per byte = %6.2f", \
|
||||||
(float)total_cycles / (numBlocks*sizeof(plain)));
|
(float)total_cycles / (numBlocks*sizeof(plain)));
|
||||||
#else
|
#else
|
||||||
#define BEGIN_INTEL_CYCLES
|
#define BEGIN_INTEL_CYCLES
|
||||||
|
Reference in New Issue
Block a user