File: intfloat_readwrite.h

package info (click to toggle)
ffmpeg 0.cvs20060823-8
  • links: PTS, VCS
  • area: main
  • in suites: etch-m68k
  • size: 11,716 kB
  • ctags: 18,201
  • sloc: ansic: 231,024; sh: 2,496; asm: 1,471; makefile: 1,033; cpp: 382; perl: 306
file content (19 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef INTFLOAT_READWRITE_H
#define INTFLOAT_READWRITE_H

#include "common.h"

/* IEEE 80 bits extended float */
typedef struct AVExtFloat  {
    uint8_t exponent[2];
    uint8_t mantissa[8];
} AVExtFloat;

double av_int2dbl(int64_t v);
float av_int2flt(int32_t v);
double av_ext2dbl(const AVExtFloat ext);
int64_t av_dbl2int(double d);
int32_t av_flt2int(float d);
AVExtFloat av_dbl2ext(double d);

#endif /* INTFLOAT_READWRITE_H */