X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=memxor.S;h=a32058bfc4c3c93d22abd82e23f83ae30d4e56e9;hb=02ac3b653f3a11f284cc1a0cb0e983575f2f431b;hp=b89fccd3a3f392f3b5bac425f8addee57d2979b6;hpb=71a4c5f0a397c8a34211ca269356198a0e91da17;p=avr-crypto-lib.git diff --git a/memxor.S b/memxor.S index b89fccd..a32058b 100644 --- a/memxor.S +++ b/memxor.S @@ -1,6 +1,6 @@ /* memxor.S */ /* - 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 @@ -17,15 +17,15 @@ along with this program. If not, see . */ -/* +/* * File: memxor.S * Author: Daniel Otte * Date: 2008-08-07 * License: GPLv3 or later * Description: memxor, XORing one block into another - * + * */ - + /* * void memxor(void* dest, const void* src, uint16_t n); */ @@ -39,9 +39,7 @@ memxor: movw r30, r24 movw r26, r22 movw r24, r20 - tst r24 - brne 1f - tst r25 + adiw r24, 0 breq 2f 1: ld r20, X+ @@ -52,17 +50,17 @@ memxor: brne 1b 2: ret - - - - - - - - - - - - - + + + + + + + + + + + + +