<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/129111>129111</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Implement type-generic fixed-point functions in libc
</td>
</tr>
<tr>
<th>Labels</th>
<td>
good first issue,
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
PiJoules
</td>
</tr>
</table>
<pre>
4.1.7.6 in ISO 18037 specifies the following type-generic macros for fixed point functions: `absfx`, `roundfx`, `countlsfx`. For each macro, use of the macro invokes the function whose corresponding type and type domain
is the fixed-point type of the first generic argument. If the type of the first generic argument is not a
fixed-point type, the behavior is undefined. All of these functions are already included in llvm libc so we should be good to add these macros.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEUstu2zoQ_RpqM7BA0bZsL7TwTWAgd9MC_QI-hhJbmiPw4SR_X1BSkLSbriSSh-fFkSm5MSAO7PgfOz43suSJ4vDd_U_FY2oUmffh0Hbtqe0BXICXH9-gO_P9CdKM2lmHCfKEYMl7enVhhPw-427EgNFpuEsdKYGlCNa9oYGZXMhgS9DZUUhsfwXWc6mSfWM9Z-KpLiOVYL5uaCoh-xXTwo0ioNTTyl4hJSGQXYwse-DCg359WNvE4HWihKApRkwzBfPhFmQw64-hu3SB8avbrlbPu9XzAthErIspw0dIGcdyx5BbeFmP_w0FlyBQBsn49W-RGqjeVDjJh6NYsSUYtC6gaeHq_cadPrMlkBFB-ojSvIML2heDpj6Y9487eKc0JIJXhDRR8QYUwkhkIBNIYza29bXaxgx7c9lfZINDdzrw_nwSfd9Mw1lpvVd7c-QW-bFThqvj5cxtf9pfBOe6cYPg4siFOAneHUTfWnsQyiIac5HqhAd24HiXzrfVVktxbFxKBYdOXLqua7xU6NMyjEIs_tb6FhATgoknJkRNUxfH5yYOlWinypjYgXuXcvqkzi57HF7us8el8z8m82vrny3WwpzSTYl-mHKe64AycWPiNro8FdVqujNxqxLbZzdH-ok6M3FbXCYmbluaxyB-BwAA__8YfyWC">