TBCI Numerical high perf. C++ Library 2.8.0
cost.h
Go to the documentation of this file.
1
5
6/* KG, 99/08/02 */
7/* $Id: cost.h,v 1.4.2.2 2003/07/13 22:25:05 garloff Exp $ */
8
31
32#ifndef TBCI_COST_H
33#define TBCI_COST_H
34
35/* Platform and type specific code to go here */
36
37
38/* Defaults */
39#ifndef COST_UNIT_LOAD
40# define COST_UNIT_LOAD 2
41#endif
42
43#ifndef COST_UNIT_STORE
44# define COST_UNIT_STORE COST_UNIT_LOAD
45#endif
46
47#ifndef COST_NU_LOAD
48# define COST_NU_LOAD 6
49#endif
50
51#ifndef COST_NU_STORE
52# define COST_NU_STORE (COST_NU_LOAD-2)
53#endif
54
55#ifndef COST_MEMSET
56# define COST_MEMSET (COST_UNIT_STORE/2)
57#endif
58
59#ifndef COST_MEMCPY
60# define COST_MEMCPY ((COST_UNIT_LOAD+COST_UNIT_STORE)/2)
61#endif
62
63#ifndef COST_ADD
64# define COST_ADD 2
65#endif
66
67#ifndef COST_SUB
68# define COST_SUB COST_ADD
69#endif
70
71#ifndef COST_MULT
72# define COST_MULT 4
73#endif
74
75#ifndef COST_DIV
76# define COST_DIV (COST_MULT+2)
77#endif
78
79#ifndef COST_CALL
80# define COST_CALL 4
81#endif
82
83#ifndef COST_LOOP
84# define COST_LOOP 2
85#endif
86
87#ifndef COST_BRANCH
88# define COST_BRANCH 6
89#endif
90
91#ifndef COST_SCHEDULE
92# define COST_SCHEDULE 10000
93#endif
94
95#endif /* TBCI_COST_H */