Home
last modified time | relevance | path

Searched refs:ref_ (Results 1 – 25 of 38) sorted by relevance

12

/external/tensorflow/tensorflow/core/platform/
Drefcount.h57 mutable std::atomic_int_fast32_t ref_;
88 inline RefCounted::RefCounted() : ref_(1) {} in RefCounted()
90 inline RefCounted::~RefCounted() { DCHECK_EQ(ref_.load(), 0); } in ~RefCounted()
93 DCHECK_GE(ref_.load(), 1); in Ref()
94 ref_.fetch_add(1, std::memory_order_relaxed); in Ref()
98 DCHECK_GT(ref_.load(), 0); in Unref()
101 if (RefCountIsOne() || ref_.fetch_sub(1) == 1) { in Unref()
103 DCHECK((ref_.store(0), true)); in Unref()
112 return (ref_.load(std::memory_order_acquire) == 1); in RefCountIsOne()
/external/libvpx/libvpx/test/
Dvariance_test.cc299 ref_ = new uint8_t[block_size() * unit]; in SetUp()
301 ASSERT_TRUE(ref_ != NULL); in SetUp()
306 ref_ = CONVERT_TO_BYTEPTR(ref_); in SetUp()
316 ref_ = reinterpret_cast<uint8_t *>(CONVERT_TO_SHORTPTR(ref_)); in TearDown()
321 delete[] ref_; in TearDown()
323 ref_ = NULL; in TearDown()
349 uint8_t *ref_; member in __anon1d74b6eb0111::MainTestClass
375 memset(ref_, j, block_size()); in ZeroTest()
377 uint16_t *const ref16 = CONVERT_TO_SHORTPTR(ref_); in ZeroTest()
382 var = params_.func(src_, width(), ref_, width(), &sse)); in ZeroTest()
[all …]
/external/libaom/libaom/test/
Dvariance_test.cc420 ref_ = new uint8_t[block_size() * unit]; in SetUp()
422 ASSERT_TRUE(ref_ != NULL); in SetUp()
426 ref_ = CONVERT_TO_BYTEPTR(ref_); in SetUp()
434 ref_ = reinterpret_cast<uint8_t *>(CONVERT_TO_SHORTPTR(ref_)); in TearDown()
438 delete[] ref_; in TearDown()
440 ref_ = NULL; in TearDown()
466 uint8_t *ref_; member in __anondf1c79890111::MainTestClass
492 memset(ref_, j, block_size()); in ZeroTest()
494 uint16_t *const ref16 = CONVERT_TO_SHORTPTR(ref_); in ZeroTest()
499 var = params_.func(src_, width(), ref_, width(), &sse)); in ZeroTest()
[all …]
Dcomp_mask_variance_test.cc76 uint8_t *ref_; member in AV1CompMaskVariance::AV1CompMaskVarianceTest
88 ref_ = ref_buffer_ + (8 * MAX_SB_SIZE); in SetUp()
113 aom_comp_mask_pred_c(comp_pred1_, pred_, w, h, ref_, MAX_SB_SIZE, mask, w, in RunCheckOutput()
115 test_impl(comp_pred2_, pred_, w, h, ref_, MAX_SB_SIZE, mask, w, inv); in RunCheckOutput()
138 func(comp_pred1_, pred_, w, h, ref_, MAX_SB_SIZE, mask, w, 0); in RunSpeedTest()
205 NULL, NULL, 0, 0, NULL, comp_pred1_, pred_, w, h, subx, suby, ref_, in RunCheckOutput()
210 w, h, subx, suby, ref_, MAX_SB_SIZE, mask, in RunCheckOutput()
240 w, h, subx, suby, ref_, MAX_SB_SIZE, mask, w, in RunSpeedTest()
319 uint16_t *ref_; member in AV1CompMaskVariance::AV1HighbdCompMaskVarianceTest
335 ref_ = ref_buffer_ + (8 * MAX_SB_SIZE); in SetUp()
[all …]
Dsum_squares_test.cc254 ref_ = reinterpret_cast<uint8_t *>(aom_memalign(32, 256 * 256 * 2)); in SetUp()
256 ASSERT_TRUE(ref_ != NULL); in SetUp()
262 aom_free(ref_); in TearDown()
268 uint16_t *pRef = (uint16_t *)ref_; in GenRandomData()
275 ref_[ii * stride + jj] = rnd_.Rand8(); in GenRandomData()
303 uint8_t *ref_; member in __anon5d230b380111::SSETest
322 GenExtremeData(width, height, stride, ref_, limit); in RunTest()
325 GenExtremeData(width, height, stride, ref_, 0); in RunTest()
330 uint8_t *pRef = ref_; in RunTest()
333 pRef = CONVERT_TO_BYTEPTR(ref_); in RunTest()
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/channelz/v1/
DServer.java60 if (ref_ != null) { in Server()
61 subBuilder = ref_.toBuilder(); in Server()
63 ref_ = input.readMessage(io.grpc.channelz.v1.ServerRef.parser(), extensionRegistry); in Server()
65 subBuilder.mergeFrom(ref_); in Server()
66 ref_ = subBuilder.buildPartial(); in Server()
122 private io.grpc.channelz.v1.ServerRef ref_; field in Server
131 return ref_ != null; in hasRef()
141 return ref_ == null ? io.grpc.channelz.v1.ServerRef.getDefaultInstance() : ref_; in getRef()
259 if (ref_ != null) { in writeTo()
276 if (ref_ != null) { in getSerializedSize()
[all …]
DSocket.java59 if (ref_ != null) { in Socket()
60 subBuilder = ref_.toBuilder(); in Socket()
62 ref_ = input.readMessage(io.grpc.channelz.v1.SocketRef.parser(), extensionRegistry); in Socket()
64 subBuilder.mergeFrom(ref_); in Socket()
65 ref_ = subBuilder.buildPartial(); in Socket()
153 private io.grpc.channelz.v1.SocketRef ref_; field in Socket
162 return ref_ != null; in hasRef()
172 return ref_ == null ? io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_; in getRef()
376 if (ref_ != null) { in writeTo()
402 if (ref_ != null) { in getSerializedSize()
[all …]
DChannel.java61 if (ref_ != null) { in Channel()
62 subBuilder = ref_.toBuilder(); in Channel()
64 ref_ = input.readMessage(io.grpc.channelz.v1.ChannelRef.parser(), extensionRegistry); in Channel()
66 subBuilder.mergeFrom(ref_); in Channel()
67 ref_ = subBuilder.buildPartial(); in Channel()
147 private io.grpc.channelz.v1.ChannelRef ref_; field in Channel
156 return ref_ != null; in hasRef()
166 return ref_ == null ? io.grpc.channelz.v1.ChannelRef.getDefaultInstance() : ref_; in getRef()
414 if (ref_ != null) { in writeTo()
437 if (ref_ != null) { in getSerializedSize()
[all …]
DSubchannel.java62 if (ref_ != null) { in Subchannel()
63 subBuilder = ref_.toBuilder(); in Subchannel()
65 ref_ = input.readMessage(io.grpc.channelz.v1.SubchannelRef.parser(), extensionRegistry); in Subchannel()
67 subBuilder.mergeFrom(ref_); in Subchannel()
68 ref_ = subBuilder.buildPartial(); in Subchannel()
148 private io.grpc.channelz.v1.SubchannelRef ref_; field in Subchannel
157 return ref_ != null; in hasRef()
167 return ref_ == null ? io.grpc.channelz.v1.SubchannelRef.getDefaultInstance() : ref_; in getRef()
415 if (ref_ != null) { in writeTo()
438 if (ref_ != null) { in getSerializedSize()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dtracking_allocator.cc25 ref_(1), in TrackingAllocator()
49 ++ref_; in AllocateRaw()
65 ++ref_; in AllocateRaw()
70 ++ref_; in AllocateRaw()
200 CHECK_GE(ref_, 1); in UnRef()
201 --ref_; in UnRef()
202 return (ref_ == 0); in UnRef()
/external/tensorflow/tensorflow/lite/kernels/
Dnumeric_verify_test.cc51 ref_ = AddInput({TensorType_FLOAT32, shape}); in NumericVerifyOpModel()
67 BuildInterpreter({GetShape(input_), GetShape(ref_)}); in NumericVerifyOpModel()
74 PopulateTensor(ref_, ref_data); in SetInputs()
81 int ref_; member in tflite::__anon9d9873160111::NumericVerifyOpModel
/external/rust/crates/grpcio-sys/grpc/src/core/lib/slice/
Dslice_internal.h139 : ref_(ref), in grpc_slice_refcount()
154 if (ref_ == nullptr) return; in Ref()
155 ref_->RefNonZero(); in Ref()
158 if (ref_ == nullptr) return; in Unref()
159 if (ref_->Unref()) { in Unref()
167 grpc_core::RefCount* ref_ = nullptr;
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/
Dregexp.cc34 ref_(1), in Regexp()
82 if (ref_ < kMaxRef) in Ref()
83 return ref_; in Ref()
91 if (ref_ >= kMaxRef-1) { in Incref()
100 if (ref_ == kMaxRef) { in Incref()
106 ref_ = kMaxRef; in Incref()
111 ref_++; in Incref()
117 if (ref_ == kMaxRef) { in Decref()
122 ref_ = static_cast<uint16_t>(r); in Decref()
129 ref_--; in Decref()
[all …]
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/impl/codegen/
Dserver_interceptor.h119 void Ref() { ref_.fetch_add(1, std::memory_order_relaxed); } in Ref()
121 if (GPR_UNLIKELY(ref_.fetch_sub(1, std::memory_order_acq_rel) == 1)) { in Unref()
129 std::atomic<intptr_t> ref_{1};
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/impl/codegen/
Dserver_interceptor.h119 void Ref() { ref_.fetch_add(1, std::memory_order_relaxed); } in Ref()
121 if (GPR_UNLIKELY(ref_.fetch_sub(1, std::memory_order_acq_rel) == 1)) { in Unref()
129 std::atomic<intptr_t> ref_{1};
/external/libchrome/base/
Dvalue_iterators.h42 reference* operator->() { return &ref_; }
45 reference ref_;
88 const reference* operator->() const { return &ref_; }
91 const reference ref_;
Dvalue_iterators.cc14 dict_iterator::pointer::pointer(const reference& ref) : ref_(ref) {} in pointer()
69 const_dict_iterator::pointer::pointer(const reference& ref) : ref_(ref) {} in pointer()
/external/libchrome/base/memory/
Dweak_ptr.h156 ref_ = internal::WeakReference(); in reset()
163 WeakReference ref_; variable
197 ptr.ref_, static_cast<Derived*>(reinterpret_cast<Base*>(ptr.ptr_))); in AsWeakPtrImpl()
243 return ref_.is_valid() ? reinterpret_cast<T*>(ptr_) : nullptr; in get()
Dweak_ptr.cc73 : ref_(ref), ptr_(ptr) { in WeakPtrBase()
/external/webrtc/rtc_base/
Dweak_ptr.h157 WeakReference ref_; variable
179 T* get() const { return ref_.is_valid() ? ptr_ : nullptr; } in get()
191 ref_ = internal::WeakReference(); in reset()
Dweak_ptr.cc79 WeakPtrBase::WeakPtrBase(const WeakReference& ref) : ref_(ref) {} in WeakPtrBase()
/external/arm-neon-tests/
DMakefile.gcc62 REFLIST = $(addprefix ref_, $(REFNAMES))
65 REFLIST_INT = $(addprefix ref_, $(REFNAMES_INT))
DMakefile56 REFLIST = $(addprefix ref_, $(REFNAMES))
59 REFLIST_INT = $(addprefix ref_, $(REFNAMES_INT))
/external/libchrome/base/metrics/
Dfield_trial.cc421 ref_(FieldTrialList::FieldTrialAllocator::kReferenceNull) { in FieldTrial()
1090 if (!field_trial->ref_) in GetParamsFromSharedMemory()
1095 field_trial->ref_); in GetParamsFromSharedMemory()
1098 global_->field_trial_allocator_->GetAllocSize(field_trial->ref_); in GetParamsFromSharedMemory()
1157 trial->ref_ = new_ref; in ClearParamsFromSharedMemoryForTesting()
1355 trial->ref_ = mem_iter.GetAsReference(entry); in CreateTrialsFromSharedMemory()
1428 if (field_trial->ref_) in AddToAllocatorWhileLocked()
1454 field_trial->ref_ = ref; in AddToAllocatorWhileLocked()
1466 FieldTrial::FieldTrialRef ref = field_trial->ref_; in ActivateFieldTrialEntryWhileLocked()
/external/llvm-project/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-actions.h660 explicit ReturnRefAction(T& ref) : ref_(ref) {} // NOLINT
672 return Action<F>(new Impl<F>(ref_));
683 explicit Impl(T& ref) : ref_(ref) {} // NOLINT
686 return ref_;
690 T& ref_;
695 T& ref_;

12