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.
|
|
/*
* Copyright (c) 2000, Intel Corporation * All rights reserved. * * WARRANTY DISCLAIMER * * THESE MATERIALS ARE PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THESE * MATERIALS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Intel Corporation is the author of the Materials, and requests that all * problem reports or change requests be submitted to it directly at * http://developer.intel.com/opensource.
*/
#ifndef _DECISION_TREE_H
#define _DECISION_TREE_H
typedef enum { EM_TEMP_ROLE_NONE = 0, EM_TEMP_ROLE_INT = EM_TEMP_ROLE_NONE, EM_TEMP_ROLE_MEM, EM_TEMP_ROLE_FP, EM_TEMP_ROLE_BR, EM_TEMP_ROLE_LONG, EM_TEMP_ROLE_LAST } Temp_role_t;
typedef struct Node_s { unsigned short next_node; char pos; char size; } Node_t;
#define GET_NODE_POS(node) \
((node).pos)
#define GET_NODE_SIZE(node) \
((node).size)
#define GET_NEXT_NODE_INDEX(node) \
((node).next_node)
#define SQUARE(opcode, template_role) \
(((opcode) * EM_TEMP_ROLE_LAST) + (template_role))
#define NODE_IS_LEAF(node) \
((unsigned char)((node).pos) == 0xff)
extern Node_t em_decision_tree[];
#endif /*_DECISION_TREE_H*/
|