Source code of Windows XP (NT5)
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.

59 lines
1.4 KiB

  1. page ,132
  2. ;***
  3. ;convert.inc - macros and defines for floating point/ascii convertion routines
  4. ;
  5. ; Copyright (c) 1989-2001, Microsoft Corporation. All rights reserved.
  6. ;
  7. ;Purpose:
  8. ; Macros and defines for floating point/ascii convertion routines
  9. ;
  10. ;Revision History:
  11. ;
  12. ; 04/17/89 WAJ Initial version. Assembeler version of convert.h
  13. ; 04/20/89 WAJ Now defines constants for $i10_output() OutputFlags
  14. ;
  15. ;*******************************************************************************
  16. ;*******************************************************************************
  17. ;
  18. ; Constants
  19. ;
  20. ;*******************************************************************************
  21. MAX_MAN_DIGITS equ 21 ; Largest number of decimal digits returned
  22. ;*
  23. ;* Flags returned by __StrToLd()
  24. ;*
  25. SLD_UNDERFLOW equ 1 ; Underflow occurred. Zero returned.
  26. SLD_OVERFLOW equ 2 ; Overflow occured. Infinity returned.
  27. SLD_NODIGITS equ 4 ; No digits were found. Zero returned.
  28. ;*
  29. ;* Output flags for $i10_output()
  30. ;*
  31. SO_FFORMAT equ 1 ; 'f' format. Use precision as number of digits to right of decimal.
  32. ;*******************************************************************************
  33. ;
  34. ; Structures
  35. ;
  36. ;*******************************************************************************
  37. FloatOutStruct struc
  38. FloatExp dw ?
  39. FloatSign db ?
  40. FloatStrLen db ?
  41. FloatStr db (MAX_MAN_DIGITS + 1) dup(?)
  42. FloatOutStruct ends