本文整理汇总了C++中CLR_RT_StackFrame::SetResult_I8方法的典型用法代码示例。如果您正苦于以下问题:C++ CLR_RT_StackFrame::SetResult_I8方法的具体用法?C++ CLR_RT_StackFrame::SetResult_I8怎么用?C++ CLR_RT_StackFrame::SetResult_I8使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLR_RT_StackFrame
的用法示例。
在下文中一共展示了CLR_RT_StackFrame::SetResult_I8方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
HRESULT Library_corlib_native_System_Math::Floor___STATIC__R8__R8( CLR_RT_StackFrame& stack )
{
NATIVE_PROFILE_CLR_CORE();
TINYCLR_HEADER();
CLR_INT64 d = stack.Arg0().NumericByRefConst().r8;
CLR_INT64 res = (CLR_INT64)( d & (~CLR_RT_HeapBlock::HB_DoubleMask) );
stack.SetResult_I8( res );
TINYCLR_NOCLEANUP_NOLABEL();
}
示例2: get_GlitchFilterTime___STATIC__mscorlibSystemTimeSpan
HRESULT Library_spot_hardware_native_Microsoft_SPOT_Hardware_Cpu::get_GlitchFilterTime___STATIC__mscorlibSystemTimeSpan( CLR_RT_StackFrame& stack )
{
NATIVE_PROFILE_CLR_HARDWARE();
TINYCLR_HEADER();
CLR_INT64 val = (CLR_INT64)::CPU_GPIO_GetDebounce() * TIME_CONVERSION__TO_MILLISECONDS;
stack.SetResult_I8( val );
stack.TopValue().ChangeDataType( DATATYPE_TIMESPAN );
TINYCLR_NOCLEANUP_NOLABEL();
}
开发者ID:EddieGarmon,项目名称:netduino-netmf,代码行数:13,代码来源:spot_hardware_native_Microsoft_SPOT_Hardware_Cpu.cpp
示例3:
HRESULT Library_corlib_native_System_BitConverter::DoubleToInt64Bits___STATIC__I8__R8( CLR_RT_StackFrame& stack )
{
NATIVE_PROFILE_CLR_CORE();
TINYCLR_HEADER();
double input;
input = stack.Arg0().NumericByRefConst().r8;
__int64* p;
p = reinterpret_cast<__int64*>(&input);
stack.SetResult_I8(*p);
TINYCLR_NOCLEANUP_NOLABEL();
}
示例4:
HRESULT Library_corlib_native_System_BitConverter::DoubleToInt64Bits___STATIC__I8__R8(CLR_RT_StackFrame& stack)
{
NATIVE_PROFILE_CLR_CORE();
TINYCLR_HEADER();
#if !defined(TINYCLR_EMULATED_FLOATINGPOINT)
double input = stack.Arg0().NumericByRefConst().r8;
#else
CLR_INT64 input = stack.Arg0().NumericByRefConst().r8;
#endif
__int64* p = reinterpret_cast<__int64*>(&input);
stack.SetResult_I8(*p);
TINYCLR_NOCLEANUP_NOLABEL();
}
示例5: get_DebounceTimeout___mscorlibSystemTimeSpan
HRESULT Library_windows_devices_native_Windows_Devices_Gpio_GpioPin::get_DebounceTimeout___mscorlibSystemTimeSpan( CLR_RT_StackFrame& stack )
{
TINYCLR_HEADER();
GPIO_PIN pin;
CLR_INT64 value;
CLR_RT_HeapBlock* pThis = stack.This(); FAULT_ON_NULL(pThis);
if (pThis[ FIELD__m_disposed ].NumericByRef().s1 != 0)
{
TINYCLR_SET_AND_LEAVE(CLR_E_OBJECT_DISPOSED);
}
pin = (GPIO_PIN)( pThis[ FIELD__m_pinNumber ].NumericByRefConst().u4 );
value = (CLR_INT64)::CPU_GPIO_GetPinDebounce( pin ) * TIME_CONVERSION__TO_MILLISECONDS;
stack.SetResult_I8( value );
stack.TopValue().ChangeDataType( DATATYPE_TIMESPAN );
TINYCLR_NOCLEANUP();
}
开发者ID:Ayati1987,项目名称:netmf-interpreter,代码行数:20,代码来源:windows_devices_native_Windows_Devices_Gpio_GpioPin.cpp
示例6: SetResult_INT64
void SetResult_INT64( CLR_RT_StackFrame &stackFrame, INT64 value )
{
NATIVE_PROFILE_CLR_CORE();
stackFrame.SetResult_I8( value );
}