00001
00006
00007
00008
00032 #ifndef TBCI_COST_H
00033 #define TBCI_COST_H
00034
00035
00036
00037
00038
00039 #ifndef COST_UNIT_LOAD
00040 # define COST_UNIT_LOAD 2
00041 #endif
00042
00043 #ifndef COST_UNIT_STORE
00044 # define COST_UNIT_STORE COST_UNIT_LOAD
00045 #endif
00046
00047 #ifndef COST_NU_LOAD
00048 # define COST_NU_LOAD 6
00049 #endif
00050
00051 #ifndef COST_NU_STORE
00052 # define COST_NU_STORE (COST_NU_LOAD-2)
00053 #endif
00054
00055 #ifndef COST_MEMSET
00056 # define COST_MEMSET (COST_UNIT_STORE/2)
00057 #endif
00058
00059 #ifndef COST_MEMCPY
00060 # define COST_MEMCPY ((COST_UNIT_LOAD+COST_UNIT_STORE)/2)
00061 #endif
00062
00063 #ifndef COST_ADD
00064 # define COST_ADD 2
00065 #endif
00066
00067 #ifndef COST_SUB
00068 # define COST_SUB COST_ADD
00069 #endif
00070
00071 #ifndef COST_MULT
00072 # define COST_MULT 4
00073 #endif
00074
00075 #ifndef COST_DIV
00076 # define COST_DIV (COST_MULT+2)
00077 #endif
00078
00079 #ifndef COST_CALL
00080 # define COST_CALL 4
00081 #endif
00082
00083 #ifndef COST_LOOP
00084 # define COST_LOOP 2
00085 #endif
00086
00087 #ifndef COST_BRANCH
00088 # define COST_BRANCH 6
00089 #endif
00090
00091 #ifndef COST_SCHEDULE
00092 # define COST_SCHEDULE 10000
00093 #endif
00094
00095 #endif