miqt/qt/gen_qfloat16.cpp

44 lines
697 B
C++
Raw Normal View History

#include <qfloat16.h>
2024-08-29 19:01:51 +12:00
#include "gen_qfloat16.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
2024-08-29 19:01:51 +12:00
2024-12-07 17:15:57 +13:00
qfloat16* qfloat16_new() {
return new qfloat16();
2024-08-29 19:01:51 +12:00
}
2024-12-07 17:15:57 +13:00
qfloat16* qfloat16_new2(float f) {
return new qfloat16(static_cast<float>(f));
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
bool qfloat16_isInf(const qfloat16* self) {
return self->isInf();
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
bool qfloat16_isNaN(const qfloat16* self) {
return self->isNaN();
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
bool qfloat16_isFinite(const qfloat16* self) {
return self->isFinite();
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
int qfloat16_fpClassify(const qfloat16* self) {
return self->fpClassify();
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
bool qfloat16_isNormal(const qfloat16* self) {
return self->isNormal();
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
void qfloat16_delete(qfloat16* self) {
delete self;
2024-08-29 19:01:51 +12:00
}