11/*
22 Copyright 2005-2014 Intel Corporation. All Rights Reserved.
33
4- This file is part of Threading Building Blocks.
5-
6- Threading Building Blocks is free software; you can redistribute it
7- and/or modify it under the terms of the GNU General Public License
8- version 2 as published by the Free Software Foundation.
9-
10- Threading Building Blocks is distributed in the hope that it will be
11- useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13- GNU General Public License for more details.
14-
15- You should have received a copy of the GNU General Public License
16- along with Threading Building Blocks; if not, write to the Free Software
17- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18-
19- As a special exception, you may use this file as part of a free software
20- library without restriction. Specifically, if other files instantiate
21- templates or use macros or inline functions from this file, or you compile
22- this file and link it with other files to produce an executable, this
23- file does not by itself cause the resulting executable to be covered by
24- the GNU General Public License. This exception does not however
25- invalidate any other reasons why the executable file might be covered by
26- the GNU General Public License.
4+ This file is part of Threading Building Blocks. Threading Building Blocks is free software;
5+ you can redistribute it and/or modify it under the terms of the GNU General Public License
6+ version 2 as published by the Free Software Foundation. Threading Building Blocks is
7+ distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
8+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9+ See the GNU General Public License for more details. You should have received a copy of
10+ the GNU General Public License along with Threading Building Blocks; if not, write to the
11+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
12+
13+ As a special exception, you may use this file as part of a free software library without
14+ restriction. Specifically, if other files instantiate templates or use macros or inline
15+ functions from this file, or you compile this file and link it with other files to produce
16+ an executable, this file does not by itself cause the resulting executable to be covered
17+ by the GNU General Public License. This exception does not however invalidate any other
18+ reasons why the executable file might be covered by the GNU General Public License.
2719*/
2820
2921#ifndef __TBB_blocked_range_H
@@ -105,7 +97,7 @@ class blocked_range {
10597 __TBB_ASSERT ( !(my_begin < r.my_end ) && !(r.my_end < my_begin), " blocked_range has been split incorrectly" );
10698 }
10799
108- #if !TBB_DEPRECATED
100+ #if __TBB_USE_PROPORTIONAL_SPLIT_IN_BLOCKED_RANGES
109101 // ! Static field to support proportional split
110102 static const bool is_divisible_in_proportion = true ;
111103
@@ -120,7 +112,7 @@ class blocked_range {
120112 // only comparison 'less than' is required from values of blocked_range objects
121113 __TBB_ASSERT ( !(my_begin < r.my_end ) && !(r.my_end < my_begin), " blocked_range has been split incorrectly" );
122114 }
123- #endif
115+ #endif /* __TBB_USE_PROPORTIONAL_SPLIT_IN_BLOCKED_RANGES */
124116
125117private:
126118 /* * NOTE: my_end MUST be declared before my_begin, otherwise the forking constructor will break. */
@@ -138,7 +130,7 @@ class blocked_range {
138130 return middle;
139131 }
140132
141- #if !TBB_DEPRECATED
133+ #if __TBB_USE_PROPORTIONAL_SPLIT_IN_BLOCKED_RANGES
142134 static Value do_split ( blocked_range& r, proportional_split& proportion )
143135 {
144136 __TBB_ASSERT ( r.is_divisible (), " cannot split blocked_range that is not divisible" );
@@ -153,7 +145,7 @@ class blocked_range {
153145 / float (proportion.left () + proportion.right ()) + 0 .5f );
154146 return r.my_end = Value (r.my_end - right_part);
155147 }
156- #endif
148+ #endif /* __TBB_USE_PROPORTIONAL_SPLIT_IN_BLOCKED_RANGES */
157149
158150 template <typename RowValue, typename ColValue>
159151 friend class blocked_range2d ;
0 commit comments