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
openmsx::MemoryOps::MemSet2::operator()
void operator()(Pixel *out, size_t num, Pixel val0, Pixel val1) const
Definition: MemoryOps.cc:192
openmsx::MemoryOps::freeAligned
void freeAligned(void *)
Definition: MemoryOps.cc:281
utf8::unchecked::size
size_t size(std::string_view utf8)
Definition: utf8_unchecked.hh:227
openmsx::Pixel
uint32_t Pixel
Definition: GLHQLiteScaler.cc:93
openmsx::MemoryOps::MemSet2
Definition: MemoryOps.hh:12
openmsx::MemoryOps::MemSet
Definition: MemoryOps.hh:8
openmsx::MemoryOps::mallocAligned
void * mallocAligned(size_t alignment, size_t size)
Definition: MemoryOps.cc:251
openmsx::MemoryOps
Definition: MemoryOps.cc:22
openmsx::MemoryOps::MemSet::operator()
void operator()(Pixel *out, size_t num, Pixel val) const
Definition: MemoryOps.cc:180