File: commonMacros.h

package info (click to toggle)
zfp 1.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,744 kB
  • sloc: cpp: 20,656; ansic: 18,871; pascal: 1,231; f90: 907; python: 255; makefile: 183; sh: 79; fortran: 70
file content (6 lines) | stat: -rw-r--r-- 205 bytes parent folder | download
1
2
3
4
5
6
#include "zfp.h"

#define DIV_ROUND_UP(x, y) (((x) + (y) - 1) / (y))
#define BITS_TO_BYTES(x) DIV_ROUND_UP(x, CHAR_BIT)

#define ZFP_HEADER_SIZE_BITS (ZFP_MAGIC_BITS + ZFP_META_BITS + ZFP_MODE_SHORT_BITS)