'\" t .\" Title: Relational Built-In Functions .\" Author: The Khronos Group .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 01/14/2021 .\" Manual: OpenCL Manual .\" Source: The Khronos Group .\" Language: English .\" .TH "RELATIONAL BUILT\-IN" "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" Relational_Built-In_Functions \- Click an item in the table below for details about that function\&. .SH "" .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. T{ \fBisequal\fR(3clc) T}:T{ .PP Component\-wise compare of \fIx\fR == \fIy\fR\&. T} T{ \fBisnotequal\fR(3clc) T}:T{ .PP Component\-wise compare of \fIx\fR != \fIy\fR\&. T} T{ \fBisgreater\fR(3clc) T}:T{ .PP Component\-wise compare of \fIx\fR > \fIy\fR\&. T} T{ \fBisgreaterequal\fR(3clc) T}:T{ .PP Component\-wise compare of \fIx\fR >= \fIy\fR\&. T} T{ \fBisless\fR(3clc) T}:T{ .PP Component\-wise compare of \fIx\fR < \fIy\fR\&. T} T{ \fBislessequal\fR(3clc) T}:T{ .PP Component\-wise compare of \fIx\fR <= \fIy\fR\&. T} T{ \fBislessgreater\fR(3clc) T}:T{ .PP Component\-wise compare of (\fIx\fR < \fIy\fR) || (\fIx\fR > \fIy\fR)\&. T} T{ \fBisfinite\fR(3clc) T}:T{ .PP Test for finite value\&. T} T{ \fBisinf\fR(3clc) T}:T{ .PP Test for positive or negative infinity\&. T} T{ \fBisnan\fR(3clc) T}:T{ .PP Test for a NaN\&. T} T{ \fBisnormal\fR(3clc) T}:T{ .PP Test for a normal value\&. T} T{ \fBisordered\fR(3clc) T}:T{ .PP Test if arguments are ordered\&. T} T{ \fBisunordered\fR(3clc) T}:T{ .PP Test if arguments are unordered\&. T} T{ \fBsignbit\fR(3clc) T}:T{ .PP Test for sign bit\&. T} T{ \fBany\fR(3clc) T}:T{ .PP 1 if MSB in any component of \fIx\fR is set; else 0\&. T} T{ \fBany\fR(3clc) T}:T{ .PP 1 if MSB in all components of \fIx\fR is set; else 0\&. T} T{ \fBbitselect\fR(3clc) T}:T{ .PP Each bit of result is corresponding bit of \fIa\fR if corresponding bit of \fIc\fR is 0\&. T} T{ \fBselect\fR(3clc) T}:T{ .PP For each component of a vector type, result[\fIi\fR] = if MSB of \fIc\fR[\fIi\fR] is set ? \fIb\fR[\fIi\fR] : \fIa\fR[\fIi\fR] For scalar type, result = \fIc\fR ? \fIb\fR : \fIa\fR\&. T} .TE .sp 1 .SH "DESCRIPTION" .PP If an implementation extends this specification to support IEEE\-754 flags or exceptions, then all built\-in relational functions shall proceed without raising the \fIinvalid\fR floating\-point exception when one or more of the operands are NaNs\&. .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 264, section 6.12.6 - Relational Functions .RE