MCPcopy Create free account
hub / github.com/davisking/dlib / operator/

Function operator/

dlib/bigint/bigint_kernel_1.cpp:689–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687// ----------------------------------------------------------------------------------------
688
689 const bigint_kernel_1 operator/ (
690 uint16 lhs,
691 const bigint_kernel_1& rhs
692 )
693 {
694 typedef bigint_kernel_1 bigint;
695 bigint::data_record* temp = new bigint::data_record(rhs.slack);
696
697 // if rhs might not be bigger than lhs
698 if (rhs.data->digits_used == 1)
699 {
700 *(temp->number) = lhs/ *(rhs.data->number);
701 }
702
703 return bigint_kernel_1(temp,0);
704 }
705
706// ----------------------------------------------------------------------------------------
707

Callers

nothing calls this directly

Calls 1

bigint_kernel_1Class · 0.85

Tested by

no test coverage detected