gmp.js

A port of the GNU Multiple-Precision Library (GMP), a library for arbitrary precision arithmetic, to JavaScript using Emscripten

  • Owner: kripken/gmp.js
  • Platform:
  • License:: GNU General Public License v3.0
  • Category::
  • Topic:
  • Like:
    2
      Compare:

Github stars Tracking Chart

gmp.js

gmp.js is a port of the GNU Multiple-Precision Library (GMP), a library
for arbitrary precision arithmetic, to JavaScript using Emscripten.

GMP website: http://gmplib.org/

Steps to build

  • First run configure and make natively/normally. You will need some
    of the generated executables. Optionally, also build test.c and see
    that it works (see instructions inside test.c).

  • Run configure using something like

      EMCONFIGURE_JS=1 emconfigure ./configure ABI=longlong --build=none --host=none
    
  • Edit config.h and disable HAVE_QUAD_T, HAVE_OBSTACK_VPRINTF

  • Run make using something like

      make -j 2
    
  • Run emscripten.sh which will build the main test file, link it, then
    compile to JavaScript using Emscripten

  • Run the code using something like

      node complete.js 500

Main metrics

Overview
Name With Ownerkripken/gmp.js
Primary LanguageC
Program languageC (Language Count: 7)
Platform
License:GNU General Public License v3.0
所有者活动
Created At2011-10-16 17:27:20
Pushed At2013-04-15 00:23:27
Last Commit At2013-04-14 17:23:22
Release Count0
用户参与
Stargazers Count45
Watchers Count8
Fork Count12
Commits Count13
Has Issues Enabled
Issues Count5
Issue Open Count2
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private