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