You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
479 B

/*
* Double-precision vector pow function.
*
* Copyright (c) 2020, Arm Limited.
* SPDX-License-Identifier: MIT
*/
#include "mathlib.h"
#include "v_math.h"
#if V_SUPPORTED
VPCS_ATTR
v_f64_t
V_NAME(pow) (v_f64_t x, v_f64_t y)
{
v_f64_t z;
for (int lane = 0; lane < v_lanes64 (); lane++)
{
f64_t sx = v_get_f64 (x, lane);
f64_t sy = v_get_f64 (y, lane);
f64_t sz = pow (sx, sy);
v_set_f64 (&z, lane, sz);
}
return z;
}
VPCS_ALIAS
#endif