fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
tai.h File Reference
#include "uint_t.h"
Include dependency graph for tai.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tai
 

Macros

#define tai_unix(t, u)   ((void) ((t)->x = 4611686018427387914ULL + (uint64) (u)))
 
#define tai_approx(t)   ((double) ((t)->x))
 
#define tai_less(t, u)   ((t)->x < (u)->x)
 
#define TAI_PACK   8
 

Typedefs

typedef struct tai tai64
 

Functions

void tai_now (struct tai *)
 
void tai_add (struct tai *, const struct tai *, const struct tai *)
 
void tai_sub (struct tai *, const struct tai *, const struct tai *)
 
void tai_pack (char *, const struct tai *)
 
void tai_unpack (const char *, struct tai *)
 
void tai_uint (struct tai *, unsigned int)
 

Macro Definition Documentation

◆ tai_approx

#define tai_approx (   t)    ((double) ((t)->x))

Definition at line 49 of file tai.h.

◆ tai_less

#define tai_less (   t,
 
)    ((t)->x < (u)->x)

Definition at line 58 of file tai.h.

◆ TAI_PACK

#define TAI_PACK   8

Definition at line 60 of file tai.h.

◆ tai_unix

#define tai_unix (   t,
 
)    ((void) ((t)->x = 4611686018427387914ULL + (uint64) (u)))

Definition at line 35 of file tai.h.

Typedef Documentation

◆ tai64

typedef struct tai tai64

Function Documentation

◆ tai_add()

void tai_add ( struct tai t,
const struct tai u,
const struct tai v 
)

Definition at line 11 of file tai.c.

◆ tai_now()

void tai_now ( struct tai t)

Definition at line 16 of file tai.c.

◆ tai_pack()

void tai_pack ( char *  s,
const struct tai t 
)

Definition at line 21 of file tai.c.

Here is the caller graph for this function:

◆ tai_sub()

void tai_sub ( struct tai t,
const struct tai u,
const struct tai v 
)

Definition at line 36 of file tai.c.

◆ tai_uint()

void tai_uint ( struct tai t,
unsigned int  u 
)

Definition at line 41 of file tai.c.

◆ tai_unpack()

void tai_unpack ( const char *  s,
struct tai t 
)

Definition at line 46 of file tai.c.