英語版
このページの英語版を見る

dmd.common.int128

pure nothrow @nogc @safe bool tst(Cent c);
0に対するテスト
Parameters:
Cent c テストするセント
Returns:
もし!
pure nothrow @nogc @safe Cent com(Cent c);
補数
Parameters:
Cent c 中央値で補完する
Returns:
補数値
pure nothrow @nogc @safe Cent neg(Cent c);
否定する
Parameters:
Cent c セントを否定する
Returns:
マイナス値
pure nothrow @nogc @safe Cent inc(Cent c);
インクリメント
Parameters:
Cent c セントをインクリメントする
Returns:
インクリメント値
pure nothrow @nogc @safe Cent dec(Cent c);
デクリメント
Parameters:
Cent c セントをデクリメントする
Returns:
インクリメント値
pure nothrow @nogc @safe Cent shl1(Cent c);
左に1ビットシフトする
Parameters:
Cent c セントシフトする
Returns:
シフトした値
pure nothrow @nogc @safe Cent shr1(Cent c);
符号なし1ビット右シフト
Parameters:
Cent c セントシフト
Returns:
シフト値
pure nothrow @nogc @safe Cent sar1(Cent c);
算術右1ビットシフト
Parameters:
Cent c セントシフト
Returns:
シフトした値
pure nothrow @nogc @safe Cent shl(Cent c, uint n);
左にnビットシフトする
Parameters:
Cent c シフトするセント
uint n シフトするビット数
Returns:
シフト値
pure nothrow @nogc @safe Cent shr(Cent c, uint n);
符号なし右シフトnビット
Parameters:
Cent c シフトする中央値
uint n シフトするビット数
Returns:
シフト値
pure nothrow @nogc @safe Cent sar(Cent c, uint n);
算術右シフトnビット
Parameters:
Cent c シフトする中央値
uint n シフトするビット数
Returns:
シフトした値
pure nothrow @nogc @safe Cent rol1(Cent c);
左に1ビット回転させる
Parameters:
Cent c セント回転させる
Returns:
回転値
pure nothrow @nogc @safe Cent ror1(Cent c);
右に1ビット回転させる
Parameters:
Cent c セント回転させる
Returns:
回転した値
pure nothrow @nogc @safe Cent rol(Cent c, uint n);
左nビットを回転させる
Parameters:
Cent c 回転させるセント
uint n 回転させるビット数
Returns:
回転値
pure nothrow @nogc @safe Cent ror(Cent c, uint n);
nビット右回転する
Parameters:
Cent c 回転させるセント
uint n 回転させるビット数
Returns:
回転値
pure nothrow @nogc @safe Cent and(Cent c1, Cent c2);
そしてc1とc2である。
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 & c2
pure nothrow @nogc @safe Cent or(Cent c1, Cent c2);
または c1 | c2。
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 | c2
pure nothrow @nogc @safe Cent xor(Cent c1, Cent c2);
Xor c1 ^ c2 を返す。
Parameters:
Cent c1 オペランド 1
Cent c2 オペランド2
Returns:
c1 ^ c2
pure nothrow @nogc @safe Cent add(Cent c1, Cent c2);
c1 を c2 に加算する。
Parameters:
Cent c1 オペランド 1
Cent c2 オペランド 2
Returns:
c1 + c2
pure nothrow @nogc @safe Cent sub(Cent c1, Cent c2);
c1 から c2 を引く。
Parameters:
Cent c1 オペランド 1
Cent c2 オペランド2
Returns:
c1 - c2
pure nothrow @nogc @safe Cent mul(Cent c1, Cent c2);
c1 * c2 を乗算する。
Parameters:
Cent c1 オペランド 1
Cent c2 オペランド2
Returns:
c1 * c2
pure nothrow @nogc @safe Cent udiv(Cent c1, Cent c2);
符号なし除算 c1 / c2.
Parameters:
Cent c1 配当
Cent c2 除数
Returns:
商 c1 / c2
pure nothrow @nogc @safe Cent udivmod(Cent c1, Cent c2, out Cent modulus);
符号なし除算 c1 / c2.除算後の余りはモジュラスに格納される。
Parameters:
Cent c1 配当
Cent c2 除数
Cent modulus c1 % c2に設定される
Returns:
商 c1 / c2
pure nothrow @nogc @safe Cent div(Cent c1, Cent c2);
符号付き除算 c1 / c2.
Parameters:
Cent c1 配当
Cent c2 除数
Returns:
商 c1 / c2
pure nothrow @nogc @safe Cent divmod(Cent c1, Cent c2, out Cent modulus);
符号付き除算 c1 / c2.除算後の余りはモジュラスに格納される。
Parameters:
Cent c1 配当
Cent c2 除数
Cent modulus c1 % c2に設定される
Returns:
商 c1 / c2
pure nothrow @nogc @safe bool ugt(Cent c1, Cent c2);
もし c1 > c2 ならば unsigned
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 > c2 ならば真
pure nothrow @nogc @safe bool uge(Cent c1, Cent c2);
もし c1 >= c2 ならば unsigned
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 >= c2 ならば真
pure nothrow @nogc @safe bool ult(Cent c1, Cent c2);
もし c1 < c2 ならば unsigned
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 < c2 ならば真
pure nothrow @nogc @safe bool ule(Cent c1, Cent c2);
もし c1 <= c2 ならば unsigned
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 <= c2 ならば真
pure nothrow @nogc @safe bool gt(Cent c1, Cent c2);
もし c1 > c2 ならば 符号付き
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 > c2 ならば真
pure nothrow @nogc @safe bool ge(Cent c1, Cent c2);
もし c1 >= c2 ならば 符号付き
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 >= c2 ならば真
pure nothrow @nogc @safe bool lt(Cent c1, Cent c2);
もし c1 < c2 ならば 符号付き
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 < c2 ならば真
pure nothrow @nogc @safe bool le(Cent c1, Cent c2);
もし c1 <= c2 ならば 符号付き
Parameters:
Cent c1 オペランド1
Cent c2 オペランド2
Returns:
c1 <= c2 ならば真