summaryrefslogtreecommitdiff
path: root/libraries/base/cbits/CastFloatWord.cmm
Commit message (Collapse)AuthorAgeFilesLines
* stg_floatToWord32zh: zero-extend the Word32 (#16617)Kevin Buhr2019-05-081-1/+2
| | | | | | | The primop stgFloatToWord32 was sign-extending the 32-bit word, resulting in weird negative Word32s. Zero-extend them instead. Closes #16617.
* base: Implement bit casts between word and float typesErik de Castro Lopo2017-04-121-0/+69
Test Plan: Test on x86 and x86_64 Reviewers: duncan, trofi, simonmar, tibbe, hvr, austin, rwbarton, bgamari Reviewed By: duncan Subscribers: Phyx, DemiMarie, rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3358