openMSX
MemoryOps.hh
Go to the documentation of this file.
1 #ifndef MEMORYOPS_HH
2 #define MEMORYOPS_HH
3 
4 #include <cstddef>
5 
6 namespace openmsx::MemoryOps {
7 
8  template <typename Pixel> struct MemSet {
9  void operator()(Pixel* out, size_t num,
10  Pixel val) const;
11  };
12  template <typename Pixel> struct MemSet2 {
13  void operator()(Pixel* out, size_t num,
14  Pixel val0, Pixel val1) const;
15  };
16 
17  [[nodiscard]] void* mallocAligned(size_t alignment, size_t size);
18  void freeAligned(void* aligned);
19 
20 } // namespace openmsx::MemoryOps
21 
22 #endif
void freeAligned(void *)
Definition: MemoryOps.cc:281
uint32_t Pixel
size_t size(std::string_view utf8)
void * mallocAligned(size_t alignment, size_t size)
Definition: MemoryOps.cc:251
void operator()(Pixel *out, size_t num, Pixel val) const
Definition: MemoryOps.cc:180