Skip to content

Commit

Permalink
x86_64 backend: Remove double header guard and unused macro
Browse files Browse the repository at this point in the history
Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
  • Loading branch information
hanno-becker committed Feb 6, 2025
1 parent b892137 commit 9a6b959
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions dev/x86_64/src/align.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,14 @@
* https://github.com/pq-crystals/kyber/blob/main/avx2/align.h
*/

#ifndef ALIGN_H
#define ALIGN_H

#include <immintrin.h>
#include <stdint.h>

#define ALIGNED_UINT8(N) \
union \
{ \
uint8_t coeffs[N]; \
__m256i vec[(N + 31) / 32]; \
}

#define ALIGNED_INT16(N) \
union \
{ \
int16_t coeffs[N]; \
__m256i vec[(N + 15) / 16]; \
}

#endif

#endif /* MLK_DEV_X86_64_SRC_ALIGN_H */
12 changes: 0 additions & 12 deletions mlkem/native/x86_64/src/align.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,14 @@
* https://github.com/pq-crystals/kyber/blob/main/avx2/align.h
*/

#ifndef ALIGN_H
#define ALIGN_H

#include <immintrin.h>
#include <stdint.h>

#define ALIGNED_UINT8(N) \
union \
{ \
uint8_t coeffs[N]; \
__m256i vec[(N + 31) / 32]; \
}

#define ALIGNED_INT16(N) \
union \
{ \
int16_t coeffs[N]; \
__m256i vec[(N + 15) / 16]; \
}

#endif

#endif /* MLK_NATIVE_X86_64_SRC_ALIGN_H */

0 comments on commit 9a6b959

Please sign in to comment.