Displaying 10 results from an estimated 10 matches for "creal".
Did you mean:
real
2019 Jul 02
2
RFC: Complex in LLVM
Tim Northover <t.p.northover at gmail.com> writes:
> On Mon, 1 Jul 2019 at 19:56, David Greene via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> llvm.creal.* - Overloaded intrinsic to extract the real part of a
>> complex value
>> declare float @llvm.creal.c32(c32 %Val)
>> declare double @llvm.creal.c64(c64 %Val)
>
> What are your plans for the reverse? I assume we don't want the only
> way to materialize...
2012 Apr 27
2
[LLVMdev] complex library functions (creal and cimag)
When I compile this code which includes call to crealf,
$ cat foo1.c
#include <complex.h>
float foo1(complex float z) { return crealf(z); }
clang emits a call to crealf,
$ clang foo1.c -S -o - -O3
foo1: # @foo1
.cfi_startproc
# BB#0: # %entry
jmp crealf...
2012 Apr 27
0
[LLVMdev] complex library functions (creal and cimag)
On Fri, Apr 27, 2012 at 12:09 PM, Akira Hatanaka <ahatanak at gmail.com> wrote:
> When I compile this code which includes call to crealf,
>
> $ cat foo1.c
> #include <complex.h>
>
> float foo1(complex float z) { return crealf(z); }
>
> clang emits a call to crealf,
>
> $ clang foo1.c -S -o - -O3
> foo1: # @foo1
> .cfi_startproc
> # BB#0: ...
2012 Apr 28
1
[LLVMdev] complex library functions (creal and cimag)
On Apr 27, 2012, at 2:02 PM, Eli Friedman wrote:
> On Fri, Apr 27, 2012 at 12:09 PM, Akira Hatanaka <ahatanak at gmail.com> wrote:
>> while gcc does it in two move instructions:
>>
>> $ gcc foo1.c -S -o -O3
>> foo1:
>> .LFB0:
>> .cfi_startproc
>> movq %xmm0, -8(%rsp)
>> movss -8(%rsp), %xmm0
>>
>>
2019 Jul 01
14
RFC: Complex in LLVM
...@llvm.cos.c32(c32 %Val)
declare c64 @llvm.cos.c64(c64 %Val)
declare c32 @llvm.log.c32(c32 %Val)
declare c64 @llvm.log.c64(c64 %Val)
declare float @llvm.fabs.c32(c32 %Val)
declare double @llvm.fabs.c64(c64 %Val)
In addition, new intrinsics will be used for complex-specific
operations:
llvm.creal.* - Overloaded intrinsic to extract the real part of a
complex value
declare float @llvm.creal.c32(c32 %Val)
declare double @llvm.creal.c64(c64 %Val)
llvm.cimag.* - Overloaded intrinsic to extract the imaginary part of a
complex value
declare float @llvm.cimag.c32(c...
2009 Feb 26
2
[LLVMdev] Impressive performance result for LLVM: complex arithmetic
...gcc: 1.393s
There is still 20% room for improvement but LLVM is >4x faster than gcc here.
Sweet.
Here's the code:
#include <stdio.h>
#include <stdlib.h>
#include <complex.h>
int max_i = 65536;
double sqr(double x) { return x*x; }
double cnorm2(complex z) { return sqr(creal(z)) + sqr(cimag(z)); }
int loop(complex c) {
complex z=c;
int i=1;
while (cnorm2(z) <= 4.0 && i++ < max_i)
z = z*z + c;
return i;
}
int main() {
for (int j = -39; j < 39; ++j) {
for (int i = -39; i < 39; ++i)
printf(loop(j/40.0-0...
2012 Jun 11
0
4as Jornadas (Barcelona): ¿quieres echar una mano?
...pre-eliminar que se está recogiendo, se está poniendo en:
http://www.r-es.org/IV+Jornadas
Saludos
Xavier de Pedro
-------- Original Message --------
Subject: 4ª jornadas comunidad R Hispano
Date: Thu, 7 Jun 2012 14:23:50 +0200 (CEST)
From: Gonzalez Ruiz, Juan Ramon <jrgonzalez en creal.cat>
To: ...
CC: Carlos J. Gil Bellosta <presidente en r-es.org>
Hola a tod en s,
Supongo que algunos de vosotros ya estáis al tanto de que la comunidad R
Hispano (antes conocida como grupo de usuarios de R) nos ha pedido si
podíamos organizar las siguientes jornadas en Barcelo...
2009 Feb 27
0
[LLVMdev] Impressive performance result for LLVM: complex arithmetic
...VM is >4x faster than gcc here.
> Sweet.
>
> Here's the code:
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <complex.h>
>
> int max_i = 65536;
>
> double sqr(double x) { return x*x; }
>
> double cnorm2(complex z) { return sqr(creal(z)) + sqr(cimag(z)); }
>
> int loop(complex c) {
> complex z=c;
> int i=1;
> while (cnorm2(z) <= 4.0 && i++ < max_i)
> z = z*z + c;
> return i;
> }
>
> int main() {
> for (int j = -39; j < 39; ++j) {
> for (int i = -3...
2013 Apr 29
3
rbinding some elements from a list and obtain another list
Hi everybody,
I have a list, where every element of this list is a data frame.
An example:
Mylist<-list(A=data.frame, B=data.frame, C=data.frame, D=data.frame)
I want to rbind some elements of this list.
As an example:
Output<-list(AB=data.frame, CD=data.frame)
Where
AB=rbind(A,B)
CD=rbind(C,D)
I’ve tried:
f<-function(x){
for (i in
2018 Oct 12
0
Wine release 3.18
...ringByteLen.
d3dcompiler_43/tests: Avoid using GCC's typeof extension.
user32: Add stub for SetWindowCompositionAttribute.
Alexandre Julliard (14):
user32: Use height from font metrics for empty text runs in TabbedTextOut().
msvcr120: Avoid duplicate spec file entry for creal().
kernel32: Make a copy of the process environment in CreateProcessW().
kernel32: Pass the full filename to winevdm.exe in CreateProcessW().
ntdll: Implement RtlCreateProcessParametersEx().
opengl32: Update to the current OpenGL spec.
ntdll: Add a wrapper to call the...