Results 1 to 4 of 4

Thread: Arbitrary-precision arithmetic

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Location
    Kingisepp, Russia
    Posts
    11

    Arbitrary-precision arithmetic

    Hello there!

    There any ready-made realization of arbitrary-precision arithmetic of floating point numbers?

  2. #2
    Junior Member
    Join Date
    Nov 2011
    Posts
    10

    Re: Arbitrary-precision arithmetic

    Hi!

    Unfortunately there isn't any built in libraries to deal with big numbers.

    I made a program which works with 1024 bit unsigned integer numbers to calculate factorial up to 150, you can find it here:
    http://grid.kfki.hu/afs/szaqaei/web/szi ... factorial/

    And you can find an OpenCL program which uses 128 bit floating point numbers to deal with Mandelbroth sets:
    http://www.bealto.com/mp-mandelbrot_fp128-opencl.html

    I hope these will help you
    Adam

  3. #3
    Junior Member
    Join Date
    Sep 2011
    Location
    Kingisepp, Russia
    Posts
    11

    Re: Arbitrary-precision arithmetic

    Quote Originally Posted by SAdam
    Hi!

    Unfortunately there isn't any built in libraries to deal with big numbers.

    I made a program which works with 1024 bit unsigned integer numbers to calculate factorial up to 150, you can find it here:
    http://grid.kfki.hu/afs/szaqaei/web/szi ... factorial/

    And you can find an OpenCL program which uses 128 bit floating point numbers to deal with Mandelbroth sets:
    http://www.bealto.com/mp-mandelbrot_fp128-opencl.html

    I hope these will help you
    Adam
    Second link interesting, but not usefull. But i find that document:
    http://meseec.ce.rit.edu/eecc250-winter ... 7-2000.pdf

    And now I'm working to create a double and float128. If I succeed, will upload here source code.

  4. #4
    Junior Member
    Join Date
    Sep 2011
    Location
    Kingisepp, Russia
    Posts
    11

    Re: Arbitrary-precision arithmetic

    Quote Originally Posted by BratSinot
    And now I'm working to create a double and float128. If I succeed, will upload here source code.
    I'm stupid. I did not immediately find the source from the second link.

Similar Threads

  1. arbitrary size matrix multiplication
    By lxu in forum OpenCL
    Replies: 1
    Last Post: 02-13-2013, 02:17 PM
  2. Error in pointer arithmetic
    By exoide in forum OpenCL
    Replies: 2
    Last Post: 02-02-2012, 03:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •