ArmNN
 22.08
EthosnRefConvImpl.cpp File Reference
#include "EthosnRefConvImpl.hpp"
#include <armnn/utility/Assert.hpp>
#include <cmath>
#include <limits>

Go to the source code of this file.

Namespaces

 armnn
 Copyright (c) 2021 ARM Limited and Contributors.
 

Macros

#define SATURATE_VAL_S_32S(WIDTH, VAL)
 

Macro Definition Documentation

◆ SATURATE_VAL_S_32S

#define SATURATE_VAL_S_32S (   WIDTH,
  VAL 
)
Value:
(static_cast<int32_t>(VAL > ((static_cast<int64_t>(1) << (WIDTH - 1)) - 1) \
? ((static_cast<int64_t>(1) << (WIDTH - 1)) - 1) \
: VAL < (-1 * (static_cast<int64_t>(1) << (WIDTH - 1))) \
? (-1 * (static_cast<int64_t>(1) << (WIDTH - 1))) \
: VAL))

Definition at line 41 of file EthosnRefConvImpl.cpp.

Referenced by EthosnRefQuantizedMultiplierSmallerThanOne::operator*().