<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc/test/src/complex/crealf128_test.cpp, branch users/nico/python-2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[libc][complex] add cfloat16 and cfloat128 compiler flags (#121140)</title>
<updated>2024-12-26T07:20:07+00:00</updated>
<author>
<name>Shourya Goel</name>
<email>shouryagoel10000@gmail.com</email>
</author>
<published>2024-12-26T07:20:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=abd91023447d146f36357326fc97c458b49e40af'/>
<id>abd91023447d146f36357326fc97c458b49e40af</id>
<content type='text'>
Proper fix for the temporary fix in #114696</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Proper fix for the temporary fix in #114696</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][complex] implement different flavors of `creal` and `cimag` functions (#113300)</title>
<updated>2024-11-03T04:08:09+00:00</updated>
<author>
<name>Shourya Goel</name>
<email>shouryagoel10000@gmail.com</email>
</author>
<published>2024-11-03T04:08:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ffe04e0351203524b212f850b48edf54dc5dbeb5'/>
<id>ffe04e0351203524b212f850b48edf54dc5dbeb5</id>
<content type='text'>
I have commented out the test for `neg_zero`(creal) because : 

1. real(neg_zero + 0.0i) equals zero. 
2. real(neg_zero - 0.0i) equals neg_zero.

I am not sure if this is the intended behaviour. 

[EDIT]
I have updated tests for `neg_zero` (creal) to be : 

```
    EXPECT_FP_EQ(func(CFPT(neg_zero - zero * 1.0i)), neg_zero);
    EXPECT_FP_EQ(func(CFPT(neg_zero + zero * 1.0i)), zero);
```

because all three [gcc, clang and GNU MPC] also give the same result. 
https://godbolt.org/z/hxhcn6aof
and it seems that it is indeed the correct behaviour since Imaginary
types are not supported yet, refer #113671</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I have commented out the test for `neg_zero`(creal) because : 

1. real(neg_zero + 0.0i) equals zero. 
2. real(neg_zero - 0.0i) equals neg_zero.

I am not sure if this is the intended behaviour. 

[EDIT]
I have updated tests for `neg_zero` (creal) to be : 

```
    EXPECT_FP_EQ(func(CFPT(neg_zero - zero * 1.0i)), neg_zero);
    EXPECT_FP_EQ(func(CFPT(neg_zero + zero * 1.0i)), zero);
```

because all three [gcc, clang and GNU MPC] also give the same result. 
https://godbolt.org/z/hxhcn6aof
and it seems that it is indeed the correct behaviour since Imaginary
types are not supported yet, refer #113671</pre>
</div>
</content>
</entry>
</feed>
