「テンプレート:gentype integer-function」の版間の差分

提供: Tommy6
移動: 案内検索
 
1行: 1行:
<onlyinclude>他に指定されている場合を除き、型名 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} を指すものとして用います。</onlyinclude>
+
<onlyinclude>他に指定されている場合を除き、型名 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} を指すものとして用います。また、型名 ugentype を型名 gentype の符号無し版を指すものとして用います。たとえば、gentype が [[char4]] のとき、ugentype は [[uchar4]] です。型名 sgentype を、組み込みスカラデータ型 char, uchar, short, ushort, int, uint, long, ulong を指すものとして用います。整数関数が gentype と sgentype をとるとき、gentype は sgentype のスカラもしくはベクトル版になります。たとえば、sgentype が [[uchar]] のとき、gentype は [[uchar]] もしくは uchar{2|3|4|8|18} になります。
 +
 
 +
他に指定されている場合を除き、関数を使用する際の引数および戻り値の型は全て同じです。</onlyinclude>
  
 
{{DEFAULTSORT:{{PAGENAME}}}}
 
{{DEFAULTSORT:{{PAGENAME}}}}
 
[[Category:テンプレート]]
 
[[Category:テンプレート]]

2011年5月13日 (金) 21:08時点における最新版

他に指定されている場合を除き、型名 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} を指すものとして用います。また、型名 ugentype を型名 gentype の符号無し版を指すものとして用います。たとえば、gentype が char4 のとき、ugentype は uchar4 です。型名 sgentype を、組み込みスカラデータ型 char, uchar, short, ushort, int, uint, long, ulong を指すものとして用います。整数関数が gentype と sgentype をとるとき、gentype は sgentype のスカラもしくはベクトル版になります。たとえば、sgentype が uchar のとき、gentype は uchar もしくは uchar{2|3|4|8|18} になります。

他に指定されている場合を除き、関数を使用する際の引数および戻り値の型は全て同じです。