blob: 734f1663a283d4ce068efc2526d0dd989ba5433b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* Double-precision vector pow function.
*
* Copyright (c) 2020-2023, Arm Limited.
* SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
*/
#include "mathlib.h"
#include "v_math.h"
float64x2_t VPCS_ATTR V_NAME_D2 (pow) (float64x2_t x, float64x2_t y)
{
float64x2_t z;
for (int lane = 0; lane < v_lanes64 (); lane++)
{
double sx = x[lane];
double sy = y[lane];
double sz = pow (sx, sy);
z[lane] = sz;
}
return z;
}
|