]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/performance_test.c
global style change (now * is attached to identifier not to type)
[avr-crypto-lib.git] / test_src / performance_test.c
index de718bc54f63de6f42696de35f46ec751f373295..b3fff709ca54b3cc0d006063708bbafd9ff5a083 100644 (file)
@@ -67,8 +67,7 @@ void startTimer(uint8_t granularity){
        TCNT1  = 0;
        ovfcounter = 0;
        TCCR1A = 0x00;
-       TIMSK &= 0xC3;
-       TIMSK |= _BV(TOIE1); /* enable TOIE1 */
+       TIMSK  = _BV(TOIE1); /* enable TOIE1 */
        TCCR1B = granularity & 0x7;     /* start timer */
 }
 
@@ -81,7 +80,7 @@ uint64_t stopTimer(void){
        return ret;
 }
 
-void getOverhead(uint16_t* constoh, uint16_t* intoh){
+void getOverhead(uint16_t *constoh, uint16_t *intoh){
        *constoh = const_overhead;
        *intoh   = int_overhead;
 }