MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / decCompare

Method decCompare

src/common/DecFloat.cpp:598–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596 */
597
598short Decimal64::decCompare(Decimal64 op2) const
599{
600 if (decDoubleIsNaN(&dec) || decDoubleIsNaN(&op2.dec))
601 return 3;
602
603 switch (totalOrder(op2))
604 {
605 case -1:
606 return 1;
607 case 0:
608 return 0;
609 case 1:
610 return 2;
611 default:
612 fb_assert(false);
613 }
614
615 // warning silencer
616 return 3;
617}
618
619Decimal128 Decimal128::set(Decimal64 d64)
620{

Callers 1

evlCompareFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected