Skip to content

Commit

Permalink
crypto: cast6-avx: use ENTRY()/ENDPROC() for assembler functions
Browse files Browse the repository at this point in the history
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Jussi Kivilinna authored and Herbert Xu committed Jan 19, 2013
1 parent e17e209 commit 1985fec
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions arch/x86/crypto/cast6-avx-x86_64-asm_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*
*/

#include <linux/linkage.h>
#include "glue_helper-asm-avx.S"

.file "cast6-avx-x86_64-asm_64.S"
Expand Down Expand Up @@ -250,8 +251,6 @@
.text

.align 8
.type __cast6_enc_blk8,@function;

__cast6_enc_blk8:
/* input:
* %rdi: ctx, CTX
Expand Down Expand Up @@ -295,10 +294,9 @@ __cast6_enc_blk8:
outunpack_blocks(RA2, RB2, RC2, RD2, RTMP, RX, RKRF, RKM);

ret;
ENDPROC(__cast6_enc_blk8)

.align 8
.type __cast6_dec_blk8,@function;

__cast6_dec_blk8:
/* input:
* %rdi: ctx, CTX
Expand Down Expand Up @@ -341,12 +339,9 @@ __cast6_dec_blk8:
outunpack_blocks(RA2, RB2, RC2, RD2, RTMP, RX, RKRF, RKM);

ret;
ENDPROC(__cast6_dec_blk8)

.align 8
.global cast6_ecb_enc_8way
.type cast6_ecb_enc_8way,@function;

cast6_ecb_enc_8way:
ENTRY(cast6_ecb_enc_8way)
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand All @@ -362,12 +357,9 @@ cast6_ecb_enc_8way:
store_8way(%r11, RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2);

ret;
ENDPROC(cast6_ecb_enc_8way)

.align 8
.global cast6_ecb_dec_8way
.type cast6_ecb_dec_8way,@function;

cast6_ecb_dec_8way:
ENTRY(cast6_ecb_dec_8way)
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand All @@ -383,12 +375,9 @@ cast6_ecb_dec_8way:
store_8way(%r11, RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2);

ret;
ENDPROC(cast6_ecb_dec_8way)

.align 8
.global cast6_cbc_dec_8way
.type cast6_cbc_dec_8way,@function;

cast6_cbc_dec_8way:
ENTRY(cast6_cbc_dec_8way)
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand All @@ -409,12 +398,9 @@ cast6_cbc_dec_8way:
popq %r12;

ret;
ENDPROC(cast6_cbc_dec_8way)

.align 8
.global cast6_ctr_8way
.type cast6_ctr_8way,@function;

cast6_ctr_8way:
ENTRY(cast6_ctr_8way)
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand All @@ -437,3 +423,4 @@ cast6_ctr_8way:
popq %r12;

ret;
ENDPROC(cast6_ctr_8way)

0 comments on commit 1985fec

Please sign in to comment.