blob: 709b2426d806374ab825bbc45ed8dbfb26f0b97d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// transaction.h
#ifndef INCLUDED_TRANSACTION_H
#define INCLUDED_TRANSACTION_H
#include <stdint.h>
typedef uint32_t merchant_city_id_t;
struct transaction {
union transaction_key {
uint64_t packed;
struct {
uint32_t merchant_city_id;
uint16_t client_id;
uint16_t year_month; // year << 4 + month
};
} key;
union {
int32_t value;
int32_t sum;
float normalized;
};
};
#endif // INCLUDED_TRANSACTION_H
// transaction.h ends here
|