[Mono-dev] Count leading zeros (or find first one) in Mono.SIMD

2012-02-28 Thread Konrad Kruczyński
Hi,
would it be possible to have implemented functionality like count
leading zeros in Mono.SIMD? Instructions like these are available on
most architectures. Newer SSE instructions would be welcomed too.

--
Regards,
 Konrad

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Count leading zeros (or find first one) in Mono.SIMD

2012-02-28 Thread Rodrigo Kumpera
Mono.SIMD needs update to the latest versions of SSE. Right now we're on
SSSE.
The problem is the lack of engineering bandwidth, I would love to have the
4.X stuff.


2012/2/28 Konrad Kruczyński konrad.kruczyn...@gmail.com

 Hi,
 would it be possible to have implemented functionality like count
 leading zeros in Mono.SIMD? Instructions like these are available on
 most architectures. Newer SSE instructions would be welcomed too.


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Count leading zeros (or find first one) in Mono.SIMD

2012-02-28 Thread Konrad Kruczyński
On Tue, 2012-02-28 at 11:49 -0300, Rodrigo Kumpera wrote:
 Mono.SIMD needs update to the latest versions of SSE. Right now we're
 on SSSE.
 The problem is the lack of engineering bandwidth, I would love to have
 the 4.X stuff.


I guess I could do some work on it. The questions are:
a) whether current API is to be extended or there are some reasons to
rebuild it fundamentally? IMO it looks fine, just new (wider) structures
and methods need to be added;
b) question above applied to the underlying JIT machinery;
c) is there any documentation about it or should I just rather look at
the source code?

--
Regards,
 Konrad


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Count leading zeros (or find first one) in Mono.SIMD

2012-02-28 Thread Rodrigo Kumpera
2012/2/28 Konrad Kruczyński konrad.kruczyn...@gmail.com

 On Tue, 2012-02-28 at 11:49 -0300, Rodrigo Kumpera wrote:
  Mono.SIMD needs update to the latest versions of SSE. Right now we're
  on SSSE.
  The problem is the lack of engineering bandwidth, I would love to have
  the 4.X stuff.


 I guess I could do some work on it. The questions are:
 a) whether current API is to be extended or there are some reasons to
 rebuild it fundamentally? IMO it looks fine, just new (wider) structures
 and methods need to be added;


Are you talking about AVX? AVX is a very tricky matter and I don't have an
answer for it upfront,
but a safe guess is that it will take quite some work and API changes. This
is for using
the wider 256bits registers. Using AVX with 128bits register is fine.

For adding missing instructions, it's just a matter of adding them. Pretty
simple.


 b) question above applied to the underlying JIT machinery;


Same as above.


  c) is there any documentation about it or should I just rather look at

the source code?

Just look at the source code, those are some entry level changes if you
fancy doing so.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Count leading zeros (or find first one) in Mono.SIMD

2012-02-28 Thread Konrad Kruczyński

 Are you talking about AVX? AVX is a very tricky matter and I don't
 have an answer for it upfront,
 but a safe guess is that it will take quite some work and API changes.
 This is for using
 the wider 256bits registers. Using AVX with 128bits register is fine.

Yes, I thought about AVX too, but in that case it may be reserved for
future.

 For adding missing instructions, it's just a matter of adding them.
 Pretty simple.
  
 b) question above applied to the underlying JIT machinery;
 
 
 Same as above.
  
  c) is there any documentation about it or should I just
 rather look at
 the source code?
 
 
 
 Just look at the source code, those are some entry level changes if
 you fancy doing so.
 

Thanks, I'll report if something emerges.

--
Konrad


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list