frexp

提供: Tommy6
移動: 案内検索

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

gentype frexp (gentype x, __global gentype *exp) gentype frexp (gentype x, __local gentype *exp) gentype frexp (gentype x, __private gentype *exp)

x の仮数と指数を求めます。それぞれの要素に返される仮数は、[1/2, 1) もしくは 0 の区間の値です。x のそれぞれの値は [返される仮数] * 2exp と等しくなります。

変更記録

脚注



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