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

Function operator+

dlib/bigint/bigint_kernel_1.cpp:516–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514// ----------------------------------------------------------------------------------------
515
516 const bigint_kernel_1 operator+ (
517 uint16 lhs,
518 const bigint_kernel_1& rhs
519 )
520 {
521 typedef bigint_kernel_1 bigint;
522 bigint::data_record* temp = new bigint::data_record
523 (rhs.data->digits_used+rhs.slack);
524
525 rhs.short_add(rhs.data,lhs,temp);
526 return bigint_kernel_1(temp,0);
527 }
528
529// ----------------------------------------------------------------------------------------
530

Callers

nothing calls this directly

Calls 1

bigint_kernel_1Class · 0.85

Tested by

no test coverage detected