Vector Optimized Library of Kernels 3.2.0
Architecture-tuned implementations of math kernels
Loading...
Searching...
No Matches
volk_32f_s32f_power_32f.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2012, 2014 Free Software Foundation, Inc.
4 *
5 * This file is part of VOLK
6 *
7 * SPDX-License-Identifier: LGPL-3.0-or-later
8 */
9
57
58#ifndef INCLUDED_volk_32f_s32f_power_32f_a_H
59#define INCLUDED_volk_32f_s32f_power_32f_a_H
60
61#include <inttypes.h>
62#include <math.h>
63#include <stdio.h>
64
65#ifdef LV_HAVE_GENERIC
66
67static inline void volk_32f_s32f_power_32f_generic(float* cVector,
68 const float* aVector,
69 const float power,
70 unsigned int num_points)
71{
72 float* cPtr = cVector;
73 const float* aPtr = aVector;
74 unsigned int number = 0;
75
76 for (number = 0; number < num_points; number++) {
77 *cPtr++ = powf((*aPtr++), power);
78 }
79}
80#endif /* LV_HAVE_GENERIC */
81
82
83#endif /* INCLUDED_volk_32f_s32f_power_32f_a_H */
static void volk_32f_s32f_power_32f_generic(float *cVector, const float *aVector, const float power, unsigned int num_points)
Definition volk_32f_s32f_power_32f.h:67