aboutsummaryrefslogtreecommitdiff
path: root/include/number.h
blob: a87d5fa2509b1bca7fd4eeede98df3867b1d07d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef AMAL_NUMBER_H
#define AMAL_NUMBER_H

#include "std/types.h"

typedef enum {
    AMAL_NUMBER_SIGNED_INTEGER,
    AMAL_NUMBER_UNSIGNED_INTEGER,
    AMAL_NUMBER_FLOAT
} AmalNumberType;

typedef struct {
    union {
        i64 integer;
        f64 floating;
    } value;
    int bits;
    AmalNumberType type;
} AmalNumber;

#endif