[Haskell-cafe] Word128, Word256

Scott Michel 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?

Dream away!


2009/10/22 Maurí­cio CA <mauricio.antunes at gmail.com>

> Hi,
>
> 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[2];
>    }
>  gsl_complex;
>
> 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,
> Maurício
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091026/94b26258/attachment.html


More information about the Haskell-Cafe mailing list