ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert_micro::execute::pal::FloorModFn< T, > Struct Template Reference

#include <PALBinaryOpCommon.h>

Public Member Functions

operator() (T lhs, T rhs)
 

Detailed Description

template<typename T, std::enable_if_t< std::is_floating_point< T >::value, bool > = true>
struct onert_micro::execute::pal::FloorModFn< T, >

Definition at line 43 of file PALBinaryOpCommon.h.

Member Function Documentation

◆ operator()()

template<typename T , std::enable_if_t< std::is_floating_point< T >::value, bool > = true>
T onert_micro::execute::pal::FloorModFn< T, >::operator() ( lhs,
rhs 
)
inline

Definition at line 45 of file PALBinaryOpCommon.h.

46 {
47 T trunc_mod = std::fmod(lhs, rhs);
48 return (trunc_mod != 0) && ((rhs < 0) != (trunc_mod < 0)) ? (trunc_mod + rhs) : trunc_mod;
49 }

The documentation for this struct was generated from the following file: