Advertisement
Guest User

Untitled

a guest
Apr 14th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. unsigned char
  2. svp64_record_cr_in_opsel(const struct svp64_record *record)
  3. {
  4. static const unsigned char table[] = {
  5. UNUSED , /* SVP64_CRINSEL_NONE */
  6. , /* SVP64_CRINSEL_CR0 */
  7. BI , /* SVP64_CRINSEL_BI */
  8. BFA , /* SVP64_CRINSEL_BFA */
  9. BAB , /* SVP64_CRINSEL_BA_BB */
  10. CRB , /* SVP64_CRINSEL_BC */
  11. , /* SVP64_CRINSEL_WHOLE_REG */
  12. , /* SVP64_CRINSEL_CR1 */
  13. };
  14.  
  15. return table[record->cr_in];
  16. }
  17.  
  18. unsigned char
  19. svp64_record_cr_out_opsel(const struct svp64_record *record)
  20. {
  21. static const unsigned char table[] = {
  22. UNUSED , /* SVP64_CROUTSEL_NONE */
  23. , /* SVP64_CROUTSEL_CR0 */
  24. BF , /* SVP64_CROUTSEL_BF */
  25. BT , /* SVP64_CROUTSEL_BT */
  26. , /* SVP64_CROUTSEL_WHOLE_REG */
  27. , /* SVP64_CROUTSEL_CR1 */
  28. };
  29.  
  30. return table[record->cr_out];
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement