예제 #1
0
파일: int.cpp 프로젝트: guangwong/pyston
extern "C" Box* intFloordivInt(BoxedInt* lhs, BoxedInt* rhs) {
    assert(isSubclass(lhs->cls, int_cls));
    assert(isSubclass(rhs->cls, int_cls));
    return div_i64_i64(lhs->n, rhs->n);
}
예제 #2
0
파일: int.cpp 프로젝트: Bassem450/pyston
extern "C" Box* intDivInt(BoxedInt* lhs, BoxedInt *rhs) {
    assert(lhs->cls == int_cls);
    assert(rhs->cls == int_cls);
    return boxInt(div_i64_i64(lhs->n, rhs->n));
}