SILENT KILLERPanel

Current Path: > > opt > alt > python311 > include > > > python3.11 > internal


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python311/include///python3.11/internal

NameTypeSizeLast ModifiedActions
pycore_abstract.h File 611 bytes June 03 2025 18:38:25.
pycore_accu.h File 1126 bytes June 03 2025 18:38:25.
pycore_asdl.h File 3031 bytes June 03 2025 18:38:25.
pycore_ast.h File 29315 bytes June 03 2025 18:38:25.
pycore_ast_state.h File 6549 bytes June 03 2025 18:38:25.
pycore_atomic.h File 16979 bytes June 03 2025 18:38:25.
pycore_atomic_funcs.h File 2438 bytes June 03 2025 18:38:25.
pycore_bitutils.h File 6062 bytes June 03 2025 18:38:25.
pycore_blocks_output_buffer.h File 8688 bytes June 03 2025 18:38:25.
pycore_bytes_methods.h File 3384 bytes June 03 2025 18:38:25.
pycore_bytesobject.h File 1424 bytes June 03 2025 18:38:25.
pycore_call.h File 3475 bytes June 03 2025 18:38:25.
pycore_ceval.h File 4409 bytes June 03 2025 18:38:25.
pycore_code.h File 15930 bytes June 03 2025 18:38:25.
pycore_compile.h File 1045 bytes June 03 2025 18:38:25.
pycore_condvar.h File 2839 bytes June 03 2025 18:38:25.
pycore_context.h File 1239 bytes June 03 2025 18:38:25.
pycore_dict.h File 5684 bytes June 03 2025 18:38:25.
pycore_dtoa.h File 704 bytes June 03 2025 18:38:25.
pycore_emscripten_signal.h File 562 bytes June 03 2025 18:38:25.
pycore_exceptions.h File 842 bytes June 03 2025 18:38:25.
pycore_fileutils.h File 7403 bytes June 03 2025 18:38:25.
pycore_floatobject.h File 1307 bytes June 03 2025 18:38:25.
pycore_format.h File 480 bytes June 03 2025 18:38:25.
pycore_frame.h File 7567 bytes June 03 2025 18:38:25.
pycore_function.h File 413 bytes June 03 2025 18:38:25.
pycore_gc.h File 6895 bytes June 03 2025 18:38:25.
pycore_genobject.h File 1164 bytes June 03 2025 18:38:25.
pycore_getopt.h File 490 bytes June 03 2025 18:38:25.
pycore_gil.h File 1565 bytes June 03 2025 18:38:25.
pycore_global_objects.h File 1436 bytes June 03 2025 18:38:25.
pycore_global_strings.h File 12980 bytes June 03 2025 18:38:25.
pycore_hamt.h File 3696 bytes June 03 2025 18:38:25.
pycore_hashtable.h File 4197 bytes June 03 2025 18:38:25.
pycore_import.h File 743 bytes June 03 2025 18:38:25.
pycore_initconfig.h File 5800 bytes June 03 2025 18:38:25.
pycore_interp.h File 6671 bytes June 03 2025 18:38:25.
pycore_interpreteridobject.h File 562 bytes June 03 2025 18:38:25.
pycore_list.h File 1352 bytes June 03 2025 18:38:25.
pycore_long.h File 3516 bytes June 03 2025 18:38:25.
pycore_moduleobject.h File 1040 bytes June 03 2025 18:38:25.
pycore_namespace.h File 392 bytes June 03 2025 18:38:25.
pycore_object.h File 10037 bytes June 03 2025 18:38:25.
pycore_opcode.h File 18986 bytes June 03 2025 18:38:25.
pycore_parser.h File 626 bytes June 03 2025 18:38:25.
pycore_pathconfig.h File 606 bytes June 03 2025 18:38:25.
pycore_pyarena.h File 2733 bytes June 03 2025 18:38:25.
pycore_pyerrors.h File 2494 bytes June 03 2025 18:38:25.
pycore_pyhash.h File 206 bytes June 03 2025 18:38:25.
pycore_pylifecycle.h File 3507 bytes June 03 2025 18:38:25.
pycore_pymath.h File 9435 bytes June 03 2025 18:38:25.
pycore_pymem.h File 3708 bytes June 03 2025 18:38:25.
pycore_pystate.h File 4250 bytes June 03 2025 18:38:25.
pycore_runtime.h File 5988 bytes June 03 2025 18:38:25.
pycore_runtime_init.h File 49092 bytes June 03 2025 18:38:25.
pycore_signal.h File 937 bytes June 03 2025 18:38:25.
pycore_sliceobject.h File 336 bytes June 03 2025 18:38:25.
pycore_strhex.h File 937 bytes June 03 2025 18:38:25.
pycore_structseq.h File 580 bytes June 03 2025 18:38:25.
pycore_symtable.h File 5638 bytes June 03 2025 18:38:25.
pycore_sysmodule.h File 605 bytes June 03 2025 18:38:25.
pycore_traceback.h File 3501 bytes June 03 2025 18:38:25.
pycore_tuple.h File 2089 bytes June 03 2025 18:38:25.
pycore_typeobject.h File 1158 bytes June 03 2025 18:38:25.
pycore_ucnhash.h File 898 bytes June 03 2025 18:38:25.
pycore_unicodeobject.h File 1716 bytes June 03 2025 18:38:25.
pycore_unionobject.h File 678 bytes June 03 2025 18:38:25.
pycore_warnings.h File 740 bytes June 03 2025 18:38:25.

Reading File: //opt/alt/python311/include///python3.11/internal/pycore_bitutils.h

/* Bit and bytes utilities.

   Bytes swap functions, reverse order of bytes:

   - _Py_bswap16(uint16_t)
   - _Py_bswap32(uint32_t)
   - _Py_bswap64(uint64_t)
*/

#ifndef Py_INTERNAL_BITUTILS_H
#define Py_INTERNAL_BITUTILS_H
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

#if defined(__GNUC__) \
      && ((__GNUC__ >= 5) || (__GNUC__ == 4) && (__GNUC_MINOR__ >= 8))
   /* __builtin_bswap16() is available since GCC 4.8,
      __builtin_bswap32() is available since GCC 4.3,
      __builtin_bswap64() is available since GCC 4.3. */
#  define _PY_HAVE_BUILTIN_BSWAP
#endif

#ifdef _MSC_VER
   /* Get _byteswap_ushort(), _byteswap_ulong(), _byteswap_uint64() */
#  include <intrin.h>
#endif

static inline uint16_t
_Py_bswap16(uint16_t word)
{
#if defined(_PY_HAVE_BUILTIN_BSWAP) || _Py__has_builtin(__builtin_bswap16)
    return __builtin_bswap16(word);
#elif defined(_MSC_VER)
    Py_BUILD_ASSERT(sizeof(word) == sizeof(unsigned short));
    return _byteswap_ushort(word);
#else
    // Portable implementation which doesn't rely on circular bit shift
    return ( ((word & UINT16_C(0x00FF)) << 8)
           | ((word & UINT16_C(0xFF00)) >> 8));
#endif
}

static inline uint32_t
_Py_bswap32(uint32_t word)
{
#if defined(_PY_HAVE_BUILTIN_BSWAP) || _Py__has_builtin(__builtin_bswap32)
    return __builtin_bswap32(word);
#elif defined(_MSC_VER)
    Py_BUILD_ASSERT(sizeof(word) == sizeof(unsigned long));
    return _byteswap_ulong(word);
#else
    // Portable implementation which doesn't rely on circular bit shift
    return ( ((word & UINT32_C(0x000000FF)) << 24)
           | ((word & UINT32_C(0x0000FF00)) <<  8)
           | ((word & UINT32_C(0x00FF0000)) >>  8)
           | ((word & UINT32_C(0xFF000000)) >> 24));
#endif
}

static inline uint64_t
_Py_bswap64(uint64_t word)
{
#if defined(_PY_HAVE_BUILTIN_BSWAP) || _Py__has_builtin(__builtin_bswap64)
    return __builtin_bswap64(word);
#elif defined(_MSC_VER)
    return _byteswap_uint64(word);
#else
    // Portable implementation which doesn't rely on circular bit shift
    return ( ((word & UINT64_C(0x00000000000000FF)) << 56)
           | ((word & UINT64_C(0x000000000000FF00)) << 40)
           | ((word & UINT64_C(0x0000000000FF0000)) << 24)
           | ((word & UINT64_C(0x00000000FF000000)) <<  8)
           | ((word & UINT64_C(0x000000FF00000000)) >>  8)
           | ((word & UINT64_C(0x0000FF0000000000)) >> 24)
           | ((word & UINT64_C(0x00FF000000000000)) >> 40)
           | ((word & UINT64_C(0xFF00000000000000)) >> 56));
#endif
}


// Population count: count the number of 1's in 'x'
// (number of bits set to 1), also known as the hamming weight.
//
// Implementation note. CPUID is not used, to test if x86 POPCNT instruction
// can be used, to keep the implementation simple. For example, Visual Studio
// __popcnt() is not used this reason. The clang and GCC builtin function can
// use the x86 POPCNT instruction if the target architecture has SSE4a or
// newer.
static inline int
_Py_popcount32(uint32_t x)
{
#if (defined(__clang__) || defined(__GNUC__))

#if SIZEOF_INT >= 4
    Py_BUILD_ASSERT(sizeof(x) <= sizeof(unsigned int));
    return __builtin_popcount(x);
#else
    // The C standard guarantees that unsigned long will always be big enough
    // to hold a uint32_t value without losing information.
    Py_BUILD_ASSERT(sizeof(x) <= sizeof(unsigned long));
    return __builtin_popcountl(x);
#endif

#else
    // 32-bit SWAR (SIMD Within A Register) popcount

    // Binary: 0 1 0 1 ...
    const uint32_t M1 = 0x55555555;
    // Binary: 00 11 00 11. ..
    const uint32_t M2 = 0x33333333;
    // Binary: 0000 1111 0000 1111 ...
    const uint32_t M4 = 0x0F0F0F0F;

    // Put count of each 2 bits into those 2 bits
    x = x - ((x >> 1) & M1);
    // Put count of each 4 bits into those 4 bits
    x = (x & M2) + ((x >> 2) & M2);
    // Put count of each 8 bits into those 8 bits
    x = (x + (x >> 4)) & M4;
    // Sum of the 4 byte counts.
    // Take care when considering changes to the next line. Portability and
    // correctness are delicate here, thanks to C's "integer promotions" (C99
    // §6.3.1.1p2). On machines where the `int` type has width greater than 32
    // bits, `x` will be promoted to an `int`, and following C's "usual
    // arithmetic conversions" (C99 §6.3.1.8), the multiplication will be
    // performed as a multiplication of two `unsigned int` operands. In this
    // case it's critical that we cast back to `uint32_t` in order to keep only
    // the least significant 32 bits. On machines where the `int` type has
    // width no greater than 32, the multiplication is of two 32-bit unsigned
    // integer types, and the (uint32_t) cast is a no-op. In both cases, we
    // avoid the risk of undefined behaviour due to overflow of a
    // multiplication of signed integer types.
    return (uint32_t)(x * 0x01010101U) >> 24;
#endif
}


// Return the index of the most significant 1 bit in 'x'. This is the smallest
// integer k such that x < 2**k. Equivalent to floor(log2(x)) + 1 for x != 0.
static inline int
_Py_bit_length(unsigned long x)
{
#if (defined(__clang__) || defined(__GNUC__))
    if (x != 0) {
        // __builtin_clzl() is available since GCC 3.4.
        // Undefined behavior for x == 0.
        return (int)sizeof(unsigned long) * 8 - __builtin_clzl(x);
    }
    else {
        return 0;
    }
#elif defined(_MSC_VER)
    // _BitScanReverse() is documented to search 32 bits.
    Py_BUILD_ASSERT(sizeof(unsigned long) <= 4);
    unsigned long msb;
    if (_BitScanReverse(&msb, x)) {
        return (int)msb + 1;
    }
    else {
        return 0;
    }
#else
    const int BIT_LENGTH_TABLE[32] = {
        0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
        5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
    };
    int msb = 0;
    while (x >= 32) {
        msb += 6;
        x >>= 6;
    }
    msb += BIT_LENGTH_TABLE[x];
    return msb;
#endif
}


#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_BITUTILS_H */

SILENT KILLER Tool