mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
GH-99108: Make vectorized versions of Blake2 available on x86, too (#125244)
Accomplished by updating HACL* vendored code from hacl-star/hacl-star@a6a09496d9 to hacl-star/hacl-star@315a9e491d Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Zachary Ware <zach@python.org>
This commit is contained in:
parent
0d88b995a6
commit
528bbab96f
12 changed files with 619 additions and 359 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache 2.0 License. */
|
||||
Licensed under the Apache 2.0 and MIT Licenses. */
|
||||
|
||||
#ifndef __KRML_TARGET_H
|
||||
#define __KRML_TARGET_H
|
||||
|
|
@ -82,6 +82,8 @@
|
|||
# define KRML_NOINLINE __declspec(noinline)
|
||||
# elif defined (__GNUC__)
|
||||
# define KRML_NOINLINE __attribute__((noinline,unused))
|
||||
# elif defined (__SUNPRO_C)
|
||||
# define KRML_NOINLINE __attribute__((noinline))
|
||||
# else
|
||||
# define KRML_NOINLINE
|
||||
# warning "The KRML_NOINLINE macro is not defined for this toolchain!"
|
||||
|
|
@ -95,6 +97,8 @@
|
|||
# define KRML_MUSTINLINE inline __forceinline
|
||||
# elif defined (__GNUC__)
|
||||
# define KRML_MUSTINLINE inline __attribute__((always_inline))
|
||||
# elif defined (__SUNPRO_C)
|
||||
# define KRML_MUSTINLINE inline __attribute__((always_inline))
|
||||
# else
|
||||
# define KRML_MUSTINLINE inline
|
||||
# warning "The KRML_MUSTINLINE macro defaults to plain inline for this toolchain!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue