On Tue, Oct 18, 2011 at 3:10 PM, Mikko Lehtonen <[email protected]> wrote:
>  Personally, I would be pretty happy with types like
>  simd::float4  made available with the most obvious operators.
>
>  Especially if I can wrap it something like
>
>
> import simd::float4;
> import math;
>
> type vec3f = simd::float4;
>
> fn length_squared(v: vec3f) -> float { v[0] * v[0] + v[1] * v[1] + v[2] *
> v[2] }
> fn length(v: vec3f) -> float { math::sqrt(length_squared(v)); }
>
> fn normalize(v:vec3f) -> vec3f { v / length(v) }
>
>
>
> --
> Mikko Lehtonen

Mikko, supposing this code were real, what is the compiler being told
to parallelize here?

Lindsey
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to