GNU Radio's BLOCKSTREAM Package
max.h
Go to the documentation of this file.
1 #ifndef MAX_H
2 #define MAX_H
3 
4 #include <mipp/mipp.h>
5 
6 #ifndef _MSC_VER
7 #ifndef __forceinline
8 #define __forceinline inline __attribute__((always_inline))
9 #endif
10 #endif
11 
12 namespace aff3ct
13 {
14 namespace tools
15 {
16 // -------------------------------------------------------------------------- special function prototypes for templates
17 
18 template <typename R>
19 using proto_max = R (*)(const R& a, const R& b);
20 
21 template <typename R>
22 using proto_max_i = mipp::Reg<R> (*)(const mipp::Reg<R> a, const mipp::Reg<R> b);
23 
24 // ------------------------------------------------------------------------------------------- special function headers
25 
26 template <typename R> __forceinline R max (const R& a, const R& b);
27 template <typename R> __forceinline R max_linear (const R& a, const R& b);
28 template <typename R> __forceinline R max_star (const R& a, const R& b);
29 template <typename R> __forceinline R max_star_safe(const R& a, const R& b);
30 
31 template <typename R> __forceinline mipp::Reg<R> max_i (const mipp::Reg<R> a, const mipp::Reg<R> b);
32 template <typename R> __forceinline mipp::Reg<R> max_linear_i(const mipp::Reg<R> a, const mipp::Reg<R> b);
33 template <typename R> __forceinline mipp::Reg<R> max_star_i (const mipp::Reg<R> a, const mipp::Reg<R> b);
34 }
35 }
36 
37 #include "max.hxx"
38 
39 #endif /* MAX_H */
__forceinline mipp::Reg< R > max_star_i(const mipp::Reg< R > a, const mipp::Reg< R > b)
#define __forceinline
Definition: max.h:8
__forceinline mipp::Reg< R > max_linear_i(const mipp::Reg< R > a, const mipp::Reg< R > b)
R(*)(const R &a, const R &b) proto_max
Definition: max.h:19
__forceinline R max_linear(const R &a, const R &b)
R_32 R
Definition: types.h:51
mipp::Reg< R >(*)(const mipp::Reg< R > a, const mipp::Reg< R > b) proto_max_i
Definition: max.h:22
__forceinline R max(const R &a, const R &b)
__forceinline R max_star(const R &a, const R &b)
Definition: mipp.h:745
__forceinline R max_star_safe(const R &a, const R &b)
__forceinline mipp::Reg< R > max_i(const mipp::Reg< R > a, const mipp::Reg< R > b)