File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 )
@@ -1515,6 +1523,10 @@ def gen_monolithic_asm_file(dry_run=False):
15151523 for c in filter (native_arith_x86_64 , asm_sources ):
15161524 yield f'#include "{ c } "'
15171525 yield "#endif"
1526+ yield "#if defined(MLK_SYS_PPC64LE)"
1527+ for c in filter (native_arith_ppc64le , asm_sources ):
1528+ yield f'#include "{ c } "'
1529+ yield "#endif"
15181530 yield "#endif"
15191531 yield ""
15201532 yield "#if defined(MLK_CONFIG_USE_NATIVE_BACKEND_FIPS202)"
You can’t perform that action at this time.
0 commit comments