Debian Codegraph @

crypto_kem/6688128pc/avx/transpose.h

raw
1 /*
2 This file is for matrix transposition
3 */
4
5 #ifndef TRANSPOSE_H
6 #define TRANSPOSE_H
7 #define transpose_64x128_sp_asm CRYPTO_SHARED_NAMESPACE(transpose_64x128_sp_asm)
8 #define transpose_64x256_sp_asm CRYPTO_SHARED_NAMESPACE(transpose_64x256_sp_asm)
9 #define transpose_64x64_asm CRYPTO_SHARED_NAMESPACE(transpose_64x64_asm)
10
11 #include "vec128.h"
12 #include "vec256.h"
13
14 extern void transpose_64x64_asm(uint64_t *);
15 extern void transpose_64x128_sp_asm(vec128 *);
16
17 /* input: in, a 64x64 matrix over GF(2) */
18 /* output: out, transpose of in */
19 static inline void transpose_64x64(uint64_t * in)
20 {
21 transpose_64x64_asm(in);
22 }
23
24 static inline void transpose_64x128_sp(vec128 *in)
25 {
26 transpose_64x128_sp_asm(in);
27 }
28
29 extern void transpose_64x256_sp_asm(vec256 *);
30
31 static inline void transpose_64x256_sp(vec256 *in)
32 {
33 transpose_64x256_sp_asm(in);
34 }
35
36 #endif
37
38