fp_trig.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /*
  2. fp_trig.c: floating-point math routines for the Linux-m68k
  3. floating point emulator.
  4. Copyright (c) 1998-1999 David Huggins-Daines / Roman Zippel.
  5. I hereby give permission, free of charge, to copy, modify, and
  6. redistribute this software, in source or binary form, provided that
  7. the above copyright notice and the following disclaimer are included
  8. in all such copies.
  9. THIS SOFTWARE IS PROVIDED "AS IS", WITH ABSOLUTELY NO WARRANTY, REAL
  10. OR IMPLIED.
  11. */
  12. #include "fp_emu.h"
  13. #include "fp_trig.h"
  14. struct fp_ext *
  15. fp_fsin(struct fp_ext *dest, struct fp_ext *src)
  16. {
  17. uprint("fsin\n");
  18. fp_monadic_check(dest, src);
  19. return dest;
  20. }
  21. struct fp_ext *
  22. fp_fcos(struct fp_ext *dest, struct fp_ext *src)
  23. {
  24. uprint("fcos\n");
  25. fp_monadic_check(dest, src);
  26. return dest;
  27. }
  28. struct fp_ext *
  29. fp_ftan(struct fp_ext *dest, struct fp_ext *src)
  30. {
  31. uprint("ftan\n");
  32. fp_monadic_check(dest, src);
  33. return dest;
  34. }
  35. struct fp_ext *
  36. fp_fasin(struct fp_ext *dest, struct fp_ext *src)
  37. {
  38. uprint("fasin\n");
  39. fp_monadic_check(dest, src);
  40. return dest;
  41. }
  42. struct fp_ext *
  43. fp_facos(struct fp_ext *dest, struct fp_ext *src)
  44. {
  45. uprint("facos\n");
  46. fp_monadic_check(dest, src);
  47. return dest;
  48. }
  49. struct fp_ext *
  50. fp_fatan(struct fp_ext *dest, struct fp_ext *src)
  51. {
  52. uprint("fatan\n");
  53. fp_monadic_check(dest, src);
  54. return dest;
  55. }
  56. struct fp_ext *
  57. fp_fsinh(struct fp_ext *dest, struct fp_ext *src)
  58. {
  59. uprint("fsinh\n");
  60. fp_monadic_check(dest, src);
  61. return dest;
  62. }
  63. struct fp_ext *
  64. fp_fcosh(struct fp_ext *dest, struct fp_ext *src)
  65. {
  66. uprint("fcosh\n");
  67. fp_monadic_check(dest, src);
  68. return dest;
  69. }
  70. struct fp_ext *
  71. fp_ftanh(struct fp_ext *dest, struct fp_ext *src)
  72. {
  73. uprint("ftanh\n");
  74. fp_monadic_check(dest, src);
  75. return dest;
  76. }
  77. struct fp_ext *
  78. fp_fatanh(struct fp_ext *dest, struct fp_ext *src)
  79. {
  80. uprint("fatanh\n");
  81. fp_monadic_check(dest, src);
  82. return dest;
  83. }
  84. struct fp_ext *
  85. fp_fsincos0(struct fp_ext *dest, struct fp_ext *src)
  86. {
  87. uprint("fsincos0\n");
  88. return dest;
  89. }
  90. struct fp_ext *
  91. fp_fsincos1(struct fp_ext *dest, struct fp_ext *src)
  92. {
  93. uprint("fsincos1\n");
  94. return dest;
  95. }
  96. struct fp_ext *
  97. fp_fsincos2(struct fp_ext *dest, struct fp_ext *src)
  98. {
  99. uprint("fsincos2\n");
  100. return dest;
  101. }
  102. struct fp_ext *
  103. fp_fsincos3(struct fp_ext *dest, struct fp_ext *src)
  104. {
  105. uprint("fsincos3\n");
  106. return dest;
  107. }
  108. struct fp_ext *
  109. fp_fsincos4(struct fp_ext *dest, struct fp_ext *src)
  110. {
  111. uprint("fsincos4\n");
  112. return dest;
  113. }
  114. struct fp_ext *
  115. fp_fsincos5(struct fp_ext *dest, struct fp_ext *src)
  116. {
  117. uprint("fsincos5\n");
  118. return dest;
  119. }
  120. struct fp_ext *
  121. fp_fsincos6(struct fp_ext *dest, struct fp_ext *src)
  122. {
  123. uprint("fsincos6\n");
  124. return dest;
  125. }
  126. struct fp_ext *
  127. fp_fsincos7(struct fp_ext *dest, struct fp_ext *src)
  128. {
  129. uprint("fsincos7\n");
  130. return dest;
  131. }