Title: Floating-point serialization is platform-specific but works on modern standard computers · Issue #356 · igbinary/igbinary · GitHub
Open Graph Title: Floating-point serialization is platform-specific but works on modern standard computers · Issue #356 · igbinary/igbinary
X Title: Floating-point serialization is platform-specific but works on modern standard computers · Issue #356 · igbinary/igbinary
Description: https://en.wikipedia.org/wiki/Endianness#Floating_point However, on modern standard computers (i.e., implementing IEEE 754), one may in practice safely assume that the endianness is the same for floating-point numbers as for integers, ma...
Open Graph Description: https://en.wikipedia.org/wiki/Endianness#Floating_point However, on modern standard computers (i.e., implementing IEEE 754), one may in practice safely assume that the endianness is the same for fl...
X Description: https://en.wikipedia.org/wiki/Endianness#Floating_point However, on modern standard computers (i.e., implementing IEEE 754), one may in practice safely assume that the endianness is the same for fl...
Opengraph URL: https://github.com/igbinary/igbinary/issues/356
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Floating-point serialization is platform-specific but works on modern standard computers","articleBody":"https://en.wikipedia.org/wiki/Endianness#Floating_point\r\n\r\n\u003e However, on modern standard computers (i.e., implementing IEEE 754), one may in practice safely assume that the endianness is the same for floating-point numbers as for integers, making the conversion straightforward regardless of data type\r\n\r\nigbinary_unserialize_double/igbinary_serialize_double\r\n\r\nFiling this to document it, though no bugs were reported\r\n\r\n```c\r\n/** Serializes double. */\r\ninline static int igbinary_serialize_double(struct igbinary_serialize_data *igsd, double d) {\r\n\tunion {\r\n\t\tdouble d;\r\n\t\tuint64_t u;\r\n\t} u;\r\n\r\n\tu.d = d;\r\n\r\n\treturn igbinary_serialize8_and_64(igsd, igbinary_type_double, u.u);\r\n}\r\n```","author":{"url":"https://github.com/TysonAndre","@type":"Person","name":"TysonAndre"},"datePublished":"2022-02-14T13:44:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/356/igbinary/issues/356"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8f6200c3-ef3e-ecb1-77ce-47fc05010796 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0D6:2E5458:B99D0B:EE76B1:697E6398 |
| html-safe-nonce | c47e5d2fdb552d5ecd6abadab7a060c17fb2746f682f734eac716d2752be6fba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEQ2OjJFNTQ1ODpCOTlEMEI6RUU3NkIxOjY5N0U2Mzk4IiwidmlzaXRvcl9pZCI6IjY5NzM1ODk0MjkzNDQ0Mjg5NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 12e4d9458cdd16e019ca02bc6eee5892d61577337c273f9bb54702753d4a28f6 |
| hovercard-subject-tag | issue:1137327159 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/igbinary/igbinary/356/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a4ae4a29a052d47e71c27aa1297707ca9e991faabd3ffaf66b6987002ff1342c/igbinary/igbinary/issues/356 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a4ae4a29a052d47e71c27aa1297707ca9e991faabd3ffaf66b6987002ff1342c/igbinary/igbinary/issues/356 |
| og:image:alt | https://en.wikipedia.org/wiki/Endianness#Floating_point However, on modern standard computers (i.e., implementing IEEE 754), one may in practice safely assume that the endianness is the same for fl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TysonAndre |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/igbinary/igbinary git https://github.com/igbinary/igbinary.git |
| octolytics-dimension-user_id | 555243 |
| octolytics-dimension-user_login | igbinary |
| octolytics-dimension-repository_id | 1237364 |
| octolytics-dimension-repository_nwo | igbinary/igbinary |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 155943 |
| octolytics-dimension-repository_parent_nwo | phadej/igbinary |
| octolytics-dimension-repository_network_root_id | 155943 |
| octolytics-dimension-repository_network_root_nwo | phadej/igbinary |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width