skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

unsigned-template (1707B)


      1 #define @TYPE@_PACK @BYTES@
      2 #define @type@_pack uint@BITS@_pack
      3 #define @type@_pack_big uint@BITS@_pack_big
      4 #define @type@_unpack uint@BITS@_unpack
      5 #define @type@_unpack_big uint@BITS@_unpack_big
      6 
      7 #define @type@_little uint@BITS@_little
      8 #define @type@_big uint@BITS@_big
      9 #define @type@_littlep uint@BITS@_littlep
     10 #define @type@_bigp uint@BITS@_bigp
     11 #define @type@_littlen uint@BITS@_littlen
     12 #define @type@_bign uint@BITS@_bign
     13 
     14 #define @TYPE@_FMT UINT@BITS@_FMT
     15 #define @TYPE@_OFMT UINT@BITS@_OFMT
     16 #define @TYPE@_XFMT UINT@BITS@_XFMT
     17 #define @TYPE@_BFMT UINT@BITS@_BFMT
     18 
     19 #define @type@_fmt_base uint@BITS@_fmt_base
     20 #define @type@0_fmt_base uint@BITS@0_fmt_base
     21 #define @type@_fmt uint@BITS@_fmt
     22 #define @type@0_fmt uint@BITS@0_fmt
     23 #define @type@_ofmt uint@BITS@_ofmt
     24 #define @type@0_ofmt uint@BITS@0_ofmt
     25 #define @type@_xfmt uint@BITS@_xfmt
     26 #define @type@0_xfmt uint@BITS@0_xfmt
     27 #define @type@_bfmt uint@BITS@_bfmt
     28 #define @type@0_bfmt uint@BITS@0_bfmt
     29 
     30 #define @type@_fmtlist uint@BITS@_fmtlist
     31 
     32 #define @type@_scan_base(s, u, b) uint@BITS@_scan_base(s, (uint@BITS@_t *)u, b)
     33 #define @type@0_scan_base(s, u, b) uint@BITS@0_scan_base(s, (uint@BITS@_t *)u, b)
     34 #define @type@_scanlist(tab, max, s, num) uint@BITS@_scanlist((uint@BITS@_t *)tab, max, s, num)
     35 
     36 #define @type@_scan(s, u) @type@_scan_base(s, (u), 10)
     37 #define @type@0_scan(s, u) @type@0_scan_base(s, (u), 10)
     38 #define @type@_oscan(s, u) @type@_scan_base(s, (u), 8)
     39 #define @type@0_oscan(s, u) @type@0_scan_base(s, (u), 8)
     40 #define @type@_xscan(s, u) @type@_scan_base(s, (u), 16)
     41 #define @type@0_xscan(s, u) @type@0_scan_base(s, (u), 16)
     42 #define @type@_bscan(s, u) @type@_scan_base(s, (u), 2)
     43 #define @type@0_bscan(s, u) @type@0_scan_base(s, (u), 2)
     44