~ubuntu-branches/ubuntu/trusty/khronos-opencl-man/trusty

« back to all changes in this revision

Viewing changes to vload_halfn.xml

  • Committer: Package Import Robot
  • Author(s): Mathieu Malaterre
  • Date: 2013-05-21 18:06:15 UTC
  • Revision ID: package-import@ubuntu.com-20130521180615-6e0s2n3pai95ip2f
Tags: upstream-1.0~svn21772
ImportĀ upstreamĀ versionĀ 1.0~svn21772

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
 
3
              "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd" [
 
4
<!ENTITY vectorFunctionsInc SYSTEM "vectorFunctionsInc.xml">
 
5
]>
 
6
 
 
7
<refentry>
 
8
    <refentryinfo>
 
9
        <keywordset>
 
10
            <keyword>vload_halfn</keyword>
 
11
        </keywordset>
 
12
    </refentryinfo>
 
13
 
 
14
    <refmeta>
 
15
        <refentrytitle>vload_halfn</refentrytitle>
 
16
 
 
17
        <refmiscinfo>
 
18
            <copyright>
 
19
                <year>2007-2011</year>
 
20
                <holder>The Khronos Group Inc.
 
21
 Permission is hereby granted, free of charge, to any person obtaining a
 
22
copy of this software and/or associated documentation files (the
 
23
"Materials"), to deal in the Materials without restriction, including
 
24
without limitation the rights to use, copy, modify, merge, publish,
 
25
distribute, sublicense, and/or sell copies of the Materials, and to
 
26
permit persons to whom the Materials are furnished to do so, subject to
 
27
the condition that this copyright notice and permission notice shall be included
 
28
in all copies or substantial portions of the Materials.</holder>
 
29
            </copyright>
 
30
        </refmiscinfo>
 
31
        <manvolnum>3</manvolnum>
 
32
    </refmeta>
 
33
 
 
34
<!-- ================================ SYNOPSIS -->
 
35
 
 
36
    <refnamediv id="vload_halfn">
 
37
        <refname>vload_half<replaceable>n</replaceable></refname>
 
38
 
 
39
        <refpurpose>
 
40
            Read a half float vector from a pointer to memory.
 
41
        </refpurpose>
 
42
    </refnamediv>
 
43
 
 
44
    <refsynopsisdiv xmlns:xlink="http://www.w3.org/1999/xlink"><title></title>
 
45
        <funcsynopsis>
 
46
            <funcprototype>
 
47
                <funcdef>
 
48
                    <link xlink:href="vectorDataTypes.html">float<replaceable>n</replaceable></link>
 
49
                    <function>
 
50
                        vload_half<replaceable>n</replaceable>
 
51
                    </function>
 
52
                </funcdef>
 
53
 
 
54
                <paramdef><link xlink:href="scalarDataTypes.html">size_t</link><parameter>offset</parameter></paramdef>
 
55
                <paramdef>const <link xlink:href="global.html">__global</link> <link xlink:href="scalarDataTypes.html">half</link><parameter>*p</parameter></paramdef>
 
56
            </funcprototype>
 
57
        </funcsynopsis>
 
58
 
 
59
        <funcsynopsis>
 
60
            <funcprototype>
 
61
                <funcdef>
 
62
                    <link xlink:href="vectorDataTypes.html">float<replaceable>n</replaceable></link>
 
63
                    <function>
 
64
                        vload_half<replaceable>n</replaceable>
 
65
                    </function>
 
66
                </funcdef>
 
67
 
 
68
                <paramdef><link xlink:href="scalarDataTypes.html">size_t</link><parameter>offset</parameter></paramdef>
 
69
                <paramdef>const <link xlink:href="local.html">__local</link> <link xlink:href="scalarDataTypes.html">half</link><parameter>*p</parameter></paramdef>
 
70
            </funcprototype>
 
71
        </funcsynopsis>
 
72
 
 
73
        <funcsynopsis>
 
74
            <funcprototype>
 
75
                <funcdef>
 
76
                    <link xlink:href="vectorDataTypes.html">float<replaceable>n</replaceable></link>
 
77
                    <function>
 
78
                        vload_half<replaceable>n</replaceable>
 
79
                    </function>
 
80
                </funcdef>
 
81
 
 
82
                <paramdef><link xlink:href="scalarDataTypes.html">size_t</link><parameter>offset</parameter></paramdef>
 
83
                <paramdef>const <link xlink:href="constant.html">__constant</link> <link xlink:href="scalarDataTypes.html">half</link><parameter>*p</parameter></paramdef>
 
84
            </funcprototype>
 
85
        </funcsynopsis>
 
86
 
 
87
        <funcsynopsis>
 
88
            <funcprototype>
 
89
                <funcdef>
 
90
                    <link xlink:href="vectorDataTypes.html">float<replaceable>n</replaceable></link>
 
