-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInt64.h
More file actions
28 lines (22 loc) · 613 Bytes
/
Copy pathInt64.h
File metadata and controls
28 lines (22 loc) · 613 Bytes
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
27
28
#ifndef _INT64_H
#define _INT64_H
//结构体定义
typedef struct Int64 {
int low;
int hi;
}Int64;
//主要使用的四个函数
////////////////////////////////////////////////
Int64 Int64_plus (Int64 left, Int64 right);
Int64 Int64_minus (Int64 left, Int64 right);
Int64 Int64_multi (Int64 left, Int64 right);
Int64 Int64_div (Int64 left, Int64 right);
////////////////////////////////////////////////
//内部调用的函数,不用看
////////////////////
int sign (Int64 num);
Int64 neg (Int64 num);
int N_less (Int64 *left, Int64 *right);
void N_div_2 (Int64 *num);
////////////////////
#endif