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

Method getTable32

src/common/Int128.cpp:540–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538}
539
540void Int128::getTable32(unsigned* dwords) const
541{
542 static_assert((sizeof(v.table[0]) == 4) || (sizeof(v.table[0]) == 8),
543 "Unsupported size of integer in ttmath");
544
545 if (sizeof(v.table[0]) == 4)
546 {
547 for (int i = 0; i < 4; ++i)
548 dwords[i] = v.table[i];
549 }
550 else if (sizeof(v.table[0]) == 8)
551 {
552 for (int i = 0; i < 2; ++i)
553 {
554 dwords[i * 2] = v.table[i] & 0xFFFFFFFF;
555 dwords[i * 2 + 1] = (v.table[i] >> 32) & 0xFFFFFFFF;
556 }
557 }
558}
559
560void Int128::setTable32(const unsigned* dwords)
561{

Callers 2

toInt64Method · 0.45
setMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected