Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned char
- svp64_record_in1_opsel(const struct svp64_record *record)
- {
- static const unsigned char table[] = {
- UNUSED , /* SVP64_IN1SEL_NONE */
- RA , /* SVP64_IN1SEL_RA */
- RA , /* SVP64_IN1SEL_RA_OR_ZERO */
- SPR , /* SVP64_IN1SEL_SPR */
- RS , /* SVP64_IN1SEL_RS */
- FRA , /* SVP64_IN1SEL_FRA */
- FRS , /* SVP64_IN1SEL_FRS */
- };
- return table[record->in1];
- }
- unsigned char
- svp64_record_in2_opsel(const struct svp64_record *record)
- {
- static const unsigned char table[] = {
- UNUSED , /* SVP64_IN2SEL_NONE */
- RB , /* SVP64_IN2SEL_RB */
- UNUSED , /* SVP64_IN2SEL_CONST_UI */
- UNUSED , /* SVP64_IN2SEL_CONST_SI */
- UNUSED , /* SVP64_IN2SEL_CONST_UI_HI */
- UNUSED , /* SVP64_IN2SEL_CONST_SI_HI */
- UNUSED , /* SVP64_IN2SEL_CONST_LI */
- UNUSED , /* SVP64_IN2SEL_CONST_BD */
- UNUSED , /* SVP64_IN2SEL_CONST_DS */
- UNUSED , /* SVP64_IN2SEL_CONST_M1 */
- UNUSED , /* SVP64_IN2SEL_CONST_SH */
- UNUSED , /* SVP64_IN2SEL_CONST_SH32 */
- SPR , /* SVP64_IN2SEL_SPR */
- RS , /* SVP64_IN2SEL_RS */
- FRB , /* SVP64_IN2SEL_FRB */
- UNUSED , /* SVP64_IN2SEL_CONST_SVD */
- UNUSED , /* SVP64_IN2SEL_CONST_SVDS */
- UNUSED , /* SVP64_IN2SEL_CONST_XBI */
- };
- return table[record->in2];
- }
- unsigned char
- svp64_record_in3_opsel(const struct svp64_record *record)
- {
- static const unsigned char table[] = {
- UNUSED , /* SVP64_IN3SEL_NONE */
- RS , /* SVP64_IN3SEL_RS */
- RB , /* SVP64_IN3SEL_RB */
- FRS , /* SVP64_IN3SEL_FRS */
- FRC , /* SVP64_IN3SEL_FRC */
- RC , /* SVP64_IN3SEL_RC */
- RT , /* SVP64_IN3SEL_RT */
- };
- return table[record->in3];
- }
- unsigned char
- svp64_record_out_opsel(const struct svp64_record *record)
- {
- static const unsigned char table[] = {
- UNUSED , /* SVP64_OUTSEL_NONE */
- RT , /* SVP64_OUTSEL_RT */
- RA , /* SVP64_OUTSEL_RA */
- SPR , /* SVP64_OUTSEL_SPR */
- RT , /* SVP64_OUTSEL_RT_OR_ZERO */
- FRT , /* SVP64_OUTSEL_FRT */
- FRS , /* SVP64_OUTSEL_FRS */
- };
- return table[record->out];
- }
- unsigned char
- svp64_record_out2_opsel(const struct svp64_record *record)
- {
- static const unsigned char table[] = {
- UNUSED , /* SVP64_OUTSEL_NONE */
- RT , /* SVP64_OUTSEL_RT */
- RA , /* SVP64_OUTSEL_RA */
- SPR , /* SVP64_OUTSEL_SPR */
- RT , /* SVP64_OUTSEL_RT_OR_ZERO */
- FRT , /* SVP64_OUTSEL_FRT */
- FRS , /* SVP64_OUTSEL_FRS */
- };
- return table[record->out2];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement