yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
BigUnsigned.cc File Reference
#include "BigUnsigned.hh"
+ Include dependency graph for BigUnsigned.cc:

Go to the source code of this file.

Macros

#define DTRT_ALIASED(cond, op)
 

Functions

BigUnsigned::Blk getShiftedBlock (const BigUnsigned &num, BigUnsigned::Index x, unsigned int y)
 

Macro Definition Documentation

#define DTRT_ALIASED (   cond,
  op 
)
Value:
if (cond) { \
BigUnsigned tmpThis; \
tmpThis.op; \
*this = tmpThis; \
return; \
}

Definition at line 114 of file BigUnsigned.cc.

Function Documentation

BigUnsigned::Blk getShiftedBlock ( const BigUnsigned num,
BigUnsigned::Index  x,
unsigned int  y 
)
inline

Definition at line 293 of file BigUnsigned.cc.

294  {
295  BigUnsigned::Blk part1 = (x == 0 || y == 0) ? 0 : (num.blk[x - 1] >> (BigUnsigned::N - y));
296  BigUnsigned::Blk part2 = (x == num.len) ? 0 : (num.blk[x] << y);
297  return part1 | part2;
298 }
static const unsigned int N
unsigned long Blk
Definition: BigUnsigned.hh:20