構造体 テンプレート Onikiri::PPC64Linux::Operation::PPC64FPToInt< Type, TSrc, RoundMode >

#include <PPC64Operation.h>

すべてのメンバ一覧

Public メソッド

Type operator() (EmulatorUtility::OpEmulationState *opState)


説明

template<typename Type, typename TSrc, typename RoundMode = IntConst<int, FE_ROUNDDEFAULT>>
struct Onikiri::PPC64Linux::Operation::PPC64FPToInt< Type, TSrc, RoundMode >

PPC64Operation.h277 行で定義されています。


関数

template<typename Type, typename TSrc, typename RoundMode = IntConst<int, FE_ROUNDDEFAULT>>
Type Onikiri::PPC64Linux::Operation::PPC64FPToInt< Type, TSrc, RoundMode >::operator() ( EmulatorUtility::OpEmulationState opState  )  [inline]

PPC64Operation.h279 行で定義されています。

00280     {
00281         typedef typename EmulatorUtility::signed_type<Type>::type SignedType;
00282         typedef typename TSrc::result_type FPType;
00283         // 2
00284         const SignedType maxValue = std::numeric_limits<SignedType>::max();
00285         const SignedType minValue = std::numeric_limits<SignedType>::min();
00286         FPType value = static_cast<FPType>( TSrc()(opState) );
00287         
00288         if (value > static_cast<FPType>(maxValue))
00289             return maxValue;
00290         else if (value < static_cast<FPType>(minValue))
00291             return minValue;
00292         else
00293             return static_cast<Type>(value);
00294     }


この構造体の説明は次のファイルから生成されました:
Onikiri2に対してTue Jun 18 15:33:08 2013に生成されました。  doxygen 1.4.7