2 //=============================================================================
6 * For use with basic_perf.cpp.
10 //=============================================================================
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 extern int A
,BB
,C
,D
,E
,F
;
24 // If your compiler optimizes away Empty_Iteration_Test::run (), then
25 // #defining ACE_HAS_OPTIMIZED_NULL_FUNCTIONS may help produce more
26 // reasonable numbers.
27 #if defined (_MSC_VER)
28 // MSVC 5.0 needs it . . .
29 # define ACE_HAS_OPTIMIZED_NULL_FUNCTIONS
32 #if defined (ACE_HAS_OPTIMIZED_NULL_FUNCTIONS)
33 # define EXPR(R,A,BB,C,D) (R=(A*BB + C*D))
34 # define DO_SOMETHING EXPR(A,BB,EXPR(F,A,E,C,BB),EXPR(BB,F,A,D,E),EXPR(E,BB,F,A,C));
35 #else /* ACE_HAS_OPTIMIZED_NULL_FUNCTIONS */
37 #endif /* ACE_HAS_OPTIMIZED_NULL_FUNCTIONS */
40 // An external (global) function.
44 // A class with no virtual functions.
48 void inline_func () { DO_SOMETHING
}
53 // A class with a virtual function.
58 void inline_func () { DO_SOMETHING
}
60 virtual void v_func ();
65 class Foo_d_v
: public Foo_v
68 virtual void v_func ();
71 #endif /* BASIC_FUNC_H */