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.
23 lines
438 B
23 lines
438 B
/***
|
|
*fsqrt.c - square root helper
|
|
*
|
|
* Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
|
|
*
|
|
*Purpose:
|
|
* Square root helper routine to be used with the i386
|
|
*
|
|
*Revision History:
|
|
* 10-20-91 GDP written
|
|
*
|
|
*******************************************************************************/
|
|
|
|
double _fsqrt(double x)
|
|
{
|
|
double result;
|
|
_asm{
|
|
fld x
|
|
fsqrt
|
|
fstp result
|
|
}
|
|
return result;
|
|
}
|