mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
34 lines
638 B
C++
34 lines
638 B
C++
#ifndef GEN_QFLOAT16_H
|
|
#define GEN_QFLOAT16_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class qfloat16;
|
|
#else
|
|
typedef struct qfloat16 qfloat16;
|
|
#endif
|
|
|
|
qfloat16* qfloat16_new();
|
|
qfloat16* qfloat16_new2(float f);
|
|
bool qfloat16_IsInf(qfloat16* self);
|
|
bool qfloat16_IsNaN(qfloat16* self);
|
|
bool qfloat16_IsFinite(qfloat16* self);
|
|
int qfloat16_FpClassify(qfloat16* self);
|
|
bool qfloat16_IsNormal(qfloat16* self);
|
|
void qfloat16_Delete(qfloat16* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|