summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpoberlin <poberlin@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-07-30 02:25:51 +0000
committerpoberlin <poberlin@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-07-30 02:25:51 +0000
commit1caf6e6050a12bc5a822aacfeae71eee6c8b0a69 (patch)
treeccdb9338fa57043a2db4237a8f4319ece72e3113
parent63129e5604a53185335752de301f51ad79c6bd5e (diff)
downloadATCD-1caf6e6050a12bc5a822aacfeae71eee6c8b0a69.tar.gz
more changes
-rw-r--r--ACE/ace/Live_P_Strategy.inl17
1 files changed, 10 insertions, 7 deletions
diff --git a/ACE/ace/Live_P_Strategy.inl b/ACE/ace/Live_P_Strategy.inl
index 7e56f69991a..9dd059fe4ba 100644
--- a/ACE/ace/Live_P_Strategy.inl
+++ b/ACE/ace/Live_P_Strategy.inl
@@ -19,7 +19,17 @@ struct AnnotationNode {
int larger_right;
};
+namespace {
+ int min(int a, int b) {
+ return (a < b)? a : b;
+ }
+
+ int MIN_THREE(int a, int b, int c) {
+ return (a < b) ? min(a,c) : min(b,c);
+ }
+
+}
class Live_P_Tree : public ACE_RB_Tree<int, AnnotationNode, ACE_Equal_To<int>, ACE_Thread_Mutex> {
@@ -36,13 +46,6 @@ private:
void recalculate_augmentation(ACE_RB_Tree_Node<int, AnnotationNode>* nodePtr);
void recalculate_augmentation_up(ACE_RB_Tree_Node<int, AnnotationNode>* x);
int calc_max_i(ACE_RB_Tree_Node<int, AnnotationNode>* nodePtr, int extra) const;
- static int MIN(int a, int b)
- {
- return (a < b)? a : b;
- }
- static int MIN_THREE(int a, int b, int c) {
- return (a < b)? Live_P_Tree::MIN(a,c): Live_P_Tree::MIN(b,c);
- }
int T_;
};