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?<br><br>Dream away!<br><br><br><div class="gmail_quote">
2009/10/22 Maurí­cio CA <span dir="ltr">&lt;<a href="mailto:mauricio.antunes@gmail.com">mauricio.antunes@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Do you think we could have the range of sizes for Int* and Word*<br>
expanded to allow also 128 and 256 bits sizes?<br>
<br>
My reason is that I have a long standing issue trying to bind to<br>
C numerical libraries using complex numbers, as those are usually<br>
structs passed by value. See this from GNU GSL:<br>
<br>
  typedef struct<br>
    {<br>
      double dat[2];<br>
    }<br>
  gsl_complex;<br>
<br>
I imagine I could do:<br>
<br>
  type GslComplex = Word128 -- size would depend on architecture<br>
<br>
and then write foreign declarations to have:<br>
<br>
  get_real :: GslComplex -&gt; CDouble<br>
  get_imag :: GslComplex -&gt; CDouble<br>
  gsl_complex_sin :: GslComplex -&gt; GslComplex<br>
  gsl_complex_cos :: GslComplex -&gt; GslComplex<br>
<br>
Do you think this is a reasonable request?<br>
<br>
Thanks for your attention,<br>
Maurício<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>