Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Include/cpython/sentinelobject.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* Sentinel object interface */

#ifndef Py_LIMITED_API
#ifndef Py_SENTINELOBJECT_H
#define Py_SENTINELOBJECT_H
#ifndef _Py_SENTINELOBJECT_H
#define _Py_SENTINELOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -18,5 +18,5 @@ PyAPI_FUNC(PyObject *) PySentinel_New(
#ifdef __cplusplus
}
#endif
#endif /* !Py_SENTINELOBJECT_H */
#endif /* !_Py_SENTINELOBJECT_H */
#endif /* !Py_LIMITED_API */
2 changes: 1 addition & 1 deletion Include/cpython/sliceobject.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef Py_CPYTHON_SLICEOBJECT_H
#ifndef _Py_CPYTHON_SLICEOBJECT_H
# error "this header file must not be included directly"
#endif

Expand Down
2 changes: 1 addition & 1 deletion Include/cpython/structseq.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef Py_CPYTHON_STRUCTSEQ_H
#ifndef _Py_CPYTHON_STRUCTSEQ_H
# error "this header file must not be included directly"
#endif

Expand Down
2 changes: 1 addition & 1 deletion Include/internal/pycore_jit_unwind.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#if defined(_Py_JIT) && defined(__linux__) && defined(__ELF__)
# define PY_HAVE_JIT_GDB_UNWIND
# if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \
defined(HAVE_LIBGCC_EH_FRAME_REGISTRATION)
defined(_Py_HAVE_LIBGCC_EH_FRAME_REGISTRATION)
# define PY_HAVE_JIT_GNU_BACKTRACE_UNWIND
# endif
#endif
Expand Down
4 changes: 2 additions & 2 deletions Include/internal/pycore_mmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ extern "C" {

#include "pycore_pystate.h"

#if defined(HAVE_PR_SET_VMA_ANON_NAME) && defined(__linux__)
#if defined(_Py_HAVE_PR_SET_VMA_ANON_NAME) && defined(__linux__)
# include <linux/prctl.h>
# include <sys/prctl.h>
#endif

#if defined(HAVE_PR_SET_VMA_ANON_NAME) && defined(__linux__)
#if defined(_Py_HAVE_PR_SET_VMA_ANON_NAME) && defined(__linux__)
static inline int
_PyAnnotateMemoryMap(void *addr, size_t size, const char *name)
{
Expand Down
4 changes: 2 additions & 2 deletions Include/sliceobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ PyAPI_FUNC(Py_ssize_t) PySlice_AdjustIndices(Py_ssize_t length,
#endif

#ifndef Py_LIMITED_API
# define Py_CPYTHON_SLICEOBJECT_H
# define _Py_CPYTHON_SLICEOBJECT_H
# include "cpython/sliceobject.h"
# undef Py_CPYTHON_SLICEOBJECT_H
# undef _Py_CPYTHON_SLICEOBJECT_H
#endif

#ifdef __cplusplus
Expand Down
4 changes: 2 additions & 2 deletions Include/structseq.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ PyAPI_FUNC(void) PyStructSequence_SetItem(PyObject*, Py_ssize_t, PyObject*);
PyAPI_FUNC(PyObject*) PyStructSequence_GetItem(PyObject*, Py_ssize_t);

#ifndef Py_LIMITED_API
# define Py_CPYTHON_STRUCTSEQ_H
# define _Py_CPYTHON_STRUCTSEQ_H
# include "cpython/structseq.h"
# undef Py_CPYTHON_STRUCTSEQ_H
# undef _Py_CPYTHON_STRUCTSEQ_H
#endif

#ifdef __cplusplus
Expand Down
6 changes: 3 additions & 3 deletions Python/pystrhex.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _Py_hexlify_scalar(const unsigned char *src, Py_UCS1 *dst, Py_ssize_t len)
adds a ton of complication. Who ever really hexes huge data?
The 16-64 byte boosts align nicely with md5 - sha512 hexdigests.
*/
#ifdef HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR
#ifdef _Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR

/* 128-bit vector of 16 unsigned bytes */
typedef unsigned char v16u8 __attribute__((vector_size(16)));
Expand Down Expand Up @@ -110,7 +110,7 @@ _Py_hexlify_simd(const unsigned char *src, Py_UCS1 *dst, Py_ssize_t len)
_Py_hexlify_scalar(src + i, dst, len - i);
}

#endif /* HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR */
#endif /* _Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR */

static PyObject *
_Py_strhex_impl(const char* argbuf, Py_ssize_t arglen,
Expand Down Expand Up @@ -191,7 +191,7 @@ _Py_strhex_impl(const char* argbuf, Py_ssize_t arglen,
unsigned char c;

if (bytes_per_sep_group == 0) {
#ifdef HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR
#ifdef _Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR
if (arglen >= 16) {
_Py_hexlify_simd((const unsigned char *)argbuf, retbuf, arglen);
}
Expand Down
6 changes: 3 additions & 3 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3863,7 +3863,7 @@ __deregister_frame(0);
[ac_cv_have_libgcc_eh_frame_registration=no])
])
AS_VAR_IF([ac_cv_have_libgcc_eh_frame_registration], [yes], [
AC_DEFINE([HAVE_LIBGCC_EH_FRAME_REGISTRATION], [1],
AC_DEFINE([_Py_HAVE_LIBGCC_EH_FRAME_REGISTRATION], [1],
[Define to 1 if libgcc __register_frame and __deregister_frame are linkable.])
])

Expand Down Expand Up @@ -5163,7 +5163,7 @@ AC_LINK_IFELSE([
])

AS_VAR_IF([ac_cv_efficient_builtin_shufflevector], [yes], [
AC_DEFINE([HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR], [1],
AC_DEFINE([_Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR], [1],
[Define if compiler supports __builtin_shufflevector with 128-bit
vectors AND the target architecture has native SIMD (not just API
availability)])
Expand Down Expand Up @@ -5788,7 +5788,7 @@ AC_CHECK_DECLS([UT_NAMESIZE],
# musl libc redefines struct prctl_mm_map and conflicts with linux/prctl.h
AS_IF([test "$ac_cv_libc" != musl], [
AC_CHECK_DECLS([PR_SET_VMA_ANON_NAME],
[AC_DEFINE([HAVE_PR_SET_VMA_ANON_NAME], [1],
[AC_DEFINE([_Py_HAVE_PR_SET_VMA_ANON_NAME], [1],
[Define if you have the 'PR_SET_VMA_ANON_NAME' constant.])],
[],
[@%:@include <linux/prctl.h>
Expand Down
22 changes: 11 additions & 11 deletions pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,6 @@
/* Define to 1 if you have the <editline/readline.h> header file. */
#undef HAVE_EDITLINE_READLINE_H

/* Define if compiler supports __builtin_shufflevector with 128-bit vectors
AND the target architecture has native SIMD (not just API availability) */
#undef HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR

/* Define to 1 if you have the <endian.h> header file. */
#undef HAVE_ENDIAN_H

Expand Down Expand Up @@ -701,10 +697,6 @@
/* Define to 1 if you have the 'dld' library (-ldld). */
#undef HAVE_LIBDLD

/* Define to 1 if libgcc __register_frame and __deregister_frame are linkable.
*/
#undef HAVE_LIBGCC_EH_FRAME_REGISTRATION

/* Define to 1 if you have the 'ieee' library (-lieee). */
#undef HAVE_LIBIEEE

Expand Down Expand Up @@ -1007,9 +999,6 @@
/* Define if your compiler supports function prototype */
#undef HAVE_PROTOTYPES

/* Define if you have the 'PR_SET_VMA_ANON_NAME' constant. */
#undef HAVE_PR_SET_VMA_ANON_NAME

/* Define to 1 if you have the 'pthread_condattr_setclock' function. */
#undef HAVE_PTHREAD_CONDATTR_SETCLOCK

Expand Down Expand Up @@ -2067,6 +2056,17 @@
/* HACL* library can compile SIMD256 implementations */
#undef _Py_HACL_CAN_COMPILE_VEC256

/* Define if compiler supports __builtin_shufflevector with 128-bit vectors
AND the target architecture has native SIMD (not just API availability) */
#undef _Py_HAVE_EFFICIENT_BUILTIN_SHUFFLEVECTOR

/* Define to 1 if libgcc __register_frame and __deregister_frame are linkable.
*/
#undef _Py_HAVE_LIBGCC_EH_FRAME_REGISTRATION

/* Define if you have the 'PR_SET_VMA_ANON_NAME' constant. */
#undef _Py_HAVE_PR_SET_VMA_ANON_NAME

/* Define to 1 if the machine stack grows down (default); 0 if it grows up. */
#undef _Py_STACK_GROWS_DOWN

Expand Down
Loading