[Haskell-cafe] Word128, Word256
scooter.phd at gmail.com
Mon Oct 26 02:00:32 EDT 2009
To have it defined is one thing. To actually implement i128 and i256 is
quite another thing. Are you willing to actually do all of the work
necessary to implement the unboxed i128 code?
2009/10/22 Maurício CA <mauricio.antunes at gmail.com>
> Do you think we could have the range of sizes for Int* and Word*
> expanded to allow also 128 and 256 bits sizes?
> My reason is that I have a long standing issue trying to bind to
> C numerical libraries using complex numbers, as those are usually
> structs passed by value. See this from GNU GSL:
> typedef struct
> double dat;
> I imagine I could do:
> type GslComplex = Word128 -- size would depend on architecture
> and then write foreign declarations to have:
> get_real :: GslComplex -> CDouble
> get_imag :: GslComplex -> CDouble
> gsl_complex_sin :: GslComplex -> GslComplex
> gsl_complex_cos :: GslComplex -> GslComplex
> Do you think this is a reasonable request?
> Thanks for your attention,
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe