| |
| /* |
| * Copyright (C) 2008-2009 Advanced Micro Devices, Inc. All Rights Reserved. |
| * |
| * This file is part of libacml_mv. |
| * |
| * libacml_mv is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU Lesser General Public |
| * License as published by the Free Software Foundation; either |
| * version 2.1 of the License, or (at your option) any later version. |
| * |
| * libacml_mv is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| * Lesser General Public License for more details. |
| * |
| * You should have received a copy of the GNU Lesser General Public |
| * License along with libacml_mv. If not, see |
| * <http://www.gnu.org/licenses/>. |
| * |
| */ |
| |
| |
| |
| /* |
| ** A header file defining the C prototypes for the fast/vector libm functions |
| */ |
| |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| |
| /* |
| ** The scalar routines. |
| */ |
| double fastexp(double); |
| double fastlog(double); |
| double fastlog10(double); |
| double fastlog2(double); |
| double fastpow(double,double); |
| double fastsin(double); |
| double fastcos(double); |
| void fastsincos(double , double *, double *); |
| |
| float fastexpf(float ); |
| float fastlogf(float ); |
| float fastlog10f(float ); |
| float fastlog2f(float ); |
| float fastpowf(float,float); |
| float fastcosf(float ); |
| float fastsinf(float ); |
| void fastsincosf(float, float *,float *); |
| |
| /* |
| ** The single vector routines. |
| */ |
| __m128d __vrd2_log(__m128d); |
| __m128d __vrd2_exp(__m128d); |
| __m128d __vrd2_log10(__m128d); |
| __m128d __vrd2_log2(__m128d); |
| __m128d __vrd2_sin(__m128d); |
| __m128d __vrd2_cos(__m128d); |
| void __vrd2_sincos(__m128d, __m128d *, __m128d *); |
| |
| __m128 __vrs4_expf(__m128); |
| __m128 __vrs4_logf(__m128); |
| __m128 __vrs4_log10f(__m128); |
| __m128 __vrs4_log2f(__m128); |
| __m128 __vrs4_powf(__m128,__m128); |
| __m128 __vrs4_powxf(__m128 x,float y); |
| __m128 __vrs4_sinf(__m128); |
| __m128 __vrs4_cosf(__m128); |
| void __vrs4_sincosf(__m128, __m128 *, __m128 *); |
| |
| |
| /* |
| ** The array routines. |
| */ |
| void vrda_exp(int, double *, double *); |
| void vrda_log(int, double *, double *); |
| void vrda_log10(int, double *, double *); |
| void vrda_log2(int, double *, double *); |
| void vrda_sin(int, double *, double *); |
| void vrda_cos(int, double *, double *); |
| void vrda_sincos(int, double *, double *, double *); |
| |
| void vrsa_expf(int, float *, float *); |
| void vrsa_logf(int, float *, float *); |
| void vrsa_log10f(int, float *, float *); |
| void vrsa_log2f(int, float *, float *); |
| void vrsa_powf(int n, float *x, float *y, float *z); |
| void vrsa_powxf(int n, float *x, float y, float *z); |
| void vrsa_sinf(int, float *, float *); |
| void vrsa_cosf(int, float *, float *); |
| void vrsa_sincosf(int, float *, float *, float *); |
| |
| |
| |
| #ifdef __cplusplus |
| } |
| #endif |