File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 8585#include "mlkem/src/native/x86_64/src/rej_uniform_asm.S"
8686#include "mlkem/src/native/x86_64/src/tomont.S"
8787#endif /* MLK_SYS_X86_64 */
88+ #if defined(MLK_SYS_PPC64LE)
89+ #include "mlkem/src/native/ppc64le/src/intt_ppc.S"
90+ #include "mlkem/src/native/ppc64le/src/ntt_ppc.S"
91+ #include "mlkem/src/native/ppc64le/src/poly_tomont.S"
92+ #include "mlkem/src/native/ppc64le/src/reduce.S"
93+ #endif /* MLK_SYS_PPC64LE */
8894#endif /* MLK_CONFIG_USE_NATIVE_BACKEND_ARITH */
8995
9096#if defined(MLK_CONFIG_USE_NATIVE_BACKEND_FIPS202)
Original file line number Diff line number Diff line change @@ -1220,6 +1220,10 @@ def x86_64(c):
12201220 return "/x86_64/" in c
12211221
12221222
1223+ def ppc64le (c ):
1224+ return "/ppc64le/" in c
1225+
1226+
12231227def native_fips202 (c ):
12241228 return native (c ) and fips202 (c )
12251229
@@ -1252,6 +1256,10 @@ def native_arith_x86_64(c):
12521256 return native_arith (c ) and x86_64 (c )
12531257
12541258
1259+ def native_arith_ppc64le (c ):
1260+ return native_arith (c ) and ppc64le (c )
1261+
1262+
12551263def native_arith_core (c ):
12561264 return (
12571265 native_arith (c ) and not native_arith_x86_64 (c ) and not native_arith_aarch64 (c )
@@ -1519,6 +1527,10 @@ def gen_monolithic_asm_file(dry_run=False):
15191527 for c in filter (native_arith_x86_64 , asm_sources ):
15201528 yield f'#include "{ c } "'
15211529 yield "#endif"
1530+ yield "#if defined(MLK_SYS_PPC64LE)"
1531+ for c in filter (native_arith_ppc64le , asm_sources ):
1532+ yield f'#include "{ c } "'
1533+ yield "#endif"
15221534 yield "#endif"
15231535 yield ""
15241536 yield "#if defined(MLK_CONFIG_USE_NATIVE_BACKEND_FIPS202)"
You can’t perform that action at this time.
0 commit comments