'\" t .\" Title: Operators .\" Author: The Khronos Group .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 01/14/2021 .\" Manual: OpenCL Manual .\" Source: The Khronos Group .\" Language: English .\" .TH "OPERATORS" "3clc" "01/14/2021" "The Khronos Group" "OpenCL Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" Operators \- Operators used in OpenCL\&. .SH "" .PP The following operators are used in OpenCL\&. For information about the usage of these operators, please refer to the \m[blue]\fBOpenCL specification\fR\m[]\&\s-2\u[1]\d\s+2\&. .TS allbox tab(:); l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l. T{ add T}:T{ + T} T{ subtract T}:T{ \- T} T{ multiply T}:T{ * T} T{ divide T}:T{ / T} T{ remainder T}:T{ % T} T{ unary plus T}:T{ + T} T{ unary minus T}:T{ \- T} T{ post\- and pre\-increment T}:T{ ++ T} T{ post\- and pre\-decrement T}:T{ \-\- T} T{ relational greater\-than T}:T{ > T} T{ relational less\-than T}:T{ < T} T{ relational greater\-than or equal\-to T}:T{ >= T} T{ relational less\-than or equal\-to T}:T{ <= T} T{ equal T}:T{ == T} T{ not equal T}:T{ != T} T{ bitwise and T}:T{ & T} T{ bitwise or T}:T{ | T} T{ bitwise not T}:T{ ^ T} T{ bitwise not T}:T{ ~ T} T{ logical and T}:T{ && T} T{ logical or T}:T{ || T} T{ logical exclusive or T}:T{ ^^ T} T{ logical unary not T}:T{ ! T} T{ ternary selection T}:T{ ?: T} T{ right shift T}:T{ >> T} T{ left shift T}:T{ << T} T{ size of T}:T{ \fBsizeof\fR T} T{ comma T}:T{ , T} T{ dereference T}:T{ * T} T{ address\-of T}:T{ & T} T{ assignment T}:T{ = T} .TE .sp 1 .SH "NOTE" .PP Except for the \fBsizeof\fR operator, \fBthe\fR half data type cannot be used with any of the operators described in this section\&. .SH "SPECIFICATION" .PP \m[blue]\fBOpenCL Specification\fR\m[]\&\s-2\u[1]\d\s+2 .SH "AUTHORS" .PP \fBThe Khronos Group\fR .SH "COPYRIGHT" .br Copyright \(co 2007-2011 The Khronos Group Inc. .br Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials. .sp .SH "NOTES" .IP " 1." 4 OpenCL specification .RS 4 \%page 215, section 6.3 - Operators .RE