Lines Matching refs:std
35 PETSC_NODISCARD std::size_t operator()(const T *ptr) const noexcept in operator ()()
37 return reinterpret_cast<std::size_t>(ptr); in operator ()()
50 std::size_t size = 0; // size of allocation (bytes)
55 constexpr PointerAttributes(PetscMemType, PetscObjectId, std::size_t) noexcept;
66 inline constexpr PointerAttributes::PointerAttributes(PetscMemType mtype_, PetscObjectId id_, std::… in PointerAttributes()
166 it = std::find_if(map.begin(), end_it, [ptr](map_type::const_iterator::reference map_it) { in search_for()
190 …RegisterMemory_Private(const void *PETSC_RESTRICT ptr, PetscMemType mtype, std::size_t size, Petsc… in PetscDeviceRegisterMemory_Private()
214 std::piecewise_construct, in PetscDeviceRegisterMemory_Private()
215 std::forward_as_tuple(const_cast<MemoryMap::map_type::key_type>(ptr)), in PetscDeviceRegisterMemory_Private()
216 std::forward_as_tuple(mtype, newid, size) in PetscDeviceRegisterMemory_Private()
255 PetscErrorCode PetscDeviceRegisterMemory(const void *PETSC_RESTRICT ptr, PetscMemType mtype, std::s… in PetscDeviceRegisterMemory()
325 …vate(PetscDeviceContext dctx, PetscBool clear, PetscMemType mtype, std::size_t n, std::size_t alig… in PetscDeviceAllocate_Private()
331 const auto is_power_of_2 = [](std::size_t num) { return (num & (num - 1)) == 0; }; in PetscDeviceAllocate_Private()
470 …(PetscDeviceContext dctx, void *PETSC_RESTRICT dest, const void *PETSC_RESTRICT src, std::size_t n) in PetscDeviceMemcpy()
543 PetscErrorCode PetscDeviceMemset(PetscDeviceContext dctx, void *ptr, PetscInt v, std::size_t n) in PetscDeviceMemset()
559 std::memset(ptr, static_cast<int>(v), n); in PetscDeviceMemset()