Giter Club home page Giter Club logo

ieee-754's Introduction

IEEE-754 calculator ported to Emscripten

See README for original description.

Build available in the gh-pages branch too: http://ysangkok.github.com/IEEE-754/index.xhtml

Building

Compatible emscripten for building found here: https://github.com/ysangkok/emscripten gmp for Emscripten and build instructions found here: https://github.com/kripken/gmp.js

Warning: You need to enable precise I32 math in Emscripten if using another branch than the linked one. You also need a working atoi() for negative numbers, but that is probably committed by the time you read this. You can check if it is by looking at the history of my emscripten branch.

Files

libgmp.a: needed to build c files
build.xml: ant build file
build.sh: just starts build with lots of debugging output
janus_frame.html: referenced by index.xhtml, buffers output
computeBin.php: obsoleted
computeDec.php: obsoleted
bin/*: obsoleted
src/{dtb2,btd2}.links.c: C ports of original scripts for faster (build time) and smaller builds
{dtb2,btd2}.links.html: Emscripten results wrapped in default Emscripten shell (the shell is not used)

Calling btd and dtb

btd and dtb that used to be called over JSON can still be executed.

For example, go to http://ysangkok.github.com/IEEE-754/index.xhtml Now enter

btd2("1", "1087", "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")

and the output of ./btd 1 1087 000...000 should appear in the JavaScript console.

ieee-754's People

Contributors

cvickery avatar ysangkok avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.