digitalmars.D.learn - SSE intrinsics?
- Hoenir (3/3) Nov 19 2008 Does DMD provide/support something like the SSE intrinsics available in ...
- bearophile (4/5) Nov 19 2008 Currently not. You can use SSE instructions inlining assembly code (it's...
- Hoenir (3/8) Nov 19 2008 Yeah, I know that option, but of course it's a little bit more
- Jarrett Billingsley (3/8) Nov 19 2008 Why do that when you could use some template madness to make an SSE
- Trass3r (4/6) Jan 22 2009 ^^ Would that make sense?
- Jarrett Billingsley (8/15) Jan 22 2009 It was kind of a joke, but it's entirely possible. You could write a
Does DMD provide/support something like the SSE intrinsics available in C++? Or is it only available in GDC? I'm not sure if this sort of thing belongs to front- or backend.
Nov 19 2008
Hoenir:Does DMD provide/support something like the SSE intrinsics available in C++?Currently not. You can use SSE instructions inlining assembly code (it's not too much difficult, there are documents online that show you how to use the SSE instructions, but it may require some time to write the code). Bye, bearophile
Nov 19 2008
bearophile schrieb:Hoenir:Yeah, I know that option, but of course it's a little bit more time-consuming and harder to maintain/change ;)Does DMD provide/support something like the SSE intrinsics available in C++?Currently not. You can use SSE instructions inlining assembly code (it's not too much difficult, there are documents online that show you how to use the SSE instructions, but it may require some time to write the code).
Nov 19 2008
On Wed, Nov 19, 2008 at 1:32 PM, bearophile <bearophileHUGS lycos.com> wrote:Hoenir:Why do that when you could use some template madness to make an SSE assembler? ;)Does DMD provide/support something like the SSE intrinsics available in C++?Currently not. You can use SSE instructions inlining assembly code (it's not too much difficult, there are documents online that show you how to use the SSE instructions, but it may require some time to write the code). Bye, bearophile
Nov 19 2008
Jarrett Billingsley schrieb:Why do that when you could use some template madness to make an SSE assembler? ;)^^ Would that make sense? How do those intrinsics get evaluated? I mean in which step of compilation, in the frontend or backend, etc.
Jan 22 2009
On Thu, Jan 22, 2009 at 10:43 AM, Trass3r <mrmocool gmx.de> wrote:Jarrett Billingsley schrieb:It was kind of a joke, but it's entirely possible. You could write a compile-time x86 assembler that would take a string and turn it into a series of bytes. Or simpler, just convert those instructions which DMD doesn't know about into bytes, and leave the other instructions alone. You can then mix that into an assembly statement. It's probably incredibly impractical for all but the simplest cases but keep in mind that the compiler _is_ Turing-complete.Why do that when you could use some template madness to make an SSE assembler? ;)^^ Would that make sense? How do those intrinsics get evaluated? I mean in which step of compilation, in the frontend or backend, etc.
Jan 22 2009