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

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/lib64/clang/16/include/   drwxr-xr-x
Free 6182.16 GB of 6263.36 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     velintrin_approx.h (3.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*===---- velintrin_approx.h - VEL intrinsics helper for VE ----------------===
 *
 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 * See https://llvm.org/LICENSE.txt for license information.
 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 *
 *===-----------------------------------------------------------------------===
 */
#ifndef __VEL_INTRIN_APPROX_H__
#define __VEL_INTRIN_APPROX_H__

static inline __vr _vel_approx_vfdivs_vvvl(__vr v0, __vr v1, int l) {
  float s0;
  __vr v2, v3, v4, v5;
  v5 = _vel_vrcps_vvl(v1, l);
  s0 = 1.0;
  v4 = _vel_vfnmsbs_vsvvl(s0, v1, v5, l);
  v3 = _vel_vfmads_vvvvl(v5, v5, v4, l);
  v2 = _vel_vfmuls_vvvl(v0, v3, l);
  v4 = _vel_vfnmsbs_vvvvl(v0, v2, v1, l);
  v2 = _vel_vfmads_vvvvl(v2, v5, v4, l);
  v0 = _vel_vfnmsbs_vvvvl(v0, v2, v1, l);
  v0 = _vel_vfmads_vvvvl(v2, v3, v0, l);
  return v0;
}

static inline __vr _vel_approx_pvfdiv_vvvl(__vr v0, __vr v1, int l) {
  float s0;
  __vr v2, v3, v4, v5;
  v5 = _vel_pvrcp_vvl(v1, l);
  s0 = 1.0;
  v4 = _vel_pvfnmsb_vsvvl(s0, v1, v5, l);
  v3 = _vel_pvfmad_vvvvl(v5, v5, v4, l);
  v2 = _vel_pvfmul_vvvl(v0, v3, l);
  v4 = _vel_pvfnmsb_vvvvl(v0, v2, v1, l);
  v2 = _vel_pvfmad_vvvvl(v2, v5, v4, l);
  v0 = _vel_pvfnmsb_vvvvl(v0, v2, v1, l);
  v0 = _vel_pvfmad_vvvvl(v2, v3, v0, l);
  return v0;
}

static inline __vr _vel_approx_vfdivs_vsvl(float s0, __vr v0, int l) {
  float s1;
  __vr v1, v2, v3, v4;
  v4 = _vel_vrcps_vvl(v0, l);
  s1 = 1.0;
  v2 = _vel_vfnmsbs_vsvvl(s1, v0, v4, l);
  v2 = _vel_vfmads_vvvvl(v4, v4, v2, l);
  v1 = _vel_vfmuls_vsvl(s0, v2, l);
  v3 = _vel_vfnmsbs_vsvvl(s0, v1, v0, l);
  v1 = _vel_vfmads_vvvvl(v1, v4, v3, l);
  v3 = _vel_vfnmsbs_vsvvl(s0, v1, v0, l);
  v0 = _vel_vfmads_vvvvl(v1, v2, v3, l);
  return v0;
}

static inline __vr _vel_approx_vfdivs_vvsl(__vr v0, float s0, int l) {
  float s1;
  __vr v1, v2;
  s1 = 1.0f / s0;
  v1 = _vel_vfmuls_vsvl(s1, v0, l);
  v2 = _vel_vfnmsbs_vvsvl(v0, s0, v1, l);
  v0 = _vel_vfmads_vvsvl(v1, s1, v2, l);
  return v0;
}

static inline __vr _vel_approx_vfdivd_vsvl(double s0, __vr v0, int l) {
  __vr v1, v2, v3;
  v2 = _vel_vrcpd_vvl(v0, l);
  double s1 = 1.0;
  v3 = _vel_vfnmsbd_vsvvl(s1, v0, v2, l);
  v2 = _vel_vfmadd_vvvvl(v2, v2, v3, l);
  v1 = _vel_vfnmsbd_vsvvl(s1, v0, v2, l);
  v1 = _vel_vfmadd_vvvvl(v2, v2, v1, l);
  v1 = _vel_vaddul_vsvl(1, v1, l);
  v3 = _vel_vfnmsbd_vsvvl(s1, v0, v1, l);
  v3 = _vel_vfmadd_vvvvl(v1, v1, v3, l);
  v1 = _vel_vfmuld_vsvl(s0, v3, l);
  v0 = _vel_vfnmsbd_vsvvl(s0, v1, v0, l);
  v0 = _vel_vfmadd_vvvvl(v1, v3, v0, l);
  return v0;
}

static inline __vr _vel_approx_vfsqrtd_vvl(__vr v0, int l) {
  double s0, s1;
  __vr v1, v2, v3;
  v2 = _vel_vrsqrtdnex_vvl(v0, l);
  v1 = _vel_vfmuld_vvvl(v0, v2, l);
  s0 = 1.0;
  s1 = 0.5;
  v3 = _vel_vfnmsbd_vsvvl(s0, v1, v2, l);
  v3 = _vel_vfmuld_vsvl(s1, v3, l);
  v2 = _vel_vfmadd_vvvvl(v2, v2, v3, l);
  v1 = _vel_vfmuld_vvvl(v0, v2, l);
  v3 = _vel_vfnmsbd_vsvvl(s0, v1, v2, l);
  v3 = _vel_vfmuld_vsvl(s1, v3, l);
  v0 = _vel_vfmadd_vvvvl(v1, v1, v3, l);
  return v0;
}

static inline __vr _vel_approx_vfsqrts_vvl(__vr v0, int l) {
  float s0, s1;
  __vr v1, v2, v3;
  v0 = _vel_vcvtds_vvl(v0, l);
  v2 = _vel_vrsqrtdnex_vvl(v0, l);
  v1 = _vel_vfmuld_vvvl(v0, v2, l);
  s0 = 1.0;
  s1 = 0.5;
  v3 = _vel_vfnmsbd_vsvvl(s0, v1, v2, l);
  v3 = _vel_vfmuld_vsvl(s1, v3, l);
  v2 = _vel_vfmadd_vvvvl(v2, v2, v3, l);
  v1 = _vel_vfmuld_vvvl(v0, v2, l);
  v3 = _vel_vfnmsbd_vsvvl(s0, v1, v2, l);
  v3 = _vel_vfmuld_vsvl(s1, v3, l);
  v0 = _vel_vfmadd_vvvvl(v1, v1, v3, l);
  v0 = _vel_vcvtsd_vvl(v0, l);
  return v0;
}

#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 KaizenLouie | C99Shell Github | Generation time: 0.0142 ]--