/usr/include/skalibs/uint64.h is in skalibs-dev 0.47-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | /* Public domain. */
#ifndef UINT64_H
#define UINT64_H
typedef unsigned long uint64 ;
#define uint64_little_endian(s, n)
#define uint64_big_endian(s, n) uint64_reverse((s), (n))
extern void uint64_pack (char *, uint64) ;
extern void uint64_pack_big (char *, uint64) ;
extern void uint64_unpack (char const *, uint64 *) ;
extern void uint64_unpack_big (char const *, uint64 *) ;
extern void uint64_reverse (char *, unsigned int) ;
#define UINT64_FMT 21
#define UINT64_OFMT 25
#define UINT64_XFMT 17
#define UINT64_BFMT 65
extern unsigned int uint64_fmt_base (char *, uint64, unsigned char) ;
extern unsigned int uint640_fmt_base (char *, uint64, unsigned int, unsigned char) ;
#define uint64_fmt(s, u) uint64_fmt_base((s), (u), 10)
#define uint640_fmt(s, u, n) uint640_fmt_base((s), (u), (n), 10)
#define uint64_ofmt(s, u) uint64_fmt_base((s), (u), 8)
#define uint640_ofmt(s, u, n) uint640_fmt_base((s), (u), (n), 8)
#define uint64_xfmt(s, u) uint64_fmt_base((s), (u), 16)
#define uint640_xfmt(s, u, n) uint640_fmt_base((s), (u), (n), 16)
#define uint64_bfmt(s, u) uint64_fmt_base((s), (u), 2)
#define uint640_bfmt(s, u, n) uint640_fmt_base((s), (u), (n), 2)
extern unsigned int uint64_scan_upto_base (char const *, uint64 *, uint64, unsigned char) ;
extern unsigned int uint640_scan_upto_base (char const *, uint64 *, uint64, unsigned char) ;
#define uint64_scan_base(s, u, b) uint64_scan_upto_base((s), (u), ~(uint64)0, (b))
#define uint640_scan_base(s, u, b) uint640_scan_upto_base((s), (u), ~(uint64)0, (b))
#define uint64_scan(s, u) uint64_scan_base((s), (u), 10)
#define uint640_scan(s, u) uint640_scan_base((s), (u), 10)
#define uint64_oscan(s, u) uint64_scan_base((s), (u), 8)
#define uint640_oscan(s, u) uint640_scan_base((s), (u), 8)
#define uint64_xscan(s, u) uint64_scan_base((s), (u), 16)
#define uint640_xscan(s, u) uint640_scan_base((s), (u), 16)
#define uint64_bscan(s, u) uint64_scan_base((s), (u), 2)
#define uint640_bscan(s, u) uint640_scan_base((s), (u), 2)
#endif
|