コード例 #1
0
ファイル: type-arith.cpp プロジェクト: AojiaoZero/hhvm
Type typeMod(Type t1, Type t2) {
  if (auto t = eval_const_divmod(t1, t2, cellMod)) return *t;
  return TInitPrim;
}
コード例 #2
0
ファイル: type-arith.cpp プロジェクト: Collabria/hhvm
Type typeDiv(Type t1, Type t2) {
  if (auto t = eval_const_divmod(t1, t2, cellDiv)) return *t;
  return TInitCell;
}