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

« back to all changes in this revision

Viewing changes to sign.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 commonFunctionsInc SYSTEM "commonFunctionsInc.xml">
 
5
]>
 
6
<refentry>
 
7
    <refentryinfo>
 
8
        <keywordset>
 
9
            <keyword>sign</keyword>
 
10
        </keywordset>
 
11
    </refentryinfo>
 
12
 
 
13
    <refmeta>
 
14
        <refentrytitle>sign</refentrytitle>
 
15
 
 
16
        <refmiscinfo>
 
17
            <copyright>
 
18
                <year>2007-2011</year>
 
19
                <holder>The Khronos Group Inc.
 
20
 Permission is hereby granted, free of charge, to any person obtaining a
 
21
copy of this software and/or associated documentation files (the
 
22
"Materials"), to deal in the Materials without restriction, including
 
23
without limitation the rights to use, copy, modify, merge, publish,
 
24
distribute, sublicense, and/or sell copies of the Materials, and to
 
25
permit persons to whom the Materials are furnished to do so, subject to
 
26
the condition that this copyright notice and permission notice shall be included
 
27
in all copies or substantial portions of the Materials.</holder>
 
28
            </copyright>
 
29
        </refmiscinfo>
 
30
        <manvolnum>3</manvolnum>
 
31
    </refmeta>
 
32
 
 
33
<!-- ================================ SYNOPSIS -->
 
34
 
 
35
    <refnamediv id="sign">
 
36
        <refname>sign</refname>
 
37
 
 
38
        <refpurpose>
 
39
            Sign of a value.
 
40
        </refpurpose>
 
41
    </refnamediv>
 
42
 
 
43
    <refsynopsisdiv xmlns:xlink="http://www.w3.org/1999/xlink"><title></title>
 
44
        <funcsynopsis>
 
45
            <funcprototype>
 
46
                <funcdef>
 
47
                    gentype
 
48
                    <function>
 
49
                        sign
 
50
                    </function>
 
51
                </funcdef>
 
52
                <paramdef>gentype<parameter>x</parameter></paramdef>
 
53
            </funcprototype>
 
54
        </funcsynopsis>
 
55
 
 
56
    </refsynopsisdiv>
 
57
 
 
58
<!-- ================================ DESCRIPTION  -->
 
59
 
 
60
    <refsect1 id="description"><title>Description</title>
 
61
      <para>
 
62
        <informalequation><mathphrase>Returns
 
63
                1.0 if <emphasis>x</emphasis> &gt; 0, -0.0 if <emphasis>x</emphasis> = -0.0, +0.0 if <emphasis>x</emphasis> = +0.0, or -1.0 if <emphasis>x</emphasis> &lt; 0. Returns 0.0 if <emphasis>x</emphasis> is a NaN.
 
64
        </mathphrase></informalequation></para>
 
65
    </refsect1>
 
66
 
 
67
<!-- ================================ NOTES  -->
 
68
 
 
69
    <refsect1 id="notes"><title>Notes</title>
 
70
 
 
71
      &commonFunctionsInc;
 
72
 
 
73
      <para>
 
74
        If extended with <citerefentry><refentrytitle>cl_khr_fp16</refentrytitle></citerefentry>,
 
75
        generic type name <type>gentype</type> may indicate <type>half</type> and
 
76
        <type>half{2|3|4|8|16}</type> as arguments and return values.
 
77
      </para>
 
78
    </refsect1>
 
79
 
 
80
<!-- ================================ EXAMPLE  --> <!-- DO NOT DELETE IN CASE AN EXAMPLE IS
 
81
ADDED IN THE FUTURE --> <!--
 
82
    <refsect2 id="example1">
 
83
        <title>
 
84
            Example
 
85
        </title>
 
86
 
 
87
        <informaltable frame="none">
 
88
            <tgroup cols="1" align="left" colsep="0" rowsep="0">
 
89
                <colspec colname="col1" colnum="1" />
 
90
                <tbody>
 
91
                    <row>
 
92
                        <entry>
 
93
                            Example goes here - it will be set in "code" type with white space preserved.
 
94
                        </entry>
 
95
                    </row>
 
96
                </tbody>
 
97
            </tgroup>
 
98
        </informaltable>
 
99
    </refsect2>
 
100
-->
 
101
 
 
102
<!-- ================================ SPECIFICATION  -->
 
103
<!-- Set the "uri" attribute in the <olink /> element to the "named destination" for the PDF page
 
104
-->
 
105
    <refsect1 id="specification"><title>Specification</title>
 
106
        <para>
 
107
            <imageobject>
 
108
                <imagedata fileref="pdficon_small1.gif" format="gif" />
 
109
            </imageobject>
 
110
 
 
111
            <olink uri="commonFunctions">OpenCL Specification</olink>
 
112
        </para>
 
113
    </refsect1>
 
114
 
 
115
<!-- ================================ ALSO SEE  -->
 
116
 
 
117
    <refsect1 id="seealso"><title>Also see</title>
 
118
        <para>
 
119
            <citerefentry href="commonFunctions"><refentrytitle>Common Functions</refentrytitle></citerefentry>
 
120
        </para>
 
121
    </refsect1>
 
122
 
 
123
<!-- ============================== COPYRIGHT -->
 
124
<!-- Content included from copyright.inc.xsl -->
 
125
 
 
126
    <refsect3 id="Copyright"><title></title>
 
127
        <imageobject>
 
128
                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
 
129
        </imageobject>
 
130
        <para />
 
131
    </refsect3>
 
132
 
 
133
<!-- 13-Oct-2011 -->
 
134
</refentry>
 
135