@@ -174,14 +174,14 @@ namespace ipcdetail {
174174 // !The selection is compiler and platform dependant.
175175
176176 #if defined(BOOST_MSVC)
177- #define BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_COPY
178- #define BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_CAST
177+ #define BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_COPY
178+ #define BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_CAST
179179 #if defined(_M_IX86)
180180 // swap rebases twice and has to keep both offsets live. Only on x86,
181181 // where there are not enough registers for that, does the branch pay:
182182 // it wins 25% to 36% there on every toolset from 14.16 to 14.51, and
183183 // loses up to 12% on x64
184- #define BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_SWAP
184+ #define BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_SWAP
185185 #endif
186186 #endif
187187
@@ -192,7 +192,7 @@ namespace ipcdetail {
192192 // //////////////////////////////////////////////////////////////////////
193193
194194 template <class OffsetType >
195- BOOST_INTERPROCESS_FORCEINLINE void * offset_ptr_to_raw_pointer_branchy (const volatile void *this_ptr, OffsetType offset)
195+ BOOST_INTERPROCESS_FORCEINLINE void * offset_ptr_to_raw_pointer_branched (const volatile void *this_ptr, OffsetType offset)
196196 {
197197 typedef pointer_offset_caster<void *, OffsetType> caster_t ;
198198 if (BOOST_UNLIKELY (offset == 1 )){
@@ -220,8 +220,8 @@ namespace ipcdetail {
220220 template <class OffsetType >
221221 BOOST_INTERPROCESS_FORCEINLINE void * offset_ptr_to_raw_pointer_get (const volatile void *this_ptr, OffsetType offset)
222222 {
223- #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_GET )
224- return offset_ptr_to_raw_pointer_branchy (this_ptr, offset);
223+ #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_GET )
224+ return offset_ptr_to_raw_pointer_branched (this_ptr, offset);
225225 #else
226226 return offset_ptr_to_raw_pointer_branchless (this_ptr, offset);
227227 #endif
@@ -252,7 +252,7 @@ namespace ipcdetail {
252252 // //////////////////////////////////////////////////////////////////////
253253
254254 template <class OffsetType >
255- BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_branchy (const volatile void *ptr, const volatile void *this_ptr)
255+ BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_branched (const volatile void *ptr, const volatile void *this_ptr)
256256 {
257257 typedef pointer_offset_caster<void *, OffsetType> caster_t ;
258258 // offset == 1 && ptr != 0 is not legal for this pointer
@@ -282,8 +282,8 @@ namespace ipcdetail {
282282 template <class OffsetType >
283283 BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_store (const volatile void *ptr, const volatile void *this_ptr)
284284 {
285- #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_STORE )
286- return offset_ptr_to_offset_branchy <OffsetType>(ptr, this_ptr);
285+ #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_STORE )
286+ return offset_ptr_to_offset_branched <OffsetType>(ptr, this_ptr);
287287 #else
288288 return offset_ptr_to_offset_branchless<OffsetType>(ptr, this_ptr);
289289 #endif
@@ -296,8 +296,8 @@ namespace ipcdetail {
296296 template <class OffsetType >
297297 BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_cast (const volatile void *ptr, const volatile void *this_ptr)
298298 {
299- #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_CAST_ADDR )
300- return offset_ptr_to_offset_branchy <OffsetType>(ptr, this_ptr);
299+ #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_CAST_ADDR )
300+ return offset_ptr_to_offset_branched <OffsetType>(ptr, this_ptr);
301301 #else
302302 return offset_ptr_to_offset_branchless<OffsetType>(ptr, this_ptr);
303303 #endif
@@ -337,7 +337,7 @@ namespace ipcdetail {
337337 // //////////////////////////////////////////////////////////////////////
338338
339339 template <class OffsetType >
340- BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_from_other_branchy
340+ BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_from_other_branched
341341 (const volatile void *this_ptr, const volatile void *other_ptr, OffsetType other_offset)
342342 {
343343 typedef pointer_offset_caster<void *, OffsetType> caster_t ;
@@ -368,8 +368,8 @@ namespace ipcdetail {
368368 BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_from_other_copy
369369 (const volatile void *this_ptr, const volatile void *other_ptr, OffsetType other_offset)
370370 {
371- #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_COPY )
372- return offset_ptr_to_offset_from_other_branchy (this_ptr, other_ptr, other_offset);
371+ #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_COPY )
372+ return offset_ptr_to_offset_from_other_branched (this_ptr, other_ptr, other_offset);
373373 #else
374374 return offset_ptr_to_offset_from_other_branchless (this_ptr, other_ptr, other_offset);
375375 #endif
@@ -380,8 +380,8 @@ namespace ipcdetail {
380380 BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_from_other_cast
381381 (const volatile void *this_ptr, const volatile void *other_ptr, OffsetType other_offset)
382382 {
383- #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_CAST )
384- return offset_ptr_to_offset_from_other_branchy (this_ptr, other_ptr, other_offset);
383+ #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_CAST )
384+ return offset_ptr_to_offset_from_other_branched (this_ptr, other_ptr, other_offset);
385385 #else
386386 return offset_ptr_to_offset_from_other_branchless (this_ptr, other_ptr, other_offset);
387387 #endif
@@ -392,8 +392,8 @@ namespace ipcdetail {
392392 BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_from_other_swap
393393 (const volatile void *this_ptr, const volatile void *other_ptr, OffsetType other_offset)
394394 {
395- #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_SWAP )
396- return offset_ptr_to_offset_from_other_branchy (this_ptr, other_ptr, other_offset);
395+ #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_SWAP )
396+ return offset_ptr_to_offset_from_other_branched (this_ptr, other_ptr, other_offset);
397397 #else
398398 return offset_ptr_to_offset_from_other_branchless (this_ptr, other_ptr, other_offset);
399399 #endif
@@ -405,8 +405,8 @@ namespace ipcdetail {
405405 BOOST_INTERPROCESS_FORCEINLINE OffsetType offset_ptr_to_offset_from_other_shift
406406 (const volatile void *this_ptr, const volatile void *other_ptr, OffsetType other_offset)
407407 {
408- #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHY_SHIFT )
409- return offset_ptr_to_offset_from_other_branchy (this_ptr, other_ptr, other_offset);
408+ #if defined(BOOST_INTERPROCESS_OFFSET_PTR_BRANCHED_SHIFT )
409+ return offset_ptr_to_offset_from_other_branched (this_ptr, other_ptr, other_offset);
410410 #else
411411 return offset_ptr_to_offset_from_other_branchless (this_ptr, other_ptr, other_offset);
412412 #endif
0 commit comments