<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/133660>133660</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`__bf16` Type Support Macros
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bassiounix
</td>
</tr>
</table>
<pre>
I can't find any macro that can indicate the availability of the `__bf16` type, all I can find is hardware support macros but no generic type availability macros or anything set in `clang` or `<float.h>`.
This is needed for `Bfloat16` GSoC project in `libc`.
If the solution is to gather the hardware support macros available in `clang` and define a macro for the general type support in `<float.h>`, I'd like to work on this before April 8th (the start of GSoC).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkkkFvnDAQhX-NuYyCjGFh98Bhk3arHHpK7tGAB3DjtZE9JN1_XxmIoqQnhGf8zXvPgzGa0RG14nAvDj8yXHjyoe3SuV-c-Zt1Xt_aR-jRCdUwDMZpQHeDK_bBA0_IqQbGadMjE_BEgG9oLHbGGr6BH9YzUcuXl24oalFL4NtMQj0AWgsre-OaCBMG_Y6BIC7z7ANvcyJ0C4PzMJKjYPoV8HXM3udDUseTcSNEYjAuTe4tujEN9iH9ivJhsB45n0T5U9QyF_Is5Pl5MjFpcESaNAxb8_3auun-9eQfYA7-D_UfaGu6_hPxuJmN3i5svEs09jAiTxTWyn_-PoTvZix9l4xOg6bBOALcU0_KEmxNA-2Wxgdwu_7dYkr7UahGgzWvlES9-_AK3gEn1x0NPhCc52AsHHkCoY6rEcbA6QmTc6FOeabbUp_KE2bUFk1Vlo0qSplNLdZN1fTVqcFjdTjK5jioArsKezn0B1nIzLRKqoMsS6mUVIXMddEM2NenoWq0Og2FqCRd0djc2rdr7sOYmRgXaouyrGuZWezIxnVRlXL0DmtVKJX2NrTp0l23jFFU0prI8RPDhi21XxbwOSX2tCf2e32BbAm2nZjnKMqzUBehLqPhaeny3l-FuiTc_rnbV0CoyyoiCnXZVb616l8AAAD__wDOFcE">