miqt/qt6/gen_qfloat16.cpp

49 lines
875 B
C++
Raw Normal View History

2024-10-20 05:21:03 +00:00
#include <qfloat16.h>
#include "gen_qfloat16.h"
#ifndef _Bool
#define _Bool bool
#endif
2024-10-20 05:21:03 +00:00
#include "_cgo_export.h"
2024-12-07 04:15:57 +00:00
qfloat16* qfloat16_new() {
return new qfloat16();
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
qfloat16* qfloat16_new2(int param1) {
return new qfloat16(static_cast<Qt::Initialization>(param1));
2024-10-20 05:21:03 +00:00
}
2024-12-07 04:15:57 +00:00
qfloat16* qfloat16_new3(float f) {
return new qfloat16(static_cast<float>(f));
2024-10-20 05:21:03 +00:00
}
bool qfloat16_IsInf(const qfloat16* self) {
return self->isInf();
}
bool qfloat16_IsNaN(const qfloat16* self) {
return self->isNaN();
}
bool qfloat16_IsFinite(const qfloat16* self) {
return self->isFinite();
}
int qfloat16_FpClassify(const qfloat16* self) {
return self->fpClassify();
}
bool qfloat16_IsNormal(const qfloat16* self) {
return self->isNormal();
}
2024-11-19 06:29:06 +00:00
void qfloat16_Delete(qfloat16* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<qfloat16*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}