Additional-mpfr-notes.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <html lang="en">
  2. <head>
  3. <title>Additional mpfr notes - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="mpfr.html#mpfr" title="mpfr">
  9. <link rel="prev" href="mpfr-exceptions.html#mpfr-exceptions" title="mpfr exceptions">
  10. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  11. <meta http-equiv="Content-Style-Type" content="text/css">
  12. <style type="text/css"><!--
  13. pre.display { font-family:inherit }
  14. pre.format { font-family:inherit }
  15. pre.smalldisplay { font-family:inherit; font-size:smaller }
  16. pre.smallformat { font-family:inherit; font-size:smaller }
  17. pre.smallexample { font-size:smaller }
  18. pre.smalllisp { font-size:smaller }
  19. span.sc { font-variant:small-caps }
  20. span.roman { font-family:serif; font-weight:normal; }
  21. span.sansserif { font-family:sans-serif; font-weight:normal; }
  22. --></style>
  23. </head>
  24. <body>
  25. <div class="node">
  26. <a name="Additional-mpfr-notes"></a>
  27. <p>
  28. Previous:&nbsp;<a rel="previous" accesskey="p" href="mpfr-exceptions.html#mpfr-exceptions">mpfr exceptions</a>,
  29. Up:&nbsp;<a rel="up" accesskey="u" href="mpfr.html#mpfr">mpfr</a>
  30. <hr>
  31. </div>
  32. <h4 class="subsection">D.14.10 Additional <code>mpfr</code> notes</h4>
  33. <p>The <code>eq</code> and <code>urandomb</code> functions depend not only on the
  34. <code>mpfr</code> library but on the <code>gmp</code> library
  35. <a name="index-gmp-library-801"></a>(<a href="http://ftp.gnu.org/gnu/gmp">http://ftp.gnu.org/gnu/gmp</a>). It's possible for them to be
  36. unavailable on a host without <code>gmp</code> even if the rest of the
  37. <code>mpfr</code> library is properly configured.
  38. <p>The file <code>mpfr.c</code> in the <code>avram</code> source tree exports a
  39. couple of functions that may be of use to C hackers interested in
  40. further development of <code>avram</code> with <code>mpfr</code>. The functions
  41. <code>avm_mpfr_of_list</code> and <code>avm_list_of_mpfr</code> convert between
  42. the native representation for <code>mpfr</code> numbers and the caching list
  43. representation used by <code>avram</code> (<a href="Type-Conversions.html#Type-Conversions">Type Conversions</a>). This
  44. conversion is non-trivial because the numbers are not stored
  45. contiguously.
  46. </body></html>