2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QFLOAT16_H
|
|
|
|
#define MIQT_QT_GEN_QFLOAT16_H
|
2024-08-29 07:01:51 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class qfloat16;
|
|
|
|
#else
|
|
|
|
typedef struct qfloat16 qfloat16;
|
|
|
|
#endif
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void qfloat16_new(qfloat16** outptr_qfloat16);
|
|
|
|
void qfloat16_new2(float f, qfloat16** outptr_qfloat16);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool qfloat16_IsInf(const qfloat16* self);
|
|
|
|
bool qfloat16_IsNaN(const qfloat16* self);
|
|
|
|
bool qfloat16_IsFinite(const qfloat16* self);
|
|
|
|
int qfloat16_FpClassify(const qfloat16* self);
|
|
|
|
bool qfloat16_IsNormal(const qfloat16* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void qfloat16_Delete(qfloat16* self, bool isSubclass);
|
2024-08-29 07:01:51 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|