Leaked source code of windows server 2003
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

  1. /***
  2. *fsqrt.c - square root helper
  3. *
  4. * Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Square root helper routine to be used with the i386
  8. *
  9. *Revision History:
  10. * 10-20-91 GDP written
  11. *
  12. *******************************************************************************/
  13. double _fsqrt(double x)
  14. {
  15. double result;
  16. _asm{
  17. fld x
  18. fsqrt
  19. fstp result
  20. }
  21. return result;
  22. }