if x and y is long(that's 32 bits integer in VC).
Just
__int64 a=(__int64)x*(__int64)y;
Just
__int64 a=(__int64)x*(__int64)y;
解决方案 »
- 机器上有四块网卡,两两相连,如何知道那块网卡和那块网卡相连?
- 一个类的public成员函数,输出一个指针(返回值或者通过二级指针输出)我希望外部对于这个指针不能delete怎么办?
- [简单问题]实时显示鼠标位置坐标后,出现不断显示的问题。如何消除
- 自制安装程序
- 小弟有两个问题急待解决,望各位大侠慷慨相助!
- winsocket编程的疑惑:什么情况会导致丢包?
- 请教SDK下怎么显示进度条?
- windows操作系统/我的文档/My Pictures里的图片预览功能,谁知道怎吗做的?
- 【求助】关于ON_NOTIFY_REFLECT在DLL中的响应
- 一种不用数字签证使ActiveX运行的方法??(30分全给了)
- 在VC中如何锁定系统?
- 急急急!!!请用过JFIF(JPEG)的高手进一进来。。78分全部给了。。请别浪费!
LONGLONG Int32x32To64(
LONG Multiplier, // the first signed 32-bit integer
LONG Multiplicand // the second signed 32-bit integer
);
无符号的
ULONGLONG UInt32x32To64(
DWORD Multiplier, // the first unsigned 32-bit integer
DWORD Multiplicand // the second unsigned 32-bit integer
);
虽然形式上是两个函数,实际上内部作过优化,效率很高。
http://duz.at.china.com/math/index.html
或
htpp://duz.home.chinaren.com/math/index.html