Skip to content

Commit 6aba700

Browse files
committed
upstream: sync support for systems that lack __builtin_popcount() from
portable unused on OpenBSD (nothing sets MISSING_BUILTIN_POPCOUNT), but it makes syncing much easier. OpenBSD-Commit-ID: 496446300d82615b24f83eca886b8fabdbee445b
1 parent 84347d6 commit 6aba700

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libcrux_mlkem768_sha3.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD$ */
1+
/* $OpenBSD: libcrux_mlkem768_sha3.h,v 1.4 2025/11/13 05:13:06 djm Exp $ */
22

33
/* Extracted from libcrux revision 026a87ab6d88ad3626b9fbbf3710d1e0483c1849 */
44

@@ -95,6 +95,7 @@ __builtin_popcount(unsigned int num)
9595
return v[num & 0xf] + v[(num >> 4) & 0xf];
9696
}
9797
#endif
98+
9899
/* from libcrux/libcrux-ml-kem/extracts/c_header_only/generated/eurydice_glue.h */
99100
#pragma once
100101

mlkem768.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# $OpenBSD: mlkem768.sh,v 1.4 2025/11/13 04:56:23 djm Exp $
2+
# $OpenBSD: mlkem768.sh,v 1.5 2025/11/13 05:13:06 djm Exp $
33
# Placed in the Public Domain.
44
#
55

@@ -113,6 +113,7 @@ __builtin_popcount(unsigned int num)
113113
return v[num & 0xf] + v[(num >> 4) & 0xf];
114114
}
115115
#endif
116+
116117
_EOF
117118

118119
for i in $FILES; do

0 commit comments

Comments
 (0)