diff options
| author | Dmitry Shachnev <mitya57@gmail.com> | 2024-07-27 23:03:07 +0300 |
|---|---|---|
| committer | Dmitry Shachnev <mitya57@gmail.com> | 2024-08-03 02:07:40 +0300 |
| commit | 39fa7e7bef90be2940c5f736935f963e3969e0bd (patch) | |
| tree | 2ca0d0d85cabb2dc61e4d1560d42c664ffb3e284 /src/widgets/doc/snippets/qtreewidgetitemiterator-using/mainwindow.cpp | |
| parent | d67acf94afffde6a71498be6e30447f3acf7558e (diff) | |
Use _Float16 only when SSE2 is enabled
The GCC documentation [1] says: “On x86 targets with SSE2 enabled, GCC
supports half-precision (16-bit) floating point via the _Float16 type”.
On non-SSE2 x86 (such as Debian i386 baseline [2]), __FLT16_MAX__ is
defined starting with GCC 14 [3], however any non-trivial use of the
_Float16 type results in an error:
error: operation not permitted on type ‘_Float16’ without option ‘-msse2’
which makes some packages fail to build on i386 architecture [4].
[1]: https://gcc.gnu.org/onlinedocs/gcc/Half-Precision.html
[2]: https://wiki.debian.org/ArchitectureSpecificsMemo#i386-1
[3]: https://gcc.gnu.org/g:9a19fa8b616f83474c35cc5b34a3865073ced829
[4]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076986
Pick-to: 6.8 6.7 6.5
Change-Id: I393ee83eb8e8888f5fc9e3b349dc8b063eef6f5a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/qtreewidgetitemiterator-using/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions
