Partially revert "qfloat16: suppress the tables if FP16 is supported by the CPU"
This reverts the x86 F16 part of commit
9649c41ed9
. Unfortunately, it is perfectly
valid to compile coe without F16C an link to a QtCore that was compiled
with it. That's the case in Clear Linux where there's
/usr/lib64/libQt5Core.so.5 and /usr/lib4/haswell/libQt5Core.so.5.
Change-Id: I907a43cd9a714da288a2fffd15baacace8331403
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
This commit is contained in:
parent
da12c06b99
commit
6426a38d82
@ -79,7 +79,7 @@ qint32 main(qint32 argc, char **argv)
|
||||
fid.write("#include <QtCore/qfloat16.h>\n\n");
|
||||
|
||||
fid.write("QT_BEGIN_NAMESPACE\n\n");
|
||||
fid.write("#if !defined(__F16C__) && !defined(__ARM_FP16_FORMAT_IEEE)\n\n");
|
||||
fid.write("#if !defined(__ARM_FP16_FORMAT_IEEE)\n\n");
|
||||
|
||||
fid.write("const quint32 qfloat16::mantissatable[2048] = {\n");
|
||||
fid.write("0,\n");
|
||||
@ -156,7 +156,7 @@ qint32 main(qint32 argc, char **argv)
|
||||
|
||||
fid.write("};\n\n");
|
||||
|
||||
fid.write("#endif // !__F16C__ && !__ARM_FP16_FORMAT_IEEE\n\n");
|
||||
fid.write("#endif // !__ARM_FP16_FORMAT_IEEE\n\n");
|
||||
fid.write("QT_END_NAMESPACE\n");
|
||||
fid.close();
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user