text stringlengths 0 2.2M |
|---|
ASSERT(bsl::memcmp(&doublePrecisionDecimalStorage,
|
&doublePrecisionDecimalStorage2,
|
sizeof(BID_UINT64)));
|
ASSERT(bsl::memcmp(& quadPrecisionDecimalStorage,
|
& quadPrecisionDecimalStorage2,
|
sizeof(BID_UINT128)));
|
} break;
|
case 1: {
|
// --------------------------------------------------------------------
|
// INCLUDE SANITY TEST
|
// Find some evidence that the Intel headers are included.
|
// libary.
|
//
|
// Concerns:
|
//: 1 Intel Decimal headers are included.
|
//
|
// Plan:
|
//: 1 Declare a variable of 'BID_UINT64', which should be defined in
|
//: the Intel headers. (C-1)
|
//
|
// Testing:
|
// Include Sanity Test
|
// --------------------------------------------------------------------
|
if (verbose) cout << std::endl
|
<< "INCLUDE SANITY TEST" << std::endl
|
<< "===================" << std::endl;
|
// The Intel library makes the BID_UINT64 type an integer. This test
|
// merely gives witness to the intel header inclusion by using one of
|
// its types in a specific way.
|
BID_UINT64 simpleDecimal;
|
simpleDecimal = 42;
|
(void) simpleDecimal;
|
} break;
|
default: {
|
cerr << "WARNING: CASE `" << test << "' NOT FOUND." << endl;
|
testStatus = -1;
|
}
|
}
|
if (testStatus > 0) {
|
cerr << "Error, non-zero test status = " << testStatus << "." << endl;
|
}
|
return testStatus;
|
}
|
#else // !defined(BSLS_PLATFORM_OS_WINDOWS)
|
int main()
|
{
|
return -1;
|
}
|
#endif // !defined(BSLS_PLATFORM_OS_WINDOWS)
|
// ----------------------------------------------------------------------------
|
// Copyright 2014 Bloomberg Finance L.P.
|
//
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
// you may not use this file except in compliance with the License.
|
// You may obtain a copy of the License at
|
//
|
// http://www.apache.org/licenses/LICENSE-2.0
|
//
|
// Unless required by applicable law or agreed to in writing, software
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// See the License for the specific language governing permissions and
|
// limitations under the License.
|
// ----------------------------- END-OF-FILE ----------------------------------
|
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
|
// the main distribution directory for license terms and copyright or visit
|
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
|
#include <algorithm>
|
#include <utility>
|
#include "caf/response_promise.hpp"
|
#include "caf/detail/profiled_send.hpp"
|
#include "caf/local_actor.hpp"
|
#include "caf/logger.hpp"
|
#include "caf/no_stages.hpp"
|
namespace caf {
|
namespace {
|
bool requires_response(message_id mid) {
|
return !mid.is_response() && !mid.is_answered();
|
}
|
bool requires_response(const mailbox_element& src) {
|
return requires_response(src.mid);
|
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.