all

提供: Tommy6
移動: 案内検索

他に指定されている場合を除き、型名 gentype を、組み込みデータ型 char, char{2|3|4|8|16}, uchar, uchar{2|3|4|8|16}, short, short{2|3|4|8|16}, ushort, ushort{2|3|4|8|16}, int, int{2|3|4|8|16}, uint, uint{2|3|4|8|16}, long, long{2|3|4|8|16}, ulong, ulong{2|3|4|8|16}, float, flota{2|3|4|8|16} を指すものとして用います。また、型名 igentype を符号付整数型 char, char{2|3|4|8|16}, short, short{2|3|4|8|16}, int, int{2|3|4|8|16}, long, long{2|3|4|8|16} を指すものとして用います。また、型名 ugentype を符号無整数型 uchar, uchar{2|3|4|8|16}, ushort, ushort{2|3|4|8|16}, uint, uint{2|3|4|8|16}, ulong, ulong{2|3|4|8|16} を指すものとして用います。

int all (igentype x)

引数のすべての要素の最上位ビットが設定されていれば 1 を、そうでないときは 0 を返します。

変更記録

脚注



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