Skip to content

Instantly share code, notes, and snippets.

@sherief
Created March 24, 2013 20:36
Show Gist options
  • Save sherief/5233408 to your computer and use it in GitHub Desktop.
Save sherief/5233408 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <soft-ieee754/ieee754.hpp>
using namespace std;
int main()
{
typedef IEEE754<10, 5, 15> fp16;
fp16 foo;
foo = 0;
for(int i = 0; i < 65536; ++i)
{
cout << float(foo) << endl;
foo = float(foo) + 1.0f;
}
cout << float(foo) << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment