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 85
85
#include "mlkem/src/native/x86_64/src/rej_uniform_asm.S"
86
86
#include "mlkem/src/native/x86_64/src/tomont.S"
87
87
#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 */
88
94
#endif /* MLK_CONFIG_USE_NATIVE_BACKEND_ARITH */
89
95
90
96
#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):
1220
1220
return "/x86_64/" in c
1221
1221
1222
1222
1223
+ def ppc64le (c ):
1224
+ return "/ppc64le/" in c
1225
+
1226
+
1223
1227
def native_fips202 (c ):
1224
1228
return native (c ) and fips202 (c )
1225
1229
@@ -1252,6 +1256,10 @@ def native_arith_x86_64(c):
1252
1256
return native_arith (c ) and x86_64 (c )
1253
1257
1254
1258
1259
+ def native_arith_ppc64le (c ):
1260
+ return native_arith (c ) and ppc64le (c )
1261
+
1262
+
1255
1263
def native_arith_core (c ):
1256
1264
return (
1257
1265
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):
1515
1523
for c in filter (native_arith_x86_64 , asm_sources ):
1516
1524
yield f'#include "{ c } "'
1517
1525
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"
1518
1530
yield "#endif"
1519
1531
yield ""
1520
1532
yield "#if defined(MLK_CONFIG_USE_NATIVE_BACKEND_FIPS202)"
You can’t perform that action at this time.
0 commit comments