branches.h 946 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef AVM_BRANCHES_H
  2. #define AVM_BRANCHES_H 1
  3. #include <avm/lists.h>
  4. #ifdef __cplusplus
  5. extern "C"
  6. {
  7. #endif
  8. typedef list *branch;
  9. struct branch_node
  10. {
  11. branch above;
  12. struct branch_node *following;
  13. };
  14. typedef struct branch_node *branch_queue;
  15. extern void avm_anticipate (branch_queue * front, branch_queue * back, branch operand);
  16. extern void avm_recoverable_anticipate (branch_queue * front, branch_queue * back, branch operand, int *fault);
  17. extern void avm_enqueue_branch (branch_queue * front, branch_queue * back, int received_bit);
  18. extern void avm_recoverable_enqueue_branch (branch_queue * front, branch_queue * back, int received_bit, int *fault);
  19. extern void avm_dispose_branch_queue (branch_queue front);
  20. extern void avm_dispose_branch (branch_queue old);
  21. extern void avm_initialize_branches ();
  22. extern void avm_count_branches ();
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /* !AVM_BRANCHES_H */