libuproc  1.2.0
Macros | Typedefs
common.h File Reference

Module: Common definitions. More...

#include <stdint.h>
#include <inttypes.h>
#include <math.h>

Go to the source code of this file.

Macros

#define UPROC_EPSILON   1e-5
 Epsilon value for comparing floating point numbers. More...
 
#define UPROC_BITMASK(n)   (~(~0ULL << (n)))
 Maks the lowest n bits. More...
 
#define UPROC_PREFIX_LEN   6
 Length of the suffix part of a word. More...
 
#define UPROC_SUFFIX_LEN   12
 Length of the prefix part of a word. More...
 
#define UPROC_WORD_LEN   (UPROC_PREFIX_LEN + UPROC_SUFFIX_LEN)
 Total word length. More...
 
#define UPROC_AMINO_BITS   5
 Bits needed to represent one amino acid. More...
 
#define UPROC_ALPHABET_SIZE   20
 Number of amino acids in the alphabet. More...
 
#define UPROC_PREFIX_PRI   PRIu32
 printf() format specifier More...
 
#define UPROC_PREFIX_SCN   SCNu32
 scanf() format specifier More...
 
#define UPROC_POW6(x)   ((x) * (x) * (x) * (x) * (x) * (x))
 Raise x to the power of 6. More...
 
#define UPROC_PREFIX_MAX   (UPROC_POW6((unsigned long)UPROC_ALPHABET_SIZE) - 1)
 Maximum value of a prefix. More...
 
#define UPROC_SUFFIX_PRI   PRIu64
 printf() format for suffixes More...
 
#define UPROC_SUFFIX_SCN   SCNu64
 scanf() format for suffixes More...
 
#define UPROC_FAMILY_MAX   (UINT_LEAST16_MAX - 1)
 Maximum value for uproc_family. More...
 
#define UPROC_FAMILY_INVALID   (UINT_LEAST16_MAX)
 Denotes an invalid protein family. More...
 
#define UPROC_FAMILY_PRI   PRIu16
 printf() format for uproc_family More...
 
#define UPROC_FAMILY_SCN   SCNu16
 scanf() format for uproc_family More...
 

Typedefs

typedef int uproc_amino
 Type to represent one amino acid. More...
 
typedef uint_least32_t uproc_prefix
 Type for prefixes. More...
 
typedef uint_least64_t uproc_suffix
 Type for suffixes. More...
 
typedef uint_least16_t uproc_family
 Identifier of a protein family. More...
 

Detailed Description

Module: Common definitions.