Commit c4b39fc1 authored by Bernhard Link's avatar Bernhard Link

add UFRACTION32_32

parent 33f9da89
2011-05-06
* add UFRACTION32_32
2011-02-12
* configure.ac: change monotonic clock cache-id to make autoconf happy
2011-02-06
......
......@@ -970,6 +970,7 @@ static size_t print_parameters(struct connection *c, const unsigned char *buffer
for( p = parameters; p->name != NULL; p++ ) {
size_t s;
int8_t i8; int16_t i16; int32_t i32;
uint32_t uu;
#ifdef STUPIDCC
uint8_t u8=0; uint16_t u16=0; uint32_t u32=0;
unsigned long l=0;
......@@ -1207,6 +1208,16 @@ static size_t print_parameters(struct connection *c, const unsigned char *buffer
u32 = getCARD32(ofs + 4);
fprintf(out,"%d/%u", i32, u32);
continue;
case ft_UFRACTION32_32:
if( ofs + 8 > len )
continue;
if( print_offsets )
fprintf(out,"[%d]",(int)ofs);
fputs(p->name,out);putc('=',out);
uu = getCARD32(ofs);
u32 = getCARD32(ofs + 4);
fprintf(out,"%u/%u", uu, u32);
continue;
case ft_INT32_32:
if( ofs + 8 > len )
continue;
......@@ -1403,6 +1414,7 @@ static size_t print_parameters(struct connection *c, const unsigned char *buffer
case ft_EVENT:
case ft_FRACTION16_16:
case ft_FRACTION32_32:
case ft_UFRACTION32_32:
case ft_INT32_32:
case ft_FIXED:
case ft_LISTofFIXED:
......
......@@ -124,6 +124,8 @@ struct parameter {
ft_FRACTION16_16,
/* dito 32 bit */
ft_FRACTION32_32,
/* nominator is unsigned */
ft_UFRACTION32_32,
/* a 64 bit number consisting of first the high 32 bit, then
* the low 32 bti */
ft_INT32_32,
......
......@@ -93,6 +93,7 @@ static const struct base_type {
{ "BE32", ft_BE32, ALLOWS_CONSTANTS, 4},
{ "FRACTION16_16", ft_FRACTION16_16, 0, 4},
{ "FRACTION32_32", ft_FRACTION32_32, 0, 8},
{ "UFRACTION32_32", ft_UFRACTION32_32, 0, 8},
{ "INT32_32", ft_INT32_32, ELEMENTARY, 8},
{ "FIXED", ft_FIXED, 0, 4},
{ "FIXED1616", ft_FIXED, 0, 4},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment