!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-oracle-5.13-headers-5.13.0-1018/arch/x86/include/asm/   drwxr-xr-x
Free 83.22 GB of 96.73 GB (86.04%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     xor_avx.h (4.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _ASM_X86_XOR_AVX_H
#define _ASM_X86_XOR_AVX_H

/*
 * Optimized RAID-5 checksumming functions for AVX
 *
 * Copyright (C) 2012 Intel Corporation
 * Author: Jim Kukunas <[email protected]>
 *
 * Based on Ingo Molnar and Zach Brown's respective MMX and SSE routines
 */

#include <linux/compiler.h>
#include <asm/fpu/api.h>

#define BLOCK4(i) \
        BLOCK(32 * i, 0) \
        BLOCK(32 * (i + 1), 1) \
        BLOCK(32 * (i + 2), 2) \
        BLOCK(32 * (i + 3), 3)

#define BLOCK16() \
        BLOCK4(0) \
        BLOCK4(4) \
        BLOCK4(8) \
        BLOCK4(12)

static void xor_avx_2(unsigned long bytes, unsigned long *p0, unsigned long *p1)
{
    unsigned long lines = bytes >> 9;

    kernel_fpu_begin();

    while (lines--) {
#undef BLOCK
#define BLOCK(i, reg) \
do { \
    asm volatile("vmovdqa %0, %%ymm" #reg : : "m" (p1[i / sizeof(*p1)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm"  #reg : : \
        "m" (p0[i / sizeof(*p0)])); \
    asm volatile("vmovdqa %%ymm" #reg ", %0" : \
        "=m" (p0[i / sizeof(*p0)])); \
} while (0);

        BLOCK16()

        p0 = (unsigned long *)((uintptr_t)p0 + 512);
        p1 = (unsigned long *)((uintptr_t)p1 + 512);
    }

    kernel_fpu_end();
}

static void xor_avx_3(unsigned long bytes, unsigned long *p0, unsigned long *p1,
    unsigned long *p2)
{
    unsigned long lines = bytes >> 9;

    kernel_fpu_begin();

    while (lines--) {
#undef BLOCK
#define BLOCK(i, reg) \
do { \
    asm volatile("vmovdqa %0, %%ymm" #reg : : "m" (p2[i / sizeof(*p2)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p1[i / sizeof(*p1)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p0[i / sizeof(*p0)])); \
    asm volatile("vmovdqa %%ymm" #reg ", %0" : \
        "=m" (p0[i / sizeof(*p0)])); \
} while (0);

        BLOCK16()

        p0 = (unsigned long *)((uintptr_t)p0 + 512);
        p1 = (unsigned long *)((uintptr_t)p1 + 512);
        p2 = (unsigned long *)((uintptr_t)p2 + 512);
    }

    kernel_fpu_end();
}

static void xor_avx_4(unsigned long bytes, unsigned long *p0, unsigned long *p1,
    unsigned long *p2, unsigned long *p3)
{
    unsigned long lines = bytes >> 9;

    kernel_fpu_begin();

    while (lines--) {
#undef BLOCK
#define BLOCK(i, reg) \
do { \
    asm volatile("vmovdqa %0, %%ymm" #reg : : "m" (p3[i / sizeof(*p3)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p2[i / sizeof(*p2)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p1[i / sizeof(*p1)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p0[i / sizeof(*p0)])); \
    asm volatile("vmovdqa %%ymm" #reg ", %0" : \
        "=m" (p0[i / sizeof(*p0)])); \
} while (0);

        BLOCK16();

        p0 = (unsigned long *)((uintptr_t)p0 + 512);
        p1 = (unsigned long *)((uintptr_t)p1 + 512);
        p2 = (unsigned long *)((uintptr_t)p2 + 512);
        p3 = (unsigned long *)((uintptr_t)p3 + 512);
    }

    kernel_fpu_end();
}

static void xor_avx_5(unsigned long bytes, unsigned long *p0, unsigned long *p1,
    unsigned long *p2, unsigned long *p3, unsigned long *p4)
{
    unsigned long lines = bytes >> 9;

    kernel_fpu_begin();

    while (lines--) {
#undef BLOCK
#define BLOCK(i, reg) \
do { \
    asm volatile("vmovdqa %0, %%ymm" #reg : : "m" (p4[i / sizeof(*p4)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p3[i / sizeof(*p3)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p2[i / sizeof(*p2)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p1[i / sizeof(*p1)])); \
    asm volatile("vxorps %0, %%ymm" #reg ", %%ymm" #reg : : \
        "m" (p0[i / sizeof(*p0)])); \
    asm volatile("vmovdqa %%ymm" #reg ", %0" : \
        "=m" (p0[i / sizeof(*p0)])); \
} while (0);

        BLOCK16()

        p0 = (unsigned long *)((uintptr_t)p0 + 512);
        p1 = (unsigned long *)((uintptr_t)p1 + 512);
        p2 = (unsigned long *)((uintptr_t)p2 + 512);
        p3 = (unsigned long *)((uintptr_t)p3 + 512);
        p4 = (unsigned long *)((uintptr_t)p4 + 512);
    }

    kernel_fpu_end();
}

static struct xor_block_template xor_block_avx = {
    .name = "avx",
    .do_2 = xor_avx_2,
    .do_3 = xor_avx_3,
    .do_4 = xor_avx_4,
    .do_5 = xor_avx_5,
};

#define AVX_XOR_SPEED \
do { \
    if (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE)) \
        xor_speed(&xor_block_avx); \
} while (0)

#define AVX_SELECT(FASTEST) \
    (boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_OSXSAVE) ? &xor_block_avx : FASTEST)

#endif

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0041 ]--