-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #649 from pq-code-package/underscore_define
Remove (almost) all macros with leading underscore
- Loading branch information
Showing
14 changed files
with
942 additions
and
938 deletions.
There are no files selected for viewing
1,684 changes: 837 additions & 847 deletions
1,684
examples/monolithic_build/mlkem_native_monobuild.c
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arm Cortex-A76 (Raspberry Pi 5) benchmarks
ML-KEM-512 keypair
28989
cycles28989
cycles1
ML-KEM-512 encaps
35400
cycles35401
cycles1.00
ML-KEM-512 decaps
45899
cycles45897
cycles1.00
ML-KEM-768 keypair
49365
cycles49368
cycles1.00
ML-KEM-768 encaps
55559
cycles55564
cycles1.00
ML-KEM-768 decaps
70311
cycles70316
cycles1.00
ML-KEM-1024 keypair
71983
cycles71986
cycles1.00
ML-KEM-1024 encaps
80734
cycles80738
cycles1.00
ML-KEM-1024 decaps
100605
cycles100607
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intel Xeon 4th gen (c7i)
ML-KEM-512 keypair
13536
cycles13516
cycles1.00
ML-KEM-512 encaps
17350
cycles17265
cycles1.00
ML-KEM-512 decaps
22914
cycles22991
cycles1.00
ML-KEM-768 keypair
22587
cycles22496
cycles1.00
ML-KEM-768 encaps
24593
cycles24483
cycles1.00
ML-KEM-768 decaps
32704
cycles32379
cycles1.01
ML-KEM-1024 keypair
31319
cycles31412
cycles1.00
ML-KEM-1024 encaps
34804
cycles34977
cycles1.00
ML-KEM-1024 decaps
45603
cycles45925
cycles0.99
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intel Xeon 3rd gen (c6i)
ML-KEM-512 keypair
20359
cycles20364
cycles1.00
ML-KEM-512 encaps
26943
cycles26954
cycles1.00
ML-KEM-512 decaps
35740
cycles36027
cycles0.99
ML-KEM-768 keypair
34866
cycles34937
cycles1.00
ML-KEM-768 encaps
38182
cycles38228
cycles1.00
ML-KEM-768 decaps
50957
cycles51005
cycles1.00
ML-KEM-1024 keypair
47931
cycles47942
cycles1.00
ML-KEM-1024 encaps
54104
cycles54107
cycles1.00
ML-KEM-1024 decaps
71634
cycles71587
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intel Xeon 4th gen (c7i) (no-opt)
ML-KEM-512 keypair
35009
cycles35019
cycles1.00
ML-KEM-512 encaps
46100
cycles46103
cycles1.00
ML-KEM-512 decaps
58759
cycles58765
cycles1.00
ML-KEM-768 keypair
58967
cycles58894
cycles1.00
ML-KEM-768 encaps
70893
cycles70998
cycles1.00
ML-KEM-768 decaps
88489
cycles88632
cycles1.00
ML-KEM-1024 keypair
87102
cycles86960
cycles1.00
ML-KEM-1024 encaps
104283
cycles104217
cycles1.00
ML-KEM-1024 decaps
127044
cycles126963
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graviton4
ML-KEM-512 keypair
18114
cycles18115
cycles1.00
ML-KEM-512 encaps
22178
cycles22176
cycles1.00
ML-KEM-512 decaps
28840
cycles28838
cycles1.00
ML-KEM-768 keypair
30568
cycles30559
cycles1.00
ML-KEM-768 encaps
33632
cycles33636
cycles1.00
ML-KEM-768 decaps
43156
cycles43156
cycles1
ML-KEM-1024 keypair
44163
cycles44166
cycles1.00
ML-KEM-1024 encaps
49647
cycles49650
cycles1.00
ML-KEM-1024 decaps
62645
cycles62646
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AMD EPYC 4th gen (c7a)
ML-KEM-512 keypair
14915
cycles14905
cycles1.00
ML-KEM-512 encaps
19661
cycles19648
cycles1.00
ML-KEM-512 decaps
26307
cycles26290
cycles1.00
ML-KEM-768 keypair
25621
cycles25592
cycles1.00
ML-KEM-768 encaps
28168
cycles28066
cycles1.00
ML-KEM-768 decaps
37849
cycles37834
cycles1.00
ML-KEM-1024 keypair
35337
cycles35661
cycles0.99
ML-KEM-1024 encaps
39987
cycles41015
cycles0.97
ML-KEM-1024 decaps
53509
cycles54439
cycles0.98
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intel Xeon 3rd gen (c6i) (no-opt)
ML-KEM-512 keypair
56537
cycles56618
cycles1.00
ML-KEM-512 encaps
69488
cycles69552
cycles1.00
ML-KEM-512 decaps
91292
cycles91395
cycles1.00
ML-KEM-768 keypair
91859
cycles91968
cycles1.00
ML-KEM-768 encaps
107740
cycles107912
cycles1.00
ML-KEM-768 decaps
136291
cycles136510
cycles1.00
ML-KEM-1024 keypair
134829
cycles134672
cycles1.00
ML-KEM-1024 encaps
155130
cycles155266
cycles1.00
ML-KEM-1024 decaps
191483
cycles191625
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graviton3
ML-KEM-512 keypair
18961
cycles18960
cycles1.00
ML-KEM-512 encaps
23575
cycles23575
cycles1
ML-KEM-512 decaps
30662
cycles30660
cycles1.00
ML-KEM-768 keypair
32311
cycles32311
cycles1
ML-KEM-768 encaps
35892
cycles35895
cycles1.00
ML-KEM-768 decaps
46032
cycles46029
cycles1.00
ML-KEM-1024 keypair
46635
cycles46638
cycles1.00
ML-KEM-1024 encaps
52462
cycles52462
cycles1
ML-KEM-1024 decaps
66271
cycles66270
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graviton2
ML-KEM-512 keypair
28986
cycles28988
cycles1.00
ML-KEM-512 encaps
35424
cycles35426
cycles1.00
ML-KEM-512 decaps
45886
cycles45886
cycles1
ML-KEM-768 keypair
49379
cycles49376
cycles1.00
ML-KEM-768 encaps
55562
cycles55564
cycles1.00
ML-KEM-768 decaps
70312
cycles70311
cycles1.00
ML-KEM-1024 keypair
71971
cycles71971
cycles1
ML-KEM-1024 encaps
80771
cycles80772
cycles1.00
ML-KEM-1024 decaps
100637
cycles100634
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graviton4 (no-opt)
ML-KEM-512 keypair
42065
cycles42047
cycles1.00
ML-KEM-512 encaps
50179
cycles50180
cycles1.00
ML-KEM-512 decaps
66087
cycles66087
cycles1
ML-KEM-768 keypair
69061
cycles69056
cycles1.00
ML-KEM-768 encaps
79781
cycles79779
cycles1.00
ML-KEM-768 decaps
101036
cycles101038
cycles1.00
ML-KEM-1024 keypair
102185
cycles102180
cycles1.00
ML-KEM-1024 encaps
117165
cycles117168
cycles1.00
ML-KEM-1024 decaps
143740
cycles143729
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arm Cortex-A55 (Snapdragon 888) benchmarks
ML-KEM-512 keypair
58342
cycles58331
cycles1.00
ML-KEM-512 encaps
65807
cycles65787
cycles1.00
ML-KEM-512 decaps
84564
cycles84594
cycles1.00
ML-KEM-768 keypair
99001
cycles98943
cycles1.00
ML-KEM-768 encaps
110422
cycles110472
cycles1.00
ML-KEM-768 decaps
137103
cycles136982
cycles1.00
ML-KEM-1024 keypair
150105
cycles150114
cycles1.00
ML-KEM-1024 encaps
166785
cycles166793
cycles1.00
ML-KEM-1024 decaps
202940
cycles203018
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AMD EPYC 4th gen (c7a) (no-opt)
ML-KEM-512 keypair
45754
cycles45740
cycles1.00
ML-KEM-512 encaps
56879
cycles56866
cycles1.00
ML-KEM-512 decaps
76277
cycles76256
cycles1.00
ML-KEM-768 keypair
74526
cycles74471
cycles1.00
ML-KEM-768 encaps
88629
cycles88553
cycles1.00
ML-KEM-768 decaps
114447
cycles114371
cycles1.00
ML-KEM-1024 keypair
109612
cycles109371
cycles1.00
ML-KEM-1024 encaps
127275
cycles127260
cycles1.00
ML-KEM-1024 decaps
159939
cycles160053
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graviton3 (no-opt)
ML-KEM-512 keypair
45404
cycles45399
cycles1.00
ML-KEM-512 encaps
54334
cycles54333
cycles1.00
ML-KEM-512 decaps
71386
cycles71378
cycles1.00
ML-KEM-768 keypair
74870
cycles74874
cycles1.00
ML-KEM-768 encaps
86172
cycles86175
cycles1.00
ML-KEM-768 decaps
108650
cycles108660
cycles1.00
ML-KEM-1024 keypair
111029
cycles111038
cycles1.00
ML-KEM-1024 encaps
125884
cycles125889
cycles1.00
ML-KEM-1024 decaps
154631
cycles154645
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AMD EPYC 3rd gen (c6a)
ML-KEM-512 keypair
18115
cycles18091
cycles1.00
ML-KEM-512 encaps
23033
cycles23009
cycles1.00
ML-KEM-512 decaps
30227
cycles30204
cycles1.00
ML-KEM-768 keypair
31129
cycles31086
cycles1.00
ML-KEM-768 encaps
33967
cycles33867
cycles1.00
ML-KEM-768 decaps
44535
cycles44598
cycles1.00
ML-KEM-1024 keypair
44700
cycles44686
cycles1.00
ML-KEM-1024 encaps
49959
cycles50000
cycles1.00
ML-KEM-1024 decaps
64485
cycles64386
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graviton2 (no-opt)
ML-KEM-512 keypair
71292
cycles71249
cycles1.00
ML-KEM-512 encaps
85129
cycles85132
cycles1.00
ML-KEM-512 decaps
112737
cycles112739
cycles1.00
ML-KEM-768 keypair
117333
cycles117635
cycles1.00
ML-KEM-768 encaps
135159
cycles135324
cycles1.00
ML-KEM-768 decaps
171918
cycles172043
cycles1.00
ML-KEM-1024 keypair
175319
cycles175209
cycles1.00
ML-KEM-1024 encaps
197354
cycles197292
cycles1.00
ML-KEM-1024 decaps
243560
cycles243480
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AMD EPYC 3rd gen (c6a) (no-opt)
ML-KEM-512 keypair
52393
cycles52306
cycles1.00
ML-KEM-512 encaps
65380
cycles65271
cycles1.00
ML-KEM-512 decaps
88204
cycles88087
cycles1.00
ML-KEM-768 keypair
85108
cycles85013
cycles1.00
ML-KEM-768 encaps
101659
cycles101563
cycles1.00
ML-KEM-768 decaps
132278
cycles132149
cycles1.00
ML-KEM-1024 keypair
124171
cycles123926
cycles1.00
ML-KEM-1024 encaps
146035
cycles145719
cycles1.00
ML-KEM-1024 decaps
183883
cycles183590
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bananapi bpi-f3 benchmarks
ML-KEM-512 keypair
334563
cycles334613
cycles1.00
ML-KEM-512 encaps
445827
cycles446029
cycles1.00
ML-KEM-512 decaps
594143
cycles594113
cycles1.00
ML-KEM-768 keypair
554947
cycles555012
cycles1.00
ML-KEM-768 encaps
697023
cycles697082
cycles1.00
ML-KEM-768 decaps
889449
cycles888816
cycles1.00
ML-KEM-1024 keypair
819543
cycles819644
cycles1.00
ML-KEM-1024 encaps
997493
cycles996775
cycles1.00
ML-KEM-1024 decaps
1228668
cycles1229877
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.
e626211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arm Cortex-A72 (Raspberry Pi 4) benchmarks
ML-KEM-512 keypair
51538
cycles51998
cycles0.99
ML-KEM-512 encaps
57868
cycles58446
cycles0.99
ML-KEM-512 decaps
74079
cycles75080
cycles0.99
ML-KEM-768 keypair
88992
cycles88019
cycles1.01
ML-KEM-768 encaps
97040
cycles96283
cycles1.01
ML-KEM-768 decaps
120517
cycles119311
cycles1.01
ML-KEM-1024 keypair
131278
cycles131192
cycles1.00
ML-KEM-1024 encaps
144147
cycles144404
cycles1.00
ML-KEM-1024 decaps
175473
cycles175644
cycles1.00
This comment was automatically generated by workflow using github-action-benchmark.