Home
last modified time | relevance | path

Searched refs:host_value (Results 1 – 8 of 8) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/angle/third_party/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/abseil-cpp/absl/base/internal/
Dendian_test.cc118 T host_value = *it; in GBSwapHelper() local
120 char actual_value[sizeof(host_value)]; in GBSwapHelper()
121 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 char expected_value[sizeof(host_value)]; in GBSwapHelper()
125 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
126 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
128 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
129 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dendian_test.cc116 T host_value = *it; in GBSwapHelper() local
118 char actual_value[sizeof(host_value)]; in GBSwapHelper()
119 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
122 char expected_value[sizeof(host_value)]; in GBSwapHelper()
123 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
126 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
127 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Dendian_test.cc118 T host_value = *it; in GBSwapHelper() local
120 char actual_value[sizeof(host_value)]; in GBSwapHelper()
121 memcpy(actual_value, &host_value, sizeof(host_value)); in GBSwapHelper()
124 char expected_value[sizeof(host_value)]; in GBSwapHelper()
125 memcpy(expected_value, &host_value, sizeof(host_value)); in GBSwapHelper()
126 ManualByteSwap(expected_value, sizeof(host_value)); in GBSwapHelper()
128 ASSERT_EQ(0, memcmp(actual_value, expected_value, sizeof(host_value))) in GBSwapHelper()
129 << "Swap output for 0x" << std::hex << host_value << " does not match. " in GBSwapHelper()
/external/tensorflow/tensorflow/compiler/xla/python/
Dpy_buffer.cc93 std::shared_ptr<HostValue> host_value = std::make_shared<HostValue>(); in CopyToHostAsync() local
94 host_value_ = host_value; in CopyToHostAsync()
96 host_value->value = std::make_shared<Literal>( in CopyToHostAsync()
98 Literal* literal = host_value->value.get(); in CopyToHostAsync()
100 [host_value{std::move(host_value)}](Status status) { in CopyToHostAsync()
101 host_value->status = std::move(status); in CopyToHostAsync()
102 host_value->ready.Notify(); in CopyToHostAsync()
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/client/
Dtpu_client.cc284 std::shared_ptr<HostValue> host_value = std::make_shared<HostValue>(); in CopyToHostAsync() local
297 host_value->value = std::make_shared<Literal>(on_host_shape_); in CopyToHostAsync()
298 host_value->pending_ops = std::max(1ul, child_buffers_.size()); in CopyToHostAsync()
299 host_value_ = host_value; in CopyToHostAsync()
307 << host_value->value->shape().DebugString(); in CopyToHostAsync()
312 device_buffer_->handle.get(), host_value->value->untyped_data(), in CopyToHostAsync()
319 host_value->value->untyped_data(xla::ShapeIndex({i})), events)); in CopyToHostAsync()
325 t->AddCallback([host_value](const xla::Status& status) { in CopyToHostAsync()
328 host_value->status = in CopyToHostAsync()
333 absl::MutexLock m(&host_value->mutex); in CopyToHostAsync()
[all …]