chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/asm-common.h, *.S: Add `INTFUNC' macro for internal subroutines.
[catacomb]
/
symm
/
rijndael-arm-crypto.S
diff --git
a/symm/rijndael-arm-crypto.S
b/symm/rijndael-arm-crypto.S
index 5ca516e331ba2975502c5808d1eaeb444d2aa3b6..4d7312d4d85144b01a643a1a0b3676353f395484 100644
(file)
--- a/
symm/rijndael-arm-crypto.S
+++ b/
symm/rijndael-arm-crypto.S
@@
-30,8
+30,8
@@
#include "config.h"
#include "asm-common.h"
#include "config.h"
#include "asm-common.h"
- .
globl
F(abort)
- .
globl
F(rijndael_rcon)
+ .
extern
F(abort)
+ .
extern
F(rijndael_rcon)
///--------------------------------------------------------------------------
/// Main code.
///--------------------------------------------------------------------------
/// Main code.
@@
-211,9
+211,12
@@
FUNC(rijndael_setup_arm_crypto)
// All done.
9: ldmfd sp!, {r4-r9, pc}
// All done.
9: ldmfd sp!, {r4-r9, pc}
-endswap_block:
+ENDFUNC
+
+INTFUNC(endswap_block)
// End-swap R2 words starting at R1. R1 is clobbered; R2 is not.
// It's OK to work in 16-byte chunks.
// End-swap R2 words starting at R1. R1 is clobbered; R2 is not.
// It's OK to work in 16-byte chunks.
+
mov r4, r2
0: vldmia r1, {d0, d1}
vrev32.8 q0, q0
mov r4, r2
0: vldmia r1, {d0, d1}
vrev32.8 q0, q0