Home
last modified time | relevance | path

Searched refs:elementSize (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/
H A Darrayassign.d29 immutable elementSize = ti.tsize; in _d_arrayassign() local
33 void* ptmp = (elementSize > buf.sizeof) ? malloc(elementSize) : buf.ptr; in _d_arrayassign()
56 immutable elementSize = ti.tsize; in _d_arrayassign_l() local
58 enforceRawArraysConformable("copy", elementSize, src, dst, true); in _d_arrayassign_l()
60 if (src.ptr < dst.ptr && dst.ptr < src.ptr + elementSize * src.length) in _d_arrayassign_l()
65 void* pdst = dst.ptr + i * elementSize; in _d_arrayassign_l()
66 void* psrc = src.ptr + i * elementSize; in _d_arrayassign_l()
67 memcpy(ptmp, pdst, elementSize); in _d_arrayassign_l()
68 memcpy(pdst, psrc, elementSize); in _d_arrayassign_l()
78 void* pdst = dst.ptr + i * elementSize; in _d_arrayassign_l()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/rt/
H A Darrayassign.d29 immutable elementSize = ti.tsize; in _d_arrayassign() local
33 void* ptmp = (elementSize > buf.sizeof) ? malloc(elementSize) : buf.ptr; in _d_arrayassign()
56 immutable elementSize = ti.tsize; in _d_arrayassign_l() local
58 enforceRawArraysConformable("copy", elementSize, src, dst, true); in _d_arrayassign_l()
60 if (src.ptr < dst.ptr && dst.ptr < src.ptr + elementSize * src.length) in _d_arrayassign_l()
65 void* pdst = dst.ptr + i * elementSize; in _d_arrayassign_l()
66 void* psrc = src.ptr + i * elementSize; in _d_arrayassign_l()
67 memcpy(ptmp, pdst, elementSize); in _d_arrayassign_l()
68 memcpy(pdst, psrc, elementSize); in _d_arrayassign_l()
78 void* pdst = dst.ptr + i * elementSize; in _d_arrayassign_l()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/internal/util/
H A Darray.d37 void enforceRawArraysConformable(const char[] action, const size_t elementSize,
42 _enforceNoOverlap(action, arrayToPtr(a1), arrayToPtr(a2), elementSize * a1.length);
87 void enforceRawArraysConformableNogc(const char[] action, const size_t elementSize,
92 _enforceNoOverlapNogc(action, arrayToPtr(a1), arrayToPtr(a2), elementSize * a1.length);
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/util/
H A Darray.d26 void enforceRawArraysConformable(const char[] action, in size_t elementSize,
31 _enforceNoOverlap(action, arrayToPtr(a1), arrayToPtr(a2), elementSize * a1.length);
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/internal/array/
H A Dconstruction.d52 void enforceRawArraysConformable(const char[] action, const size_t elementSize, in enforceRawArraysConformable() argument
57 alias Type = void function(const char[] action, const size_t elementSize, in enforceRawArraysConformable()
59 (cast(Type)&enforceRawArraysConformableNogc)(action, elementSize, a1, a2, false); in enforceRawArraysConformable()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DCharUnits.h201 CharUnits alignmentOfArrayElement(CharUnits elementSize) const { in alignmentOfArrayElement() argument
205 return alignmentAtOffset(elementSize); in alignmentOfArrayElement()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExprAgg.cpp490 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayInit() local
492 DestPtr.getAlignment().alignmentOfArrayElement(elementSize); in EmitArrayInit()
497 if (NumInitElements * elementSize.getQuantity() > 16 && in EmitArrayInit()
1793 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in VisitArrayInitLoopExpr() local
1795 destPtr.getAlignment().alignmentOfArrayElement(elementSize); in VisitArrayInitLoopExpr()
H A DCGExprCXX.cpp2037 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayDelete() local
2039 deletedPtr.getAlignment().alignmentOfArrayElement(elementSize); in EmitArrayDelete()
H A DCGExprScalar.cpp3797 CharUnits elementSize; in EmitSub() local
3801 elementSize = CharUnits::One(); in EmitSub()
3803 elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
3806 if (elementSize.isOne()) in EmitSub()
3809 divisor = CGF.CGM.getSize(elementSize); in EmitSub()
H A DItaniumCXXABI.cpp2281 llvm::Value *elementSize = llvm::ConstantInt::get(CGF.SizeTy, in InitializeArrayCookie() local
2283 CGF.Builder.CreateStore(elementSize, cookie); in InitializeArrayCookie()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/
H A Dobject.d3737 const size_t elementSize = element.tsize;
3738 if (!elementSize)
3755 return hashOf(ptr[0 .. elementSize * count]);
3759 hash = hashOf(element.getHash(ptr + i * elementSize), hash);