maxmag

提供: Tommy6
移動: 案内検索

型名 gentype を、組み込みデータ型 float, float2, float3(OpenCL 1.1 で追加), float4, float8, float16 を指すものとして用います。他に指定されている場合を除き、関数を使用する際の引数および戻り値の型は全て同じです。

gentype maxmag (gentype x, gentype y)

|x| > |y| のときは x を、|y| > |x| のときは y を、それ以外のときは fmax(x, y) を返します。

変更記録

脚注



―――― Revision 33, Version 1.1, The OpenCL Specification より翻訳