blob: 4a925257fc2c4a1a7f125eb6aa1c114eca702d41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//
// Created by red031000 on 2020-05-17.
//
#ifndef POKEDIAMOND_CP_CONTEXT_H
#define POKEDIAMOND_CP_CONTEXT_H
#include "nitro/types.h"
typedef struct CPContext {
u64 div_numer;
u64 div_denom;
u64 sqrt;
u16 div_mode;
u16 sqrt_mode;
} CPContext;
void CP_SaveContext(CPContext *context);
void CPi_RestoreContext(const CPContext* context);
#endif //POKEDIAMOND_CP_CONTEXT_H
|