Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 3.144.97.217
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : cpu_vx.c
#if (__VEC__ < 10301) || (__ARCH__ < 11)
    #error VX not supported
#endif

#include <vecintrin.h>
int main(int argc, char **argv)
{
    __vector double x = vec_abs(vec_xl(argc, (double*)argv));
    __vector double y = vec_load_len((double*)argv, (unsigned int)argc);

    x = vec_round(vec_ceil(x) + vec_floor(y));
    __vector bool long long m = vec_cmpge(x, y);
    __vector long long i = vec_signed(vec_sel(x, y, m));

    return (int)vec_extract(i, 0);
}
© 2025 GrazzMean-Shell