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.

99 lines
1.5 KiB

  1. page ,132
  2. title 87ctrig - C interfaces - sin, cos, tan
  3. ;***
  4. ;87ctrig.asm - trig functions (8087/emulator version)
  5. ;
  6. ; Copyright (c) 1984-2001, Microsoft Corporation. All rights reserved.
  7. ;
  8. ;Purpose:
  9. ; C interfaces for the sin, cos, and tan functions (8087/emulator version)
  10. ;
  11. ;Revision History:
  12. ; 07-04-84 GFW initial version
  13. ; 05-08-87 BCM added C intrinsic interface (_CI...)
  14. ; 10-12-87 BCM changes for OS/2 Support Library
  15. ; 11-24-87 BCM added _loadds under ifdef DLL
  16. ; 01-18-88 BCM eliminated IBMC20; ifos2,noos2 ==> ifmt,nomt
  17. ; 08-26-88 WAJ 386 version
  18. ; 11-20-89 WAJ Don't need pascal for MTHREAD 386.
  19. ;
  20. ;*******************************************************************************
  21. .xlist
  22. include cruntime.inc
  23. .list
  24. .data
  25. extrn _OP_SINjmptab:word
  26. extrn _OP_COSjmptab:word
  27. extrn _OP_TANjmptab:word
  28. page
  29. CODESEG
  30. extrn _ctrandisp1:near
  31. extrn _ctrandisp2:near
  32. public oldsin
  33. oldsin proc
  34. mov edx, OFFSET _OP_SINjmptab
  35. trigdisp::
  36. jmp _ctrandisp1
  37. oldsin endp
  38. public oldcos
  39. oldcos proc
  40. mov edx, OFFSET _OP_COSjmptab
  41. jmp trigdisp
  42. oldcos endp
  43. public oldtan
  44. oldtan proc
  45. mov edx, OFFSET _OP_TANjmptab
  46. jmp trigdisp
  47. oldtan endp
  48. extrn _cintrindisp1:near
  49. extrn _cintrindisp2:near
  50. public _old_CIsin
  51. _old_CIsin proc
  52. mov edx, OFFSET _OP_SINjmptab
  53. itrigdisp::
  54. jmp _cintrindisp1
  55. _old_CIsin endp
  56. public _old_CIcos
  57. _old_CIcos proc
  58. mov edx, OFFSET _OP_COSjmptab
  59. jmp itrigdisp
  60. _old_CIcos endp
  61. public _old_CItan
  62. _old_CItan proc
  63. mov edx, OFFSET _OP_TANjmptab
  64. jmp itrigdisp
  65. _old_CItan endp
  66. end