<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc/src/complex, branch main</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] Don't manually override the optimization level for math (#126322)</title>
<updated>2025-02-11T07:56:47+00:00</updated>
<author>
<name>Petr Hosek</name>
<email>phosek@google.com</email>
</author>
<published>2025-02-11T07:56:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7af4ab4f072ee6de9d347f9955683d4a49645f1c'/>
<id>7af4ab4f072ee6de9d347f9955683d4a49645f1c</id>
<content type='text'>
This was originally done for testing purposes, but after #126315 we now
do testing through GitHub Actions and should be instead using the
optimization setting chosen by the user.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was originally done for testing purposes, but after #126315 we now
do testing through GitHub Actions and should be instead using the
optimization setting chosen by the user.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][complex] Testing infra for MPC (#121261)</title>
<updated>2025-01-28T05:31:16+00:00</updated>
<author>
<name>Shourya Goel</name>
<email>shouryagoel10000@gmail.com</email>
</author>
<published>2025-01-28T05:31:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7f37b34d31914120a5bb6bd341e7616773df7613'/>
<id>7f37b34d31914120a5bb6bd341e7616773df7613</id>
<content type='text'>
This PR aims to add the groundwork to test the precision of libc complex
functions against MPC. I took `cargf` as a test to verify that the infra
works fine.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR aims to add the groundwork to test the precision of libc complex
functions against MPC. I took `cargf` as a test to verify that the infra
works fine.</pre>
</div>
</content>
</entry>
<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 the `cproj` function (#119722)</title>
<updated>2024-12-17T20:34:50+00:00</updated>
<author>
<name>Shourya Goel</name>
<email>shouryagoel10000@gmail.com</email>
</author>
<published>2024-12-17T20:34:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c98e79d85663d6a5a5fcd6475b662a750fcf4b8e'/>
<id>c98e79d85663d6a5a5fcd6475b662a750fcf4b8e</id>
<content type='text'>
Refer section 7.3.9.5 of ISO/IEC 9899:2023</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refer section 7.3.9.5 of ISO/IEC 9899:2023</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][complex] Implement different flavors of the `conj` function (#118671)</title>
<updated>2024-12-10T04:35:11+00:00</updated>
<author>
<name>Shourya Goel</name>
<email>shouryagoel10000@gmail.com</email>
</author>
<published>2024-12-10T04:35:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=78c2b6d483f945cc2ccc7b300b920bf0eb871505'/>
<id>78c2b6d483f945cc2ccc7b300b920bf0eb871505</id>
<content type='text'>
Refer section 7.3.9.4 of ISO/IEC 9899:2023</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refer section 7.3.9.4 of ISO/IEC 9899:2023</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] suppress more clang-cl warnings (#117718)</title>
<updated>2024-11-26T20:15:58+00:00</updated>
<author>
<name>Schrodinger ZHU Yifan</name>
<email>yifanzhu@rochester.edu</email>
</author>
<published>2024-11-26T20:15:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c71418574f1bb9e4678428901775c8b633cded09'/>
<id>c71418574f1bb9e4678428901775c8b633cded09</id>
<content type='text'>
- migrate more `-O3` to `${libc_opt_high_flag}`
- workaround a issue with `LLP64` in test. The overflow testing is
guarded by a constexpr but the literal overflow itself will still
trigger warnings.

Notice that for math smoke test, for some reasons, the
`${libc_opt_high_flag}` will be passed into `lld-link` which confuses
the linker so there are still some warnings leftover there. I can
investigate more when I have time.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- migrate more `-O3` to `${libc_opt_high_flag}`
- workaround a issue with `LLP64` in test. The overflow testing is
guarded by a constexpr but the literal overflow itself will still
trigger warnings.

Notice that for math smoke test, for some reasons, the
`${libc_opt_high_flag}` will be passed into `lld-link` which confuses
the linker so there are still some warnings leftover there. I can
investigate more when I have time.</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>
