MATHLIB.LST 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * MATHLIB.MOD - Floating point support (see also COREMATH.A) *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1987..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 (*%F _fdata *)
  13. 12 (*# call(seg_name => null) *)
  14. 13 (*# data(seg_name => null) *)
  15. 14 (*%E *)
  16. 15
  17. 16 (*# check(stack=>off,
  18. 17 index=>off,
  19. 18 range=>off,
  20. 19 overflow=>off,
  21. 20 nil_ptr=>off) *)
  22. 21 (*# module(implementation=>off) *)
  23. 22
  24. 23 IMPLEMENTATION MODULE MATHLIB;
  25. 24
  26. 25 PROCEDURE LoadControlWord(C : BITSET); IN AsmLib;
  27. ***** ^ undeclared identifier
  28. ***** ^ not supported yet
  29. 26 PROCEDURE StoreControlWord() : BITSET; IN AsmLib;
  30. ***** ^ undeclared identifier
  31. ***** ^ not supported yet
  32. 27 PROCEDURE ClearExceptions(); IN AsmLib;
  33. ***** ^ not supported yet
  34. 28 PROCEDURE StoreEnvironment(VAR Env: Environment); IN AsmLib;
  35. ***** ^ undeclared identifier
  36. ***** ^ not supported yet
  37. 29 PROCEDURE InternalBcdToLong(A: PackedBcd) : LONGREAL; IN AsmLib;
  38. ***** ^ undeclared identifier
  39. ***** ^ not supported yet
  40. 30
  41. 31 PROCEDURE Rexp(VAR I : INTEGER;A : LONGREAL) : LONGREAL;
  42. 32
  43. 33 BEGIN
  44. 34 RETURN CoreMath.frexp(A, I);
  45. ***** ^ undeclared identifier
  46. ***** ^ not supported yet
  47. ***** ^ not supported yet
  48. 35 END Rexp;
  49. ***** ^ not supported yet
  50. 36
  51. 37 PROCEDURE LongToBcd(A: LONGREAL) : PackedBcd;
  52. ***** ^ undeclared identifier
  53. 38 VAR res:PackedBcd;
  54. ***** ^ undeclared identifier
  55. 39 BEGIN
  56. 40 CoreMath._bcd(TEMPREAL(A),NearADR(res));
  57. ***** ^ undeclared identifier
  58. ***** ^ not supported yet
  59. ***** ^ undeclared identifier
  60. ***** ^ not supported yet
  61. ***** ^ undeclared identifier
  62. ***** ^ not supported yet
  63. 41 RETURN res;
  64. ***** ^ not supported yet
  65. 42 END LongToBcd;
  66. ***** ^ not supported yet
  67. 43
  68. 44
  69. 45 PROCEDURE BcdToLong(A: PackedBcd) : LONGREAL;
  70. ***** ^ undeclared identifier
  71. 46 BEGIN
  72. 47 RETURN InternalBcdToLong(A);
  73. ***** ^ not supported yet
  74. ***** ^ not supported yet
  75. 48 END BcdToLong;
  76. ***** ^ not supported yet
  77. 49
  78. 50 PROCEDURE IntPow(X:LONGREAL;K:INTEGER):LONGREAL;
  79. 51 BEGIN
  80. 52 RETURN LONGREAL(CoreMath._pow_int(TEMPREAL(X),K));
  81. ***** ^ undeclared identifier
  82. ***** ^ not supported yet
  83. ***** ^ undeclared identifier
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. 53 END IntPow;
  87. ***** ^ not supported yet
  88. 54
  89. 55 PROCEDURE ATan2(X,Y : LONGREAL) : LONGREAL;
  90. 56
  91. 57 BEGIN
  92. 58 RETURN CoreMath.atan2(Y, X);
  93. ***** ^ undeclared identifier
  94. ***** ^ not supported yet
  95. ***** ^ not supported yet
  96. 59 END ATan2;
  97. ***** ^ not supported yet
  98. 60
  99. 61 END MATHLIB.
  100. ***** ^ not supported yet
  101. 38 errors