'\" t .\" Title: isgreaterequal .\" Author: The Khronos Group .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 02/03/2019 .\" Manual: OpenCL Manual .\" Source: The Khronos Group .\" Language: English .\" .TH "ISGREATEREQUAL" "3clc" "02/03/2019" "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" isgreaterequal \- Compare of x >= y\&. .SH "" .HP \w'int\ isgreaterequal('u .BI "int isgreaterequal(float\ " "x" ", float\ " "y" ");" .HP \w'intn\ isgreaterequal('u .BI "intn isgreaterequal(floatn\ " "x" ", floatn\ " "y" ");" .HP \w'int\ isgreaterequal('u .BI "int isgreaterequal(double\ " "x" ", double\ " "y" ");" .HP \w'longn\ isgreaterequal('u .BI "longn isgreaterequal(doublen\ " "x" ", doublen\ " "y" ");" .SS "" .TS tab(:); l l. T{ \fBint\fR \fBisgreaterequal\fR (\fBhalf\fR \fIx\fR, \fBhalf\fR \fIy\fR) // if half extension enabled T} T{ \fBshortn\fR \fBisgreaterequal\fR (\fBhalfn\fR \fIx\fR, \fBhalfn\fR \fIy\fR) // if half extension enabled T} .TE .sp 1 .SH "DESCRIPTION" .PP Returns the component\-wise compare of \fIx\fR >= \fIy\fR\&. .PP .SH "NOTES" .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\&. .PP The built\-in relational functions are extended with \fBcl_khr_fp16\fR(3clc) to include appropriate versions of functions that take \fBhalf\fR, and \fBhalf{2|3|4|8|16}\fR as arguments and return values\&. .PP The function returns a 0 if the specified relation is \fBfalse\fR and a 1 if the specified relation is \fBtrue\fR for scalar argument types\&. These functions shall return a 0 if the specified relation is \fBfalse\fR and a \- 1 (i\&.e\&. all bits set) if the specified relation is \fBtrue\fR for vector argument types\&. .PP The relational functions \fBisequal\fR, \fBisgreater\fR, \fBisgreaterequal\fR, \fBisless\fR, \fBislessequal\fR, and \fBislessgreater\fR always return 0 if either argument is not a number (NaN)\&. \fBisnotequal\fR returns 1 if one or both arguments are not a number (NaN) and the argument type is a scalar and returns \-1 if one or both arguments are not a number (NaN) and the argument type is a vector\&. .SH "SPECIFICATION" .PP \m[blue]\fBOpenCL Specification\fR\m[]\&\s-2\u[1]\d\s+2 .SH "SEE ALSO" .PP \fBrelationalFunctions\fR(3clc) .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