The Battle for Wesnoth  1.19.0-dev
Macros
xbrz.cpp File Reference
#include "xBRZ/xbrz.hpp"
#include "config.hpp"
#include <cassert>
#include <cmath>
#include <algorithm>
Include dependency graph for xbrz.cpp:

Go to the source code of this file.

Macros

#define FORCE_INLINE   inline
 
#define DEF_GETTER(x)   template <RotationDegree rotDeg> uint32_t inline get_##x(const Kernel_3x3& ker) { return ker.x; }
 
#define DEF_GETTER(x, y)   template <> inline uint32_t get_##x<ROT_90>(const Kernel_3x3& ker) { return ker.y; }
 
#define DEF_GETTER(x, y)   template <> inline uint32_t get_##x<ROT_180>(const Kernel_3x3& ker) { return ker.y; }
 
#define DEF_GETTER(x, y)   template <> inline uint32_t get_##x<ROT_270>(const Kernel_3x3& ker) { return ker.y; }
 
#define a   get_a<rotDeg>(ker)
 
#define b   get_b<rotDeg>(ker)
 
#define c   get_c<rotDeg>(ker)
 
#define d   get_d<rotDeg>(ker)
 
#define e   get_e<rotDeg>(ker)
 
#define f   get_f<rotDeg>(ker)
 
#define g   get_g<rotDeg>(ker)
 
#define h   get_h<rotDeg>(ker)
 
#define i   get_i<rotDeg>(ker)
 

Macro Definition Documentation

◆ a

#define a   get_a<rotDeg>(ker)

◆ b

#define b   get_b<rotDeg>(ker)

◆ c

#define c   get_c<rotDeg>(ker)

◆ d

#define d   get_d<rotDeg>(ker)

◆ DEF_GETTER [1/4]

#define DEF_GETTER (   x)    template <RotationDegree rotDeg> uint32_t inline get_##x(const Kernel_3x3& ker) { return ker.x; }

Definition at line 628 of file xbrz.cpp.

◆ DEF_GETTER [2/4]

#define DEF_GETTER (   x,
 
)    template <> inline uint32_t get_##x<ROT_90>(const Kernel_3x3& ker) { return ker.y; }

Definition at line 628 of file xbrz.cpp.

◆ DEF_GETTER [3/4]

#define DEF_GETTER (   x,
 
)    template <> inline uint32_t get_##x<ROT_180>(const Kernel_3x3& ker) { return ker.y; }

Definition at line 628 of file xbrz.cpp.

◆ DEF_GETTER [4/4]

#define DEF_GETTER (   x,
 
)    template <> inline uint32_t get_##x<ROT_270>(const Kernel_3x3& ker) { return ker.y; }

Definition at line 628 of file xbrz.cpp.

◆ e

#define e   get_e<rotDeg>(ker)

◆ f

#define f   get_f<rotDeg>(ker)

◆ FORCE_INLINE

#define FORCE_INLINE   inline

Definition at line 184 of file xbrz.cpp.

◆ g

#define g   get_g<rotDeg>(ker)

◆ h

#define h   get_h<rotDeg>(ker)

◆ i

#define i   get_i<rotDeg>(ker)