91
                    <function>
 
92
                        vload_half<replaceable>n</replaceable>
 
93
                    </function>
 
94
                </funcdef>
 
95
 
 
96
                <paramdef><link xlink:href="scalarDataTypes.html">size_t</link><parameter>offset</parameter></paramdef>
 
97
                <paramdef>const <link xlink:href="private.html">__private</link> <link xlink:href="scalarDataTypes.html">half</link><parameter>*p</parameter></paramdef>
 
98
            </funcprototype>
 
99
        </funcsynopsis>
 
100
    </refsynopsisdiv>
 
101
 
 
102
<!-- ================================ DESCRIPTION  -->
 
103
 
 
104
    <refsect1 id="description"><title>Description</title>
 
105
      <para>
 
106
        Read sizeof(<type>half<varname>n</varname></type>) bytes of data from address
 
107
        (<varname>p</varname> + (<varname>offset</varname> * <varname>n</varname>)). The data
 
108
        read is interpreted as a <type>half<replaceable>n</replaceable></type> value.
 
109
      </para>
 
110
 
 
111
      <para>
 
112
        The <type>half<replaceable>n</replaceable></type> value read is
 
113
        converted to a <type>float<replaceable>n</replaceable></type> value and the
 
114
        <type>float<replaceable>n</replaceable></type> value is returned. The read address
 
115
        computed as (<varname>p</varname> + (<varname>offset</varname> * <varname>n</varname>))
 
116
        must be 16-bit aligned.
 
117
      </para>
 
118
    </refsect1>
 
119
 
 
120
<!-- ================================ NOTES  -->
 
121
    <refsect1 id="notes"><title>Notes</title>
 
122
 
 
123
      &vectorFunctionsInc;
 
124
 
 
125
      <para>
 
126
        When extended by the
 
127
        <citerefentry><refentrytitle>cl_khr_fp16</refentrytitle></citerefentry> extension,
 
128
        the generic type <type>gentype<replaceable>n</replaceable></type> is extended to
 
129
        include <type>half</type>, <type>half2</type>, <type>half3</type>, <type>half4</type>,
 
130
        <type>half8</type>, and <type>half16</type>.
 
131
      </para>
 
132
 
 
133
      <para>
 
134
        <function>vload3</function> and <function>vload_half3</function> read <varname>x</varname>,
 
135
        <varname>y</varname>, <varname>z</varname> components from address (<varname>p</varname> +
 
136
        (<varname>offset</varname> * 3)) into a 3-component vector.
 
137
      </para>
 
138
    </refsect1>
 
139
 
 
140
<!-- ================================ EXAMPLE  --> <!-- DO NOT DELETE IN CASE AN EXAMPLE IS
 
141
ADDED IN THE FUTURE --> <!--
 
142
    <refsect2 id="example1">
 
143
        <title>
 
144
            Example
 
145
        </title>
 
146
 
 
147
        <informaltable frame="none">
 
148
            <tgroup cols="1" align="left" colsep="0" rowsep="0">
 
149
                <colspec colname="col1" colnum="1" />
 
150
                <tbody>
 
151
                    <row>
 
152
                        <entry>
 
153
                            Example goes here - it will be set in "code" type with white space preserved.
 
154
                        </entry>
 
155
                    </row>
 
156
                </tbody>
 
157
            </tgroup>
 
158
        </informaltable>
 
159
    </refsect2>
 
160
-->
 
161
 
 
162
<!-- ================================ SPECIFICATION  -->
 
163
<!-- Set the "uri" attribute in the <olink /> element to the "named destination" for the PDF page
 
164
-->
 
165
    <refsect1 id="specification"><title>Specification</title>
 
166
        <para>
 
167
            <imageobject>
 
168
                <imagedata fileref="pdficon_small1.gif" format="gif" />
 
169
            </imageobject>
 
170
 
 
171
            <olink uri="vectorDataLoadandStoreFunctions">OpenCL Specification</olink>
 
172
        </para>
 
173
    </refsect1>
 
174
 
 
175
<!-- ================================ ALSO SEE  -->
 
176
 
 
177
    <refsect1 id="seealso"><title>Also see</title>
 
178
        <para>
 
179
            <citerefentry href="vectorDataLoadandStoreFunctions"><refentrytitle>Vector Data Load and Store Functions</refentrytitle></citerefentry>
 
180
        </para>
 
181
    </refsect1>
 
182
 
 
183
<!-- ============================== COPYRIGHT -->
 
184
<!-- Content included from copyright.inc.xsl -->
 
185
 
 
186
    <refsect3 id="Copyright"><title></title>
 
187
        <imageobject>
 
188
                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
 
189
        </imageobject>
 
190
        <para />
 
191
    </refsect3>
 
192
 
 
193
<!-- 13-Oct-2011 -->
 
194
</refentry>
 
195