Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

  1. /*
  2. * Copyright (c) 2000, Intel Corporation
  3. * All rights reserved.
  4. *
  5. * WARRANTY DISCLAIMER
  6. *
  7. * THESE MATERIALS ARE PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  8. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  9. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  10. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS
  11. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  12. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  13. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  14. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  15. * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING
  16. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THESE
  17. * MATERIALS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  18. *
  19. * Intel Corporation is the author of the Materials, and requests that all
  20. * problem reports or change requests be submitted to it directly at
  21. * http://developer.intel.com/opensource.
  22. */
  23. #ifndef _TREE_H
  24. #define _TREE_H
  25. #include "inst_ids.h"
  26. /* 41 bit instruction minus qp(6 bits) and major opcode(4 bits) */
  27. #define EXTENSION_SIZE 31
  28. typedef struct Internal_node_s
  29. {
  30. int next_node;
  31. int pos;
  32. int size;
  33. } Internal_node_t;
  34. typedef enum
  35. {
  36. EM_TEMP_ROLE_NONE = 0,
  37. EM_TEMP_ROLE_INT = EM_TEMP_ROLE_NONE,
  38. EM_TEMP_ROLE_MEM,
  39. EM_TEMP_ROLE_FP,
  40. EM_TEMP_ROLE_BR,
  41. EM_TEMP_ROLE_LAST
  42. } Temp_role_t;
  43. #define SQUARE(opcode, template_role) \
  44. (((opcode) * EM_TEMP_ROLE_LAST) + (template_role));
  45. #endif /*_TREE_H*/