mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
268 B
17 lines
268 B
#include "sol.h"
|
|
|
|
/* NT now has MulDiv exported, so use it!! */
|
|
|
|
INT APIENTRY MulDiv( INT w, INT Number, INT Denom )
|
|
{
|
|
|
|
LONG lResult;
|
|
|
|
lResult = w*Number;
|
|
if( !Denom )
|
|
return( (lResult >= 0) ? 0x7FFF : -32767 );
|
|
else {
|
|
lResult /= Denom;
|
|
return( (INT)lResult );
|
|
}
|
|
}
|