int64.h 779 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Header for int64.c.
  3. */
  4. #ifndef PUTTY_INT64_H
  5. #define PUTTY_INT64_H
  6. #include "defs.h"
  7. typedef struct {
  8. unsigned long hi, lo;
  9. } uint64;
  10. uint64 uint64_div10(uint64 x, int *remainder);
  11. void uint64_decimal(uint64 x, char *buffer);
  12. uint64 uint64_make(unsigned long hi, unsigned long lo);
  13. uint64 uint64_add(uint64 x, uint64 y);
  14. uint64 uint64_add32(uint64 x, unsigned long y);
  15. int uint64_compare(uint64 x, uint64 y);
  16. uint64 uint64_subtract(uint64 x, uint64 y);
  17. double uint64_to_double(uint64 x);
  18. uint64 uint64_shift_right(uint64 x, int shift);
  19. uint64 uint64_shift_left(uint64 x, int shift);
  20. uint64 uint64_from_decimal(const char *str);
  21. void BinarySink_put_uint64(BinarySink *, uint64);
  22. uint64 BinarySource_get_uint64(BinarySource *);
  23. #endif