Loading...
Searching...
No Matches
volk_32f_s32f_power_32f.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2012, 2014 Free Software Foundation, Inc.
*
* This file is part of VOLK
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
#ifndef INCLUDED_volk_32f_s32f_power_32f_a_H
#define INCLUDED_volk_32f_s32f_power_32f_a_H
#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#ifdef LV_HAVE_GENERIC
static inline void volk_32f_s32f_power_32f_generic(float* cVector,
const float* aVector,
const float power,
unsigned int num_points)
{
float* cPtr = cVector;
const float* aPtr = aVector;
unsigned int number = 0;
for (number = 0; number < num_points; number++) {
*cPtr++ = powf((*aPtr++), power);
}
}
#endif /* LV_HAVE_GENERIC */
#endif /* INCLUDED_volk_32f_s32f_power_32f_a_H */