Web page to analyze IEEE-754 floating point values.
JavaScript C C++ PHP Shell Perl
Switch branches/tags
Nothing to show
Pull request Compare This branch is 33 commits ahead of cvickery:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
FAQ
bin
casperjs_tests
css
images
javascripts
nodeunit_tests
scripts
src
stylesheets
README
README.md
arguments.js
build.sh
computeBin.php
computeDec.php
concat.links.js
concat.links.notypedarrays.js
concat.links.typedarrays.js
favicon.ico
index.html
index.xhtml
libgmp.a
params.json

README.md

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.