/* * Single Precision Floating Point * * Copyright (C) 2016 Krzysztof Mazur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ #ifndef SFV_H_INCLUDED #define SFV_H_INCLUDED float svl_norm(const float *a, unsigned int n); float svl_prod(const float *a, const float *b, unsigned int n); void svl_mpy(const float *a, float alpha, const float *restrict b, float beta, unsigned int n, float *c); float svl_norm_w(const float *a, unsigned int size, unsigned int i, unsigned int n); float svl_prod_w(const float *a, const float *b, unsigned int b_size, unsigned int b_i, unsigned int n); void svl_mpy_w(const float *a, float alpha, const float *b, float beta, unsigned int b_size, unsigned int b_i, unsigned int n, float *c); #endif