mirror of
https://github.com/pret/pokediamond.git
synced 2026-08-06 10:43:24 -05:00
22 lines
396 B
C
22 lines
396 B
C
//
|
|
// 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
|