]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/performance_test.c
grøstl, a first impression
[avr-crypto-lib.git] / test_src / performance_test.c
index 04a26bd0f34154404fe0efb42d900ca9880d2322..e371a5fc1c7951c0988a1bb5b211e5b48ae983d5 100644 (file)
@@ -1,6 +1,6 @@
 /* performance_test.c */
 /*
-    This file is part of the Crypto-avr-lib/microcrypt-lib.
+    This file is part of the AVR-Crypto-Lib.
     Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
@@ -51,13 +51,13 @@ ISR(TIMER1_OVF_vect){
 }
 
 void calibrateTimer(void){
+       volatile uint8_t i;
        startTimer(1);
        stopTimer();
        const_overhead = TCNT1;
        startTimer(1);
        TCNT1=0xFFFE;
-       ; ; ; ;
-//     asm volatile("NOP\n"::); asm volatile("NOP\n"::);
+       i++;
        stopTimer();
        int_overhead = TCNT1;
 }