Skip to content

Commit 64950fb

Browse files
authored
Merge pull request #503 from gmlueck/gmlueck/vec-fixes
Editorial fixes to "vec"
2 parents 8fa7715 + de14ab8 commit 64950fb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

adoc/chapters/programming_interface.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17254,7 +17254,7 @@ a@
1725417254
----
1725517255
vec& operator=(const DataT& rhs)
1725617256
----
17257-
a@ Assign each element of the [code]#rhs# scalar to each element of this SYCL [code]#vec# and return a reference to this SYCL [code]#vec#.
17257+
a@ Assign the [code]#rhs# scalar to each element of this SYCL [code]#vec# and return a reference to this SYCL [code]#vec#.
1725817258

1725917259
|====
1726017260

@@ -17333,7 +17333,7 @@ vec& operatorOP(vec& v)
1733317333
----
1733417334
a@ Available only when: [code]#DataT != bool#.
1733517335

17336-
Perform an in-place element-wise [code]#OP# prefix arithmetic operation on each element of [code]#lhs# [code]#vec#, assigning the result of each element to the corresponding element of [code]#lhs# [code]#vec# and return [code]#lhs# [code]#vec#.
17336+
Perform an in-place element-wise [code]#OP# prefix arithmetic operation on each element of [code]#v# and return [code]#v#.
1733717337

1733817338
Where [code]#OP# is: [code]#pass:[++]#, [code]#--#.
1733917339

@@ -17344,7 +17344,7 @@ vec operatorOP(vec& v, int)
1734417344
----
1734517345
a@ Available only when: [code]#DataT != bool#.
1734617346

17347-
Perform an in-place element-wise [code]#OP# postfix arithmetic operation on each element of [code]#lhs# [code]#vec#, assigning the result of each element to the corresponding element of [code]#lhs# [code]#vec# and returns a copy of [code]#lhs# [code]#vec# before the operation is performed.
17347+
Perform an in-place element-wise [code]#OP# postfix arithmetic operation on each element of [code]#v# and return a copy of [code]#v# before the operation is performed.
1734817348

1734917349
Where [code]#OP# is: [code]#pass:[++]#, [code]#--#.
1735017350

@@ -17574,14 +17574,14 @@ vec& operator~(const vec& v)
1757417574
----
1757517575
a@ Available only when: [code]#DataT != float && DataT != double && DataT != half#.
1757617576

17577-
Construct a new instance of the SYCL [code]#vec# class template with the same template parameters as [code]#v# [code]#vec# with each element of the new SYCL [code]#vec# instance the result of an element-wise [code]#OP# bitwise operation on each element of [code]#v# [code]#vec#.
17577+
Construct a new instance of the SYCL [code]#vec# class template with the same template parameters as [code]#v# [code]#vec# with each element of the new SYCL [code]#vec# instance the result of an element-wise bitwise NOT operation on each element of [code]#v# [code]#vec#.
1757817578

1757917579
a@
1758017580
[source]
1758117581
----
1758217582
vec<RET, NumElements> operator!(const vec& v)
1758317583
----
17584-
a@ Construct a new instance of the SYCL [code]#vec# class template with the same template parameters as [code]#v# [code]#vec# with each element of the new SYCL [code]#vec# instance the result of an element-wise [code]#OP# logical operation on each element of [code]#v# [code]#vec#. Each element of the SYCL [code]#vec# that is returned must be [code]#-1# if the operation results in [code]#true# and [code]#0# if the operation results in [code]#false# or this SYCL [code]#vec# is a NaN.
17584+
a@ Construct a new instance of the SYCL [code]#vec# class template with the same template parameters as [code]#v# [code]#vec# with each element of the new SYCL [code]#vec# instance the result of an element-wise logical NOT operation on each element of [code]#v# [code]#vec#. Each element of the SYCL [code]#vec# that is returned must be [code]#-1# if the operation results in [code]#true# and [code]#0# if the operation results in [code]#false# or this SYCL [code]#vec# is a NaN.
1758517585

1758617586
The [code]#DataT# template parameter of the constructed SYCL [code]#vec#, [code]#RET#, varies depending on the [code]#DataT# template parameter of this SYCL [code]#vec#. For a SYCL [code]#vec# with [code]#DataT# of type [code]#int8_t# or [code]#uint8_t# [code]#RET# must be [code]#int8_t#. For a SYCL [code]#vec# with [code]#DataT# of type [code]#int16_t#, [code]#uint16_t# or [code]#half# [code]#RET# must be [code]#int16_t#. For a SYCL [code]#vec# with [code]#DataT# of type [code]#int32_t#, [code]#uint32_t# or [code]#float# [code]#RET# must be [code]#int32_t#. For a SYCL [code]#vec# with [code]#DataT# of type [code]#int64_t#, [code]#uint64_t# or [code]#double# [code]#RET# must be [code]#int64_t#.
1758717587

0 commit comments

Comments
 (0)