blob: b5abe478f630b05ebe988557e5fabf3b8b64d843 [file] [log] [blame]
Philipp Maiere8ae9fc2017-03-20 12:08:42 +01001/*
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.
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010014 */
15
16#pragma once
17
18/* 8*N single precision floats scaled and converted to 16-bit signed integer */
19void _sse_convert_scale_ps_si16_8n(short *restrict out,
20 const float *restrict in,
21 float scale, int len);
22
23/* 8*N single precision floats scaled and converted with remainder */
24void _sse_convert_scale_ps_si16(short *restrict out,
25 const float *restrict in, float scale, int len);
26
27/* 16*N single precision floats scaled and converted to 16-bit signed integer */
28void _sse_convert_scale_ps_si16_16n(short *restrict out,
29 const float *restrict in,
30 float scale, int len);