{"action":"created","comment":{"url":"https://api.github.com/repos/Geof23/QFP/pulls/comments/76153584","id":76153584,"diff_hunk":"@@ -37,19 +37,51 @@ std::ostream& operator<<(std::ostream& os, const unsigned __int128 &i){\n   return os;\n }\n \n-std::string\n-getSortName(sort_t val){\n-  switch(val){\n-  case lt:\n-    return \"lt\";\n-  case gt:\n-    return \"gt\";\n-  case bi:\n-    return \"bi\";\n-  case def:\n-    return \"us\";\n-  default:\n-    return \"something bad happened, undefined sort type\";\n+namespace FPHelpers{\n+    auto\n+  swap_float_int(unsigned int val) -> float{\n+    return *reinterpret_cast<float*>(&val);\n+  }\n+\n+  auto\n+  swap_float_int(unsigned long val) -> double{\n+     return *reinterpret_cast<double*>(&val);\n+  }\n+\n+  auto\n+  swap_float_int(unsigned __int128 val) -> long double{\n+    return *reinterpret_cast<long double*>(&val);\n+  }\n+\n+  auto\n+  swap_float_int(float val) -> unsigned int{\n+    return *reinterpret_cast<unsigned int*>(&val);\n+  }\n+\n+  auto\n+  swap_float_int(double val) -> unsigned long{\n+    return *reinterpret_cast<unsigned long*>(&val);\n+  }\n+\n+  auto\n+  swap_float_int(long double val) -> unsigned __int128{\n+    return *reinterpret_cast<unsigned __int128*>(&val);\n   }\n }\n+\n+// std::string\n+// getSortName(sort_t val){","path":"perpVects/QFPHelpers.cpp","position":50,"original_position":50,"commit_id":"57db3da0327a58ab91d6a9ee1c70501608c4db5b","original_commit_id":"57db3da0327a58ab91d6a9ee1c70501608c4db5b","user":{"login":"mikebentley15","id":8606516,"avatar_url":"https://avatars.githubusercontent.com/u/8606516?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebentley15","html_url":"https://github.com/mikebentley15","followers_url":"https://api.github.com/users/mikebentley15/followers","following_url":"https://api.github.com/users/mikebentley15/following{/other_user}","gists_url":"https://api.github.com/users/mikebentley15/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebentley15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebentley15/subscriptions","organizations_url":"https://api.github.com/users/mikebentley15/orgs","repos_url":"https://api.github.com/users/mikebentley15/repos","events_url":"https://api.github.com/users/mikebentley15/events{/privacy}","received_events_url":"https://api.github.com/users/mikebentley15/received_events","type":"User","site_admin":false},"body":"I'd vote for deleting this function.  If you need it again, you can get it from the git history.  But your call.","created_at":"2016-08-24T22:46:39Z","updated_at":"2016-08-24T22:46:39Z","html_url":"https://github.com/Geof23/QFP/pull/13#discussion_r76153584","pull_request_url":"https://api.github.com/repos/Geof23/QFP/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/Geof23/QFP/pulls/comments/76153584"},"html":{"href":"https://github.com/Geof23/QFP/pull/13#discussion_r76153584"},"pull_request":{"href":"https://api.github.com/repos/Geof23/QFP/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/Geof23/QFP/pulls/13","id":82512225,"html_url":"https://github.com/Geof23/QFP/pull/13","diff_url":"https://github.com/Geof23/QFP/pull/13.diff","patch_url":"https://github.com/Geof23/QFP/pull/13.patch","issue_url":"https://api.github.com/repos/Geof23/QFP/issues/13","number":13,"state":"open","locked":false,"title":"This greatly simplifies the float <-> int reinterpretation","user":{"login":"Geof23","id":5805839,"avatar_url":"https://avatars.githubusercontent.com/u/5805839?v=3","gravatar_id":"","url":"https://api.github.com/users/Geof23","html_url":"https://github.com/Geof23","followers_url":"https://api.github.com/users/Geof23/followers","following_url":"https://api.github.com/users/Geof23/following{/other_user}","gists_url":"https://api.github.com/users/Geof23/gists{/gist_id}","starred_url":"https://api.github.com/users/Geof23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geof23/subscriptions","organizations_url":"https://api.github.com/users/Geof23/orgs","repos_url":"https://api.github.com/users/Geof23/repos","events_url":"https://api.github.com/users/Geof23/events{/privacy}","received_events_url":"https://api.github.com/users/Geof23/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-24T09:48:09Z","updated_at":"2016-08-24T22:46:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa645fea66445fcf2627ca68e93a9556da678ccb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Geof23/QFP/pulls/13/commits","review_comments_url":"https://api.github.com/repos/Geof23/QFP/pulls/13/comments","review_comment_url":"https://api.github.com/repos/Geof23/QFP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Geof23/QFP/issues/13/comments","statuses_url":"https://api.github.com/repos/Geof23/QFP/statuses/57db3da0327a58ab91d6a9ee1c70501608c4db5b","head":{"label":"Geof23:rel_lt_gcc4.9","ref":"rel_lt_gcc4.9","sha":"57db3da0327a58ab91d6a9ee1c70501608c4db5b","user":{"login":"Geof23","id":5805839,"avatar_url":"https://avatars.githubusercontent.com/u/5805839?v=3","gravatar_id":"","url":"https://api.github.com/users/Geof23","html_url":"https://github.com/Geof23","followers_url":"https://api.github.com/users/Geof23/followers","following_url":"https://api.github.com/users/Geof23/following{/other_user}","gists_url":"https://api.github.com/users/Geof23/gists{/gist_id}","starred_url":"https://api.github.com/users/Geof23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geof23/subscriptions","organizations_url":"https://api.github.com/users/Geof23/orgs","repos_url":"https://api.github.com/users/Geof23/repos","events_url":"https://api.github.com/users/Geof23/events{/privacy}","received_events_url":"https://api.github.com/users/Geof23/received_events","type":"User","site_admin":false},"repo":{"id":42550629,"name":"QFP","full_name":"Geof23/QFP","owner":{"login":"Geof23","id":5805839,"avatar_url":"https://avatars.githubusercontent.com/u/5805839?v=3","gravatar_id":"","url":"https://api.github.com/users/Geof23","html_url":"https://github.com/Geof23","followers_url":"https://api.github.com/users/Geof23/followers","following_url":"https://api.github.com/users/Geof23/following{/other_user}","gists_url":"https://api.github.com/users/Geof23/gists{/gist_id}","starred_url":"https://api.github.com/users/Geof23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geof23/subscriptions","organizations_url":"https://api.github.com/users/Geof23/orgs","repos_url":"https://api.github.com/users/Geof23/repos","events_url":"https://api.github.com/users/Geof23/events{/privacy}","received_events_url":"https://api.github.com/users/Geof23/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Geof23/QFP","description":"A project to quickly detect discrepancies in floating point computation across hardware, compilers, libraries and software.","fork":false,"url":"https://api.github.com/repos/Geof23/QFP","forks_url":"https://api.github.com/repos/Geof23/QFP/forks","keys_url":"https://api.github.com/repos/Geof23/QFP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Geof23/QFP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Geof23/QFP/teams","hooks_url":"https://api.github.com/repos/Geof23/QFP/hooks","issue_events_url":"https://api.github.com/repos/Geof23/QFP/issues/events{/number}","events_url":"https://api.github.com/repos/Geof23/QFP/events","assignees_url":"https://api.github.com/repos/Geof23/QFP/assignees{/user}","branches_url":"https://api.github.com/repos/Geof23/QFP/branches{/branch}","tags_url":"https://api.github.com/repos/Geof23/QFP/tags","blobs_url":"https://api.github.com/repos/Geof23/QFP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Geof23/QFP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Geof23/QFP/git/refs{/sha}","trees_url":"https://api.github.com/repos/Geof23/QFP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Geof23/QFP/statuses/{sha}","languages_url":"https://api.github.com/repos/Geof23/QFP/languages","stargazers_url":"https://api.github.com/repos/Geof23/QFP/stargazers","contributors_url":"https://api.github.com/repos/Geof23/QFP/contributors","subscribers_url":"https://api.github.com/repos/Geof23/QFP/subscribers","subscription_url":"https://api.github.com/repos/Geof23/QFP/subscription","commits_url":"https://api.github.com/repos/Geof23/QFP/commits{/sha}","git_commits_url":"https://api.github.com/repos/Geof23/QFP/git/commits{/sha}","comments_url":"https://api.github.com/repos/Geof23/QFP/comments{/number}","issue_comment_url":"https://api.github.com/repos/Geof23/QFP/issues/comments{/number}","contents_url":"https://api.github.com/repos/Geof23/QFP/contents/{+path}","compare_url":"https://api.github.com/repos/Geof23/QFP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Geof23/QFP/merges","archive_url":"https://api.github.com/repos/Geof23/QFP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Geof23/QFP/downloads","issues_url":"https://api.github.com/repos/Geof23/QFP/issues{/number}","pulls_url":"https://api.github.com/repos/Geof23/QFP/pulls{/number}","milestones_url":"https://api.github.com/repos/Geof23/QFP/milestones{/number}","notifications_url":"https://api.github.com/repos/Geof23/QFP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Geof23/QFP/labels{/name}","releases_url":"https://api.github.com/repos/Geof23/QFP/releases{/id}","deployments_url":"https://api.github.com/repos/Geof23/QFP/deployments","created_at":"2015-09-15T22:35:11Z","updated_at":"2016-02-10T22:14:49Z","pushed_at":"2016-08-24T09:59:58Z","git_url":"git://github.com/Geof23/QFP.git","ssh_url":"git@github.com:Geof23/QFP.git","clone_url":"https://github.com/Geof23/QFP.git","svn_url":"https://github.com/Geof23/QFP","homepage":null,"size":106595,"stargazers_count":0,"watchers_count":0,"language":"FORTRAN","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Geof23:rel_lt","ref":"rel_lt","sha":"13d9bf2e404b3fd25cf73e0d588450137e3c5b8d","user":{"login":"Geof23","id":5805839,"avatar_url":"https://avatars.githubusercontent.com/u/5805839?v=3","gravatar_id":"","url":"https://api.github.com/users/Geof23","html_url":"https://github.com/Geof23","followers_url":"https://api.github.com/users/Geof23/followers","following_url":"https://api.github.com/users/Geof23/following{/other_user}","gists_url":"https://api.github.com/users/Geof23/gists{/gist_id}","starred_url":"https://api.github.com/users/Geof23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geof23/subscriptions","organizations_url":"https://api.github.com/users/Geof23/orgs","repos_url":"https://api.github.com/users/Geof23/repos","events_url":"https://api.github.com/users/Geof23/events{/privacy}","received_events_url":"https://api.github.com/users/Geof23/received_events","type":"User","site_admin":false},"repo":{"id":42550629,"name":"QFP","full_name":"Geof23/QFP","owner":{"login":"Geof23","id":5805839,"avatar_url":"https://avatars.githubusercontent.com/u/5805839?v=3","gravatar_id":"","url":"https://api.github.com/users/Geof23","html_url":"https://github.com/Geof23","followers_url":"https://api.github.com/users/Geof23/followers","following_url":"https://api.github.com/users/Geof23/following{/other_user}","gists_url":"https://api.github.com/users/Geof23/gists{/gist_id}","starred_url":"https://api.github.com/users/Geof23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geof23/subscriptions","organizations_url":"https://api.github.com/users/Geof23/orgs","repos_url":"https://api.github.com/users/Geof23/repos","events_url":"https://api.github.com/users/Geof23/events{/privacy}","received_events_url":"https://api.github.com/users/Geof23/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Geof23/QFP","description":"A project to quickly detect discrepancies in floating point computation across hardware, compilers, libraries and software.","fork":false,"url":"https://api.github.com/repos/Geof23/QFP","forks_url":"https://api.github.com/repos/Geof23/QFP/forks","keys_url":"https://api.github.com/repos/Geof23/QFP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Geof23/QFP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Geof23/QFP/teams","hooks_url":"https://api.github.com/repos/Geof23/QFP/hooks","issue_events_url":"https://api.github.com/repos/Geof23/QFP/issues/events{/number}","events_url":"https://api.github.com/repos/Geof23/QFP/events","assignees_url":"https://api.github.com/repos/Geof23/QFP/assignees{/user}","branches_url":"https://api.github.com/repos/Geof23/QFP/branches{/branch}","tags_url":"https://api.github.com/repos/Geof23/QFP/tags","blobs_url":"https://api.github.com/repos/Geof23/QFP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Geof23/QFP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Geof23/QFP/git/refs{/sha}","trees_url":"https://api.github.com/repos/Geof23/QFP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Geof23/QFP/statuses/{sha}","languages_url":"https://api.github.com/repos/Geof23/QFP/languages","stargazers_url":"https://api.github.com/repos/Geof23/QFP/stargazers","contributors_url":"https://api.github.com/repos/Geof23/QFP/contributors","subscribers_url":"https://api.github.com/repos/Geof23/QFP/subscribers","subscription_url":"https://api.github.com/repos/Geof23/QFP/subscription","commits_url":"https://api.github.com/repos/Geof23/QFP/commits{/sha}","git_commits_url":"https://api.github.com/repos/Geof23/QFP/git/commits{/sha}","comments_url":"https://api.github.com/repos/Geof23/QFP/comments{/number}","issue_comment_url":"https://api.github.com/repos/Geof23/QFP/issues/comments{/number}","contents_url":"https://api.github.com/repos/Geof23/QFP/contents/{+path}","compare_url":"https://api.github.com/repos/Geof23/QFP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Geof23/QFP/merges","archive_url":"https://api.github.com/repos/Geof23/QFP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Geof23/QFP/downloads","issues_url":"https://api.github.com/repos/Geof23/QFP/issues{/number}","pulls_url":"https://api.github.com/repos/Geof23/QFP/pulls{/number}","milestones_url":"https://api.github.com/repos/Geof23/QFP/milestones{/number}","notifications_url":"https://api.github.com/repos/Geof23/QFP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Geof23/QFP/labels{/name}","releases_url":"https://api.github.com/repos/Geof23/QFP/releases{/id}","deployments_url":"https://api.github.com/repos/Geof23/QFP/deployments","created_at":"2015-09-15T22:35:11Z","updated_at":"2016-02-10T22:14:49Z","pushed_at":"2016-08-24T09:59:58Z","git_url":"git://github.com/Geof23/QFP.git","ssh_url":"git@github.com:Geof23/QFP.git","clone_url":"https://github.com/Geof23/QFP.git","svn_url":"https://github.com/Geof23/QFP","homepage":null,"size":106595,"stargazers_count":0,"watchers_count":0,"language":"FORTRAN","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Geof23/QFP/pulls/13"},"html":{"href":"https://github.com/Geof23/QFP/pull/13"},"issue":{"href":"https://api.github.com/repos/Geof23/QFP/issues/13"},"comments":{"href":"https://api.github.com/repos/Geof23/QFP/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/Geof23/QFP/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/Geof23/QFP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Geof23/QFP/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/Geof23/QFP/statuses/57db3da0327a58ab91d6a9ee1c70501608c4db5b"}}}}
{"actor":{"display_login":"mikebentley15"}}