bad.c 650 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* STUB MATH LIBRARY */
  2. double acos(double x) {
  3. return 0.0;
  4. }
  5. double asin(double x) {
  6. return 0.0;
  7. }
  8. double atan(double x) {
  9. return 0.0;
  10. }
  11. double atan2(double y, double x) {
  12. return 0.0;
  13. }
  14. double ceil(double x) {
  15. return 0.0; /* extract and convert? */
  16. }
  17. double cosh(double x) {
  18. return 0.0;
  19. }
  20. double ldexp(double a, int exp) {
  21. double out = a;
  22. while (exp) {
  23. out *= 2.0;
  24. exp--;
  25. }
  26. return out;
  27. }
  28. double log(double x) {
  29. return 0.0;
  30. }
  31. double log10(double x) {
  32. return 0.0;
  33. }
  34. double log2(double x) {
  35. return 0.0;
  36. }
  37. double sinh(double x) {
  38. return 0.0;
  39. }
  40. double tan(double x) {
  41. return 0.0;
  42. }
  43. double tanh(double x) {
  44. return 0.0;
  45. }