summaryrefslogtreecommitdiff
path: root/include/PR/guint.h
blob: e939094464e3d2d586723e1e6d1614684f5c392f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PR_GUINT_H
#define PR_GUINT_H

#include "ultratypes.h"

typedef union {
    f64 d;
    struct {
        u32 hi;
        u32 lo;
    } word;
} du;

typedef union {
    u32 i;
    f32 f;
} fu;

#define ROUND(x) (s32)(((x) >= 0.0) ? ((x) + 0.5) : ((x) - 0.5))

extern f32 __libm_qnan_f;

#endif