2024-10-20 18:21:03 +13:00
|
|
|
#include <qfloat16.h>
|
|
|
|
#include "gen_qfloat16.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
qfloat16* qfloat16_new() {
|
|
|
|
return new qfloat16();
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
qfloat16* qfloat16_new2(int param1) {
|
|
|
|
return new qfloat16(static_cast<Qt::Initialization>(param1));
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
qfloat16* qfloat16_new3(float f) {
|
|
|
|
return new qfloat16(static_cast<float>(f));
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool qfloat16_isInf(const qfloat16* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->isInf();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool qfloat16_isNaN(const qfloat16* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->isNaN();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool qfloat16_isFinite(const qfloat16* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->isFinite();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int qfloat16_fpClassify(const qfloat16* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->fpClassify();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool qfloat16_isNormal(const qfloat16* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->isNormal();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void qfloat16_delete(qfloat16* self) {
|
2025-01-18 17:42:41 +13:00
|
|
|
delete self;
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|