2 * Copyright (C) 2010 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5 * DongKyun Yun <dk77.yun@samsung.com>
6 * SangJin Kim <sangjin3.kim@samsung.com>
7 * HyunGoo Kang <hyungoo1.kang@samsung.com>
9 * Permission is hereby granted, free of charge, to any person obtaining a copy of
10 * this software and associated documentation files (the "Software"), to deal in
11 * the Software without restriction, including without limitation the rights to
12 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
13 * of the Software, and to permit persons to whom the Software is furnished to do
14 * so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included in all
17 * copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34 void xv2xv(const GLfixed* src, GLfixed* dst, int n) {
40 void xv2fv(const GLfixed* src, GLfloat* dst, int n) {
46 void xv2dv(const GLfixed* src, GLdouble* dst, int n) {
52 void fv2xv(const GLfloat* src, GLfixed* dst, int n) {
58 void fv2fv(const GLfloat* src, GLfloat* dst, int n) {
64 void fv2dv(const GLfloat* src, GLdouble* dst, int n) {
70 void dv2xv(const GLdouble* src, GLfixed* dst, int n) {
76 void dv2fv(const GLdouble* src, GLfloat* dst, int n) {
82 void xv2boolv(const GLfixed* src, GLboolean* dst, int n) {
84 *dst++ = x2bool(*src++);
88 void fv2boolv(const GLfloat* src, GLboolean* dst, int n) {
90 *dst++ = f2bool(*src++);
94 void clampxv2boolv(const GLfixed* src, GLboolean* dst, int n) {
96 *dst++ = clampx2bool(*src++);
100 void clampfv2boolv(const GLfloat* src, GLboolean* dst, int n) {
102 *dst++ = clampf2bool(*src++);
108 void bv2xv(const GLbyte* src, GLfixed* dst, int n) {
110 *dst++ = b2x(*src++);
114 void bv2fv(const GLbyte* src, GLfloat* dst, int n) {
116 *dst++ = b2f(*src++);
120 void bv2clampxv(const GLbyte* src, GLfixed* dst, int n) {
122 *dst++ = b2clampx(*src++);
126 void bv2clampfv(const GLbyte* src, GLfloat* dst, int n) {
128 *dst++ = b2clampf(*src++);
132 void ubv2clampxv(const GLbyte* src, GLfixed* dst, int n) {
134 *dst++ = ub2clampx(*src++);
138 void ubv2clampfv(const GLbyte* src, GLfloat* dst, int n) {
140 *dst++ = ub2clampf(*src++);
144 void sv2xv(const GLshort* src, GLfixed* dst, int n) {
146 *dst++ = s2x(*src++);
150 void sv2fv(const GLshort* src, GLfloat* dst, int n) {
152 *dst++ = s2f(*src++);
156 void sv2clampxv(const GLshort* src, GLfixed* dst, int n) {
158 *dst++ = s2clampx(*src++);
162 void sv2clampfv(const GLshort* src, GLfloat* dst, int n) {
164 *dst++ = s2clampf(*src++);
168 void xv2iv(const GLfixed* src, GLint* dst, int n) {
170 *dst++ = x2i(*src++);
174 void fv2iv(const GLfloat* src, GLint* dst, int n) {
176 *dst++ = f2i(*src++);
180 void clampxv2iv(const GLfixed* src, GLint* dst, int n) {
182 *dst++ = clampx2i(*src++);
186 void clampfv2iv(const GLfloat* src, GLint* dst, int n) {
188 *dst++ = clampf2i(*src++);