YAKL
YAKL
src
extensions
intrinsics
YAKL_intrinsics_mod.h
Go to the documentation of this file.
1
2
#pragma once
3
// Included by YAKL_intrinsics.h
4
5
__YAKL_NAMESPACE_WRAPPER_BEGIN__
6
namespace
yakl
{
7
namespace
intrinsics {
8
9
template
<
class
T1,
class
T2>
10
YAKL_INLINE
decltype(T1() - ((
int
)(T1()/T2()) * T2()))
mod
(T1 a, T2 b) {
return
a - ((int)(a/b) * b); }
11
12
}
13
}
14
__YAKL_NAMESPACE_WRAPPER_END__
15
__YAKL_NAMESPACE_WRAPPER_END__
#define __YAKL_NAMESPACE_WRAPPER_END__
Definition:
YAKL.h:20
__YAKL_NAMESPACE_WRAPPER_BEGIN__
#define __YAKL_NAMESPACE_WRAPPER_BEGIN__
Definition:
YAKL.h:19
YAKL_INLINE
#define YAKL_INLINE
Used to decorate functions called from kernels (parallel_for and parallel_outer) or from CPU function...
Definition:
YAKL_defines.h:140
yakl
yakl::intrinsics::mod
decltype(T1() -((int)(T1()/T2()) *T2())) YAKL_INLINE mod(T1 a, T2 b)
Definition:
YAKL_intrinsics_mod.h:10
Generated by
1.8.17