Re: [fpc-devel] SSE in FPC

2008-12-11 Thread Thaddy
Alain Michaud wrote: Vinzent Höfler wrote: Alain Michaud wrote: Hi, Not exactly related to this thread, but worth mentioning: Some time ago I was interested in (numerical) computing some Bessel function to the highest precision! I looked at MMX, SSE, SSE2, SSE3, SSE4, FP87, 3D-so

Re: [fpc-devel] SSE in FPC

2008-12-10 Thread Alain Michaud
Vinzent Höfler wrote: Alain Michaud wrote: Hi, Not exactly related to this thread, but worth mentioning: Some time ago I was interested in (numerical) computing some Bessel function to the highest precision! I looked at MMX, SSE, SSE2, SSE3, SSE4, FP87, 3D-something etc... And

Re: [fpc-devel] SSE in FPC

2008-12-09 Thread Vinzent Höfler
Alain Michaud wrote: Hi, Not exactly related to this thread, but worth mentioning: Some time ago I was interested in (numerical) computing some Bessel function to the highest precision! I looked at MMX, SSE, SSE2, SSE3, SSE4, FP87, 3D-something etc... And all that jazz... It

Re: [fpc-devel] SSE in FPC

2008-12-09 Thread Alain Michaud
Hi, Not exactly related to this thread, but worth mentioning: Some time ago I was interested in (numerical) computing some Bessel function to the highest precision! I looked at MMX, SSE, SSE2, SSE3, SSE4, FP87, 3D-something etc... And all that jazz... It turns out that only t

Re: [fpc-devel] SSE in FPC

2008-11-30 Thread Dariusz Mazur
Florian Klaempfl pisze: Dariusz Mazur schrieb: Florian Klaempfl pisze: Dariusz Mazur schrieb: Jonas Maebe pisze: Of course tSSEVector should be declared in System unit. Then any one can use SSE intentionally Why can't you now? It's not lik

Re: [fpc-devel] SSE in FPC

2008-11-30 Thread Florian Klaempfl
Dariusz Mazur schrieb: > Florian Klaempfl pisze: >> Dariusz Mazur schrieb: >> >>> Jonas Maebe pisze: >>> > Of course tSSEVector should be declared in System unit. > Then any one can use SSE intentionally > Why can't you now? It's not like multiplication has any othe

Re: [fpc-devel] SSE in FPC

2008-11-30 Thread Dariusz Mazur
Florian Klaempfl pisze: Dariusz Mazur schrieb: Jonas Maebe pisze: Of course tSSEVector should be declared in System unit. Then any one can use SSE intentionally Why can't you now? It's not like multiplication has any other meaning for arrays. And declaring "magic compiler typ

Re: [fpc-devel] SSE in FPC

2008-11-30 Thread Florian Klaempfl
Dariusz Mazur schrieb: > Jonas Maebe pisze: >>> >>> >>> Of course tSSEVector should be declared in System unit. >>> Then any one can use SSE intentionally >> >> Why can't you now? It's not like multiplication has any other meaning >> for arrays. And declaring "magic compiler types" in the system u

Re: [fpc-devel] SSE in FPC

2008-11-30 Thread Dariusz Mazur
Jonas Maebe pisze: Of course tSSEVector should be declared in System unit. Then any one can use SSE intentionally Why can't you now? It's not like multiplication has any other meaning for arrays. And declaring "magic compiler types" in the system unit is something that should be avoided as

Re: [fpc-devel] SSE in FPC

2008-11-29 Thread Dariusz Mazur
Mattias Gaertner pisze: On Fri, 28 Nov 2008 21:25:16 +0100 darekm <[EMAIL PROTECTED]> wrote: Hi Are in FPC some instruction set contains streaming SIMD (SSE) like in GCC: http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/X86-Built_002din-Functions.html or in Microsoft Visual http://msdn.mi

Re: [fpc-devel] SSE in FPC

2008-11-29 Thread Jonas Maebe
On 29 Nov 2008, at 18:15, Dariusz Mazur wrote: Florian Klaempfl pisze: function f : double; var d1,d2,d3 : array[0..1] of double; begin d1:=d2*d3; end; I would expect some thing like this type tSSEvector= packed record of a,b : double; end; { or } tSSEvector

Re: [fpc-devel] SSE in FPC

2008-11-29 Thread Dariusz Mazur
Florian Klaempfl pisze: Jonas Maebe schrieb: On 29 Nov 2008, at 11:11, Felipe Monteiro de Carvalho wrote: You can tell FPC to do the SSE code for you: -Cf Select fpu instruction set to use, see fpc -i for possible values That only applies to (scalar) FPU operations at

Re: [fpc-devel] SSE in FPC

2008-11-29 Thread Florian Klaempfl
Jonas Maebe schrieb: > > On 29 Nov 2008, at 11:11, Felipe Monteiro de Carvalho wrote: > >> You can tell FPC to do the SSE code for you: >> >> -Cf Select fpu instruction set to use, see fpc -i for >> possible values > > That only applies to (scalar) FPU operations at this time. It won't d

Re: [fpc-devel] SSE in FPC

2008-11-29 Thread Jonas Maebe
On 29 Nov 2008, at 11:11, Felipe Monteiro de Carvalho wrote: You can tell FPC to do the SSE code for you: -Cf Select fpu instruction set to use, see fpc -i for possible values That only applies to (scalar) FPU operations at this time. It won't do any (auto or other) vectorisation.

Re: [fpc-devel] SSE in FPC

2008-11-29 Thread Felipe Monteiro de Carvalho
You can tell FPC to do the SSE code for you: -Cf Select fpu instruction set to use, see fpc -i for possible values And in fpc - i I see: Supported CPU instruction sets: 386 PENTIUM PENTIUM2 PENTIUM3 PENTIUM4 PENTIUMM Supported FPU instruction sets: X87 SSE SSE2 SSE

Re: [fpc-devel] SSE in FPC

2008-11-28 Thread Mattias Gaertner
On Fri, 28 Nov 2008 21:25:16 +0100 darekm <[EMAIL PROTECTED]> wrote: > Hi > > Are in FPC some instruction set contains streaming SIMD (SSE) like > in GCC: > > http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/X86-Built_002din-Functions.html > > or in Microsoft Visual > > http://msdn.microsoft.co

[fpc-devel] SSE in FPC

2008-11-28 Thread darekm
Hi Are in FPC some instruction set contains streaming SIMD (SSE) like in GCC: http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/X86-Built_002din-Functions.html or in Microsoft Visual http://msdn.microsoft.com/en-us/library/kcwz153a(VS.80).aspx -- Darek ___