Re: unsafeCoerce# between integral and floating point types

9 Jul
2010
9 Jul
'10
5:18 p.m.
On Fri, Jul 09, 2010 at 07:14:58AM -1000, Lennart Augustsson wrote:
That might not work if the alignment constraints differ between the two types.
Easy enough to fix, just compare the alignments and alloca with the greater of the two. the optimizer should be able to optimize out the test. of course, this bug[1] makes it sort of moot in ghc at least. [1] http://hackage.haskell.org/trac/ghc/ticket/r2917 John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/
5430
Age (days ago)
5430
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Meacham