Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/Virtualization/authfs/src/
Dcommon.rs29 alignment: usize, field
33 pub fn new(remaining: usize, offset: u64, alignment: usize) -> Self { in new()
34 ChunkedSizeIter { remaining, offset, alignment } in new()
47 self.alignment - (self.offset % self.alignment as u64) as usize, in next()
/packages/modules/NeuralNetworks/runtime/
DCompilationBuilder.cpp246 uint32_t* alignment) const { in getPreferredMemoryAlignmentForInput()
247 CHECK(alignment != nullptr); in getPreferredMemoryAlignmentForInput()
264 *alignment = mPlan.getMemoryPreference(IOType::INPUT, index).alignment; in getPreferredMemoryAlignmentForInput()
291 uint32_t* alignment) const { in getPreferredMemoryAlignmentForOutput()
292 CHECK(alignment != nullptr); in getPreferredMemoryAlignmentForOutput()
309 *alignment = mPlan.getMemoryPreference(IOType::OUTPUT, index).alignment; in getPreferredMemoryAlignmentForOutput()
DCompilationBuilder.h63 int getPreferredMemoryAlignmentForInput(uint32_t index, uint32_t* alignment) const;
65 int getPreferredMemoryAlignmentForOutput(uint32_t index, uint32_t* alignment) const;
DExecutionPlan.cpp181 uint32_t alignment, uint32_t padding) { in addTemporary() argument
183 *totalSizeOfTemporaries = roundUp(*totalSizeOfTemporaries, alignment); in addTemporary()
281 << ", alignment = " << temp.second.alignment in vlogDump()
288 uint32_t alignment, uint32_t padding) { in declare() argument
292 << ", initialLength = " << initialLength << ", alignment = " << alignment in declare()
299 paddedLength, alignment, padding}); in declare()
350 temp.offset = addTemporary(&newSize, temp.paddedLength, temp.alignment, kNoPadding).offset; in allocate()
1262 const auto loc = addTemporary(&totalSizeOfTemporaries, size, memoryPreference.alignment, in makeController()
1358 memoryPreference.alignment, memoryPreference.padding); in makeController()
1376 size, memoryPreference.alignment, memoryPreference.padding); in makeController()
[all …]
DNeuralNetworks.cpp1624 const ANeuralNetworksCompilation* compilation, uint32_t index, uint32_t* alignment) { in ANeuralNetworksCompilation_getPreferredMemoryAlignmentForInput() argument
1627 if (!compilation || !alignment) { in ANeuralNetworksCompilation_getPreferredMemoryAlignmentForInput()
1633 return c->getPreferredMemoryAlignmentForInput(index, alignment); in ANeuralNetworksCompilation_getPreferredMemoryAlignmentForInput()
1650 const ANeuralNetworksCompilation* compilation, uint32_t index, uint32_t* alignment) { in ANeuralNetworksCompilation_getPreferredMemoryAlignmentForOutput() argument
1653 if (!compilation || !alignment) { in ANeuralNetworksCompilation_getPreferredMemoryAlignmentForOutput()
1659 return c->getPreferredMemoryAlignmentForOutput(index, alignment); in ANeuralNetworksCompilation_getPreferredMemoryAlignmentForOutput()
/packages/services/Car/cpp/evs/support_library/
DFormatConvert.cpp25 template<unsigned alignment>
27 static_assert((alignment && !(alignment & (alignment - 1))), in align()
30 unsigned mask = alignment - 1; in align()
/packages/services/Car/cpp/evs/apps/default/
DFormatConvert.cpp22 template<unsigned alignment>
24 static_assert((alignment && !(alignment & (alignment - 1))), in align()
27 unsigned mask = alignment - 1; in align()
/packages/services/Car/cpp/evs/sampleDriver/
DbufferCopy.cpp31 template<unsigned alignment>
33 static_assert((alignment && !(alignment & (alignment - 1))), in align()
36 unsigned mask = alignment - 1; in align()
/packages/modules/NeuralNetworks/runtime/test/
DTestGenerated.cpp321 uint32_t alignment = 0, padding = 0; in validateCompilationMemoryPreferences() local
322 ASSERT_EQ(compilation.getPreferredMemoryAlignmentForInput(i, &alignment), in validateCompilationMemoryPreferences()
325 EXPECT_TRUE(isPowerOfTwo(alignment)) << "alignment: " << alignment; in validateCompilationMemoryPreferences()
330 uint32_t alignment = 0, padding = 0; in validateCompilationMemoryPreferences() local
331 ASSERT_EQ(compilation.getPreferredMemoryAlignmentForOutput(i, &alignment), in validateCompilationMemoryPreferences()
335 EXPECT_TRUE(isPowerOfTwo(alignment)) << "alignment: " << alignment; in validateCompilationMemoryPreferences()
DTestNeuralNetworksWrapper.h315 Result getPreferredMemoryAlignmentForInput(uint32_t index, uint32_t* alignment) const { in getPreferredMemoryAlignmentForInput() argument
319 mCompilation, index, alignment))); in getPreferredMemoryAlignmentForInput()
335 Result getPreferredMemoryAlignmentForOutput(uint32_t index, uint32_t* alignment) const { in getPreferredMemoryAlignmentForOutput() argument
339 mCompilation, index, alignment))); in getPreferredMemoryAlignmentForOutput()
/packages/modules/NeuralNetworks/tools/api/
DOperandTypes.t26 %% alignment is a function of length (not data type), and assumes that there
27 %% is a maximum alignment requirement. If a new operand type is added with a
28 %% stricter alignment requirement, then `getAlignmentForLength` may need to
DTypes.t243 // For pointer buffers, the alignment is satisfied if the address of the pointer is a multiple
244 // of the "alignment" value. For memory pools, the alignment is satisfied if the offset of the
245 // sub-region specified by DataLocation is a multiple of the "alignment" value.
246 uint32_t alignment;
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DMultiLineTexture.java40 Layout.Alignment alignment) { in newInstance() argument
43 maxWidth, alignment, 1, 0, true, null, 0); in newInstance()
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DLocalJobParams.java62 public int alignment = 0; field in LocalJobParams
100 + " alignment=" + alignment in toString()
/packages/modules/NeuralNetworks/common/
DSharedMemory.cpp35 DataLocation MutableMemoryBuilder::append(size_t length, size_t alignment, size_t padding) { in append() argument
37 mSize = roundUp(mSize, alignment); in append()
DTypes.cpp56 const size_t alignment = getAlignmentForLength(length); in append() local
57 const size_t offset = roundUp(size(), alignment); in append()
DTypeUtils.cpp771 return os << "MemoryPreference{.alignment=" << memoryPreference.alignment in operator <<()
967 return a.alignment == b.alignment && a.padding == b.padding; in operator ==()
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h521 Result getPreferredMemoryAlignmentForInput(uint32_t index, uint32_t* alignment) const { argument
525 mCompilation, index, alignment)));
541 Result getPreferredMemoryAlignmentForOutput(uint32_t index, uint32_t* alignment) const { argument
545 mCompilation, index, alignment)));
DNeuralNetworks.h2092 const ANeuralNetworksCompilation* compilation, uint32_t index, uint32_t* alignment)
2162 const ANeuralNetworksCompilation* compilation, uint32_t index, uint32_t* alignment)
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h438 Result getPreferredMemoryAlignmentForInput(uint32_t index, uint32_t* alignment) const { in getPreferredMemoryAlignmentForInput() argument
441 mCompilation, index, alignment)); in getPreferredMemoryAlignmentForInput()
450 Result getPreferredMemoryAlignmentForOutput(uint32_t index, uint32_t* alignment) const { in getPreferredMemoryAlignmentForOutput() argument
453 mCompilation, index, alignment)); in getPreferredMemoryAlignmentForOutput()
/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp219 constexpr size_t alignment = alignof(size_t) - 1; in align_sizet() local
220 return (size + alignment) & ~alignment; in align_sizet()
/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksSupportLibraryImpl.h358 const ANeuralNetworksCompilation* compilation, uint32_t index, uint32_t* alignment);
368 const ANeuralNetworksCompilation* compilation, uint32_t index, uint32_t* alignment);
/packages/services/BuiltInPrintService/jni/lib/
DwprintJNI.c767 int alignment = ((*env)->GetIntField(env, javaJobParams, _LocalJobParamsField__alignment)); in _convertJobParams_to_C() local
768 if (alignment != 0) { in _convertJobParams_to_C()
772 if (alignment & ((*env)->GetStaticIntField( in _convertJobParams_to_C()
777 if (alignment & ((*env)->GetStaticIntField( in _convertJobParams_to_C()
782 if (alignment & ((*env)->GetStaticIntField( in _convertJobParams_to_C()
787 if ((alignment & ((*env)->GetStaticIntField( in _convertJobParams_to_C()
/packages/modules/NeuralNetworks/common/include/nnapi/
DSharedMemory.h38 DataLocation append(size_t length, size_t alignment = kMinMemoryAlignment,
/packages/apps/Test/connectivity/sl4n/rapidjson/
DCHANGELOG.md15 * Fix alignment of 64bit platforms (#328)

12