Philipp Maier | e8ae9fc | 2017-03-20 12:08:42 +0100 | [diff] [blame] | 1 | /* |
| 2 | * SSE type conversions |
| 3 | * Copyright (C) 2013 Thomas Tsou <tom@tsou.cc> |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | /* 8*N single precision floats scaled and converted to 16-bit signed integer */ |
| 23 | void _sse_convert_scale_ps_si16_8n(short *restrict out, |
| 24 | const float *restrict in, |
| 25 | float scale, int len); |
| 26 | |
| 27 | /* 8*N single precision floats scaled and converted with remainder */ |
| 28 | void _sse_convert_scale_ps_si16(short *restrict out, |
| 29 | const float *restrict in, float scale, int len); |
| 30 | |
| 31 | /* 16*N single precision floats scaled and converted to 16-bit signed integer */ |
| 32 | void _sse_convert_scale_ps_si16_16n(short *restrict out, |
| 33 | const float *restrict in, |
| 34 | float scale, int len); |