2001-02-23 18:21:06 +00:00
|
|
|
/*
|
|
|
|
* Header for int64.c.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PUTTY_INT64_H
|
|
|
|
#define PUTTY_INT64_H
|
|
|
|
|
2018-05-24 08:17:13 +00:00
|
|
|
#include "defs.h"
|
|
|
|
|
2001-02-23 18:21:06 +00:00
|
|
|
typedef struct {
|
|
|
|
unsigned long hi, lo;
|
2005-09-13 19:24:35 +00:00
|
|
|
} uint64;
|
2001-02-23 18:21:06 +00:00
|
|
|
|
|
|
|
uint64 uint64_div10(uint64 x, int *remainder);
|
|
|
|
void uint64_decimal(uint64 x, char *buffer);
|
|
|
|
uint64 uint64_make(unsigned long hi, unsigned long lo);
|
|
|
|
uint64 uint64_add(uint64 x, uint64 y);
|
|
|
|
uint64 uint64_add32(uint64 x, unsigned long y);
|
2001-08-26 11:35:11 +00:00
|
|
|
int uint64_compare(uint64 x, uint64 y);
|
2006-08-05 13:48:53 +00:00
|
|
|
uint64 uint64_subtract(uint64 x, uint64 y);
|
|
|
|
double uint64_to_double(uint64 x);
|
|
|
|
uint64 uint64_shift_right(uint64 x, int shift);
|
|
|
|
uint64 uint64_shift_left(uint64 x, int shift);
|
|
|
|
uint64 uint64_from_decimal(char *str);
|
2001-02-23 18:21:06 +00:00
|
|
|
|
2018-05-24 08:17:13 +00:00
|
|
|
void BinarySink_put_uint64(BinarySink *, uint64);
|
|
|
|
|
2001-02-23 18:21:06 +00:00
|
|
|
#endif
|