Changeset 984


Ignore:
Timestamp:
Sep 27, 2011, 1:20:50 AM (8 years ago)
Author:
sam
Message:

test: add a 10-line example program that computes Pi to the 150th digit.

Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r945 r984  
    6060test/quad
    6161test/sandbox
     62test/math/pi
    6263tools/make-font
    6364# Our data
  • trunk/configure.ac

    r981 r984  
    323323  src/Makefile
    324324  test/Makefile
     325  test/math/Makefile
    325326  gfx/Makefile
    326327  gfx/font/Makefile
  • trunk/src/real.h

    r983 r984  
    2424class real
    2525{
    26     static int const BIGITS = 32;
    27 
    2826public:
    2927    inline real() { }
     
    6159
    6260private:
     61    /* XXX: changing this requires tuning real::fres (the number of
     62     * Newton-Raphson iterations) and real::print (the number of printed
     63     * digits) */
     64    static int const BIGITS = 32;
     65
    6366    uint32_t m_size;
    6467    uint32_t m_signexp;
  • trunk/test/Makefile.am

    r978 r984  
     1
     2SUBDIRS = math
    13
    24AM_CPPFLAGS = -I$(top_srcdir)/src
Note: See TracChangeset for help on using the changeset viewer.