Created
March 24, 2013 20:36
-
-
Save sherief/5233408 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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