diff options
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp')
-rw-r--r-- | TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp index 73897ae501b..91ad25fbc62 100644 --- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp +++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_i.cpp @@ -284,7 +284,7 @@ Cubit_i::cube_long_sequence (const Cubit::long_seq &input, output->length (input.length ()); -#if (ACE_HAS_PURIFY == 1) +#if 0 for (CORBA::ULong i = 0; i < input.length (); ++i) { CORBA::Long x = input[i]; @@ -294,7 +294,7 @@ Cubit_i::cube_long_sequence (const Cubit::long_seq &input, CORBA::ULong i = 0; CORBA::Long x = input[0]; output[i] = x * x * x; -#endif /* ACE_HAS_PURIFY == 1 */ +#endif } // Cube an octet sequence @@ -319,10 +319,7 @@ Cubit_i::cube_octet_sequence (const Cubit::octet_seq &input, output->length (input.length ()); -#if (ACE_HAS_PURIFY == 1) - // For Purify, initialize every output since we're looking for - // accesses to uninitialized memory addresses. Performance - // is secondary when compiling for purify. +#if 0 for (CORBA::ULong i = 0; i < input.length (); ++i) { CORBA::Octet x = input[i]; @@ -336,7 +333,7 @@ Cubit_i::cube_octet_sequence (const Cubit::octet_seq &input, CORBA::ULong i = 0; CORBA::Octet x = input[0]; output[i] = x * x * x; -#endif /* ACE_HAS_PURIFY == 1 */ +#endif } void @@ -352,7 +349,7 @@ Cubit_i::cube_many_sequence (const Cubit::many_seq & input, output->length (input.length ()); -#if (ACE_HAS_PURIFY == 1) +#if 0 for (CORBA::ULong i = 0; i < input.length (); ++i) { const Cubit::Many &in = input[i]; @@ -370,7 +367,7 @@ Cubit_i::cube_many_sequence (const Cubit::many_seq & input, out.o = in.o * in.o * in.o; out.s = in.s * in.s * in.s; out.l = in.l * in.l * in.l; -#endif /* ACE_HAS_PURIFY == 1 */ +#endif } void |