Skip to content

Commit

Permalink
Remove some more latex math
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlueck committed Jul 19, 2023
1 parent f132572 commit 8b24ef2
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21262,7 +21262,7 @@ template<typename NonScalar> (4)

*Overloads (1) - (3):*

_Returns:_ The value latexmath:[e^x-1.0].
_Returns:_ The value [code]#e^x^-1.0#.

*Overload (4):*

Expand All @@ -21272,7 +21272,7 @@ _Constraints:_ Available only if all of the following conditions are met:
[code]#+__swizzled_vec__+# type; and
* The element type is [code]#float#, [code]#double#, or [code]#half#.

_Returns:_ For each element of [code]#x#, the value latexmath:[e^x[i\]-1.0].
_Returns:_ For each element of [code]#x#, the value [code]#e^x[i]^-1.0#.

The return type is [code]#NonScalar# unless [code]#NonScalar# is the
[code]#+__swizzled_vec__+# type, in which case the return type is the
Expand Down Expand Up @@ -21679,8 +21679,7 @@ _Constraints:_ Available only if [code]#Ptr# is [code]#multi_ptr# with
_writeable address spaces_ as defined above.

_Effects:_ Extracts the mantissa and exponent from [code]#x#. Writes the
exponent to [code]#iptr#. The value of [code]#x# equals the mantissa
latexmath:[\times 2^{exp}].
exponent to [code]#iptr#. The value of [code]#x# equals the mantissa * 2^exp^.

_Returns:_ The mantissa of [code]#x#.

Expand All @@ -21703,7 +21702,7 @@ _Constraints:_ Available only if all of the following conditions are met:

_Effects:_ Extracts the mantissa and exponent from each element of [code]#x#.
Writes the exponent of each element to [code]#iptr#. Each element of [code]#x#
equals the mantissa latexmath:[\times 2^{exp}].
equals the mantissa * 2^exp^.

_Returns:_ For each element of [code]#x#, the mantissa of [code]#x[i]#.

Expand Down Expand Up @@ -22178,8 +22177,8 @@ template<typename NonScalar1, typename NonScalar2> (4)

*Overloads (1) - (3):*

_Returns:_ The value [code]#x# if latexmath:[|x| > |y|], [code]#y# if
latexmath:[|y| > |x|], otherwise [code]#fmax(x, y)#.
_Returns:_ The value [code]#x# if [code]#|x| > |y|#, [code]#y# if
[code]#|y| > |x|#, otherwise [code]#fmax(x, y)#.

*Overload (4):*

Expand All @@ -22196,8 +22195,8 @@ _Constraints:_ Available only if all of the following conditions are met:
[code]#float#, [code]#double#, or [code]#half#.

_Returns:_ For each element of [code]#x# and [code]#y#, the value
[code]#x[i]# if latexmath:[|x[i\]| > |y[i\]|], [code]#y[i]# if
latexmath:[|y[i\]| > |x[i\]|], otherwise [code]#fmax(x[i], y[i])#.
[code]#x[i]# if [code]#|x[i]| > |y[i]|#, [code]#y[i]# if
[code]#|y[i]| > |x[i]|#, otherwise [code]#fmax(x[i], y[i])#.

The return type is [code]#NonScalar1# unless [code]#NonScalar1# is the
[code]#+__swizzled_vec__+# type, in which case the return type is the
Expand All @@ -22220,8 +22219,8 @@ template<typename NonScalar1, typename NonScalar2> (4)

*Overloads (1) - (3):*

_Returns:_ The value [code]#x# if latexmath:[|x| < |y|], [code]#y# if
latexmath:[|y| < |x|], otherwise [code]#fmin(x, y)#.
_Returns:_ The value [code]#x# if [code]#|x| < |y|#, [code]#y# if
[code]#|y| < |x|#, otherwise [code]#fmin(x, y)#.

*Overload (4):*

Expand All @@ -22238,8 +22237,8 @@ _Constraints:_ Available only if all of the following conditions are met:
[code]#float#, [code]#double#, or [code]#half#.

_Returns:_ For each element of [code]#x# and [code]#y#, the value
[code]#x[i]# if latexmath:[|x[i\]| < |y[i\]|], [code]#y[i]# if
latexmath:[|y[i\]| < |x[i\]|], otherwise [code]#fmin(x[i], y[i])#.
[code]#x[i]# if [code]#|x[i]| < |y[i]|#, [code]#y[i]# if
[code]#|y[i]| < |x[i]|#, otherwise [code]#fmin(x[i], y[i])#.

The return type is [code]#NonScalar1# unless [code]#NonScalar1# is the
[code]#+__swizzled_vec__+# type, in which case the return type is the
Expand Down Expand Up @@ -24151,8 +24150,8 @@ template<typename GenInt>
_Constraints:_ Available only if [code]#GenInt# is a _generic integer type_ as
defined above.

_Returns:_ When the input is a scalar, returns latexmath:[|x|]. Otherwise,
returns latexmath:[|x[i\]|] for each element of [code]#x#. The behavior is
_Returns:_ When the input is a scalar, returns [code]#|x|#. Otherwise,
returns [code]#|x[i]|# for each element of [code]#x#. The behavior is
undefined if the result cannot be represented by the return type.

The return type is [code]#GenInt# unless [code]#GenInt# is the
Expand Down Expand Up @@ -24180,8 +24179,8 @@ _Constraints:_ Available only if all of the following conditions are met:
[code]#+__swizzled_vec__+# type, and both must have the same element type and
the same number of elements.

_Returns:_ When the inputs are scalars, returns latexmath:[|x - y|].
Otherwise, returns latexmath:[|x[i\] - y[i\]|] for each element of [code]#x#
_Returns:_ When the inputs are scalars, returns [code]#|x - y|#.
Otherwise, returns [code]#|x[i] - y[i]|# for each element of [code]#x#
and [code]#y#. The subtraction is done without modulo overflow. The behavior
is undefined if the result cannot be represented by the return type.

Expand Down

0 comments on commit 8b24ef2

Please sign in to comment.