Skip to content

Commit c8b98c9

Browse files
committed
gh-148200: sync HACL to the updated upstream
1 parent 5bba02f commit c8b98c9

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

Misc/sbom.spdx.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_hacl/libintvector.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,18 @@ vector128 Lib_IntVector_Intrinsics_vec128_xor(vector128 x0, vector128 x1) {
802802
#if defined(HACL_CAN_COMPILE_VEC128)
803803

804804
#include <altivec.h>
805+
806+
/* GCC's AltiVec extension hijacks 'bool' as '__vector __bool int'.
807+
Restore C99/C11 scalar bool for HACL* code. */
808+
#if defined(__GNUC__) && !defined(__clang__)
809+
#undef bool
810+
#define bool _Bool
811+
#undef true
812+
#define true 1
813+
#undef false
814+
#define false 0
815+
#endif
816+
805817
#include <string.h> // for memcpy
806818
#include <stdint.h>
807819

Modules/_hacl/refresh.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222

2323
# Update this when updating to a new version after verifying that the changes
2424
# the update brings in are good.
25-
expected_hacl_star_rev=8ba599b2f6c9701b3dc961db895b0856a2210f76
25+
expected_hacl_star_rev=504c2987452f87fe44bce9b9f12e19d6e051761f
2626

2727
hacl_dir="$(realpath "$1")"
2828
cd "$(dirname "$0")"

0 commit comments

Comments
 (0)