/usr/include/diet/skalibs/uint32.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 | /* Public domain. */
#ifndef UINT32_H
#define UINT32_H
#include "uint64.h"
#include <stdint.h>
typedef uint32_t uint32 ;
#define uint32_little_endian(s, n)
#define uint32_big_endian(s, n) uint32_reverse((s), (n))
extern void uint32_pack (char *, uint32) ;
extern void uint32_pack_big (char *, uint32) ;
extern void uint32_unpack (char const *, uint32 *) ;
extern void uint32_unpack_big (char const *, uint32 *) ;
extern void uint32_reverse (char *, unsigned int) ;
#define UINT32_FMT 11
#define UINT32_OFMT 13
#define UINT32_XFMT 9
#define UINT32_BFMT 33
#define uint32_fmt(s, u) uint64_fmt((s), (uint64)(uint32)(u))
#define uint320_fmt(s, u, n) uint640_fmt((s), (uint64)(uint32)(u), (n))
#define uint32_ofmt(s, o) uint64_ofmt((s), (uint64)(uint32)(o))
#define uint320_ofmt(s, o, n) uint640_ofmt((s), (uint64)(uint32)(o), (n))
#define uint32_xfmt(s, x) uint64_xfmt((s), (uint64)(uint32)(x))
#define uint320_xfmt(s, x, n) uint640_xfmt((s), (uint64)(uint32)(x), (n))
#define uint32_bfmt(s, x) uint64_bfmt((s), (uint64)(uint32)(x))
#define uint320_bfmt(s, x, n) uint640_bfmt((s), (uint64)(uint32)(x), (n))
extern unsigned int uint32_scan_base (char const *, uint32 *, unsigned char) ;
extern unsigned int uint320_scan_base (char const *, uint32 *, unsigned char) ;
#define uint32_scan(s, u) uint32_scan_base((s), (u), 10)
#define uint320_scan(s, u) uint320_scan_base((s), (u), 10)
#define uint32_oscan(s, u) uint32_scan_base((s), (u), 8)
#define uint320_oscan(s, u) uint320_scan_base((s), (u), 8)
#define uint32_xscan(s, u) uint32_scan_base((s), (u), 16)
#define uint320_xscan(s, u) uint320_scan_base((s), (u), 16)
#define uint32_bscan(s, u) uint32_scan_base((s), (u), 2)
#define uint320_bscan(s, u) uint320_scan_base((s), (u), 2)
#endif
|