pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
pflib::RegisterLocation Struct Reference

Structure holding a location in the registers. More...

Public Member Functions

 RegisterLocation (int r, int m, int n)
 Usable constructor. More...
 

Public Attributes

const int reg
 the register the parameter is in (0-15)
 
const int min_bit
 the min bit the location is in the register (0-7)
 
const int n_bits
 the number of bits the location has in the register (1-8)
 
const int mask
 the mask for this number of bits
 

Detailed Description

Structure holding a location in the registers.

Constructor & Destructor Documentation

◆ RegisterLocation()

pflib::RegisterLocation::RegisterLocation ( int  r,
int  m,
int  n 
)
inline

Usable constructor.

This constructor allows us to calculat the mask from the number of bits so that the downstream compilation functions don't have to calculate it themselves.


The documentation for this struct was generated from the following file: