OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr28776-2.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
typedef struct RangeCoder
2
{
3
    unsigned char one_state[256];
4
} RangeCoder;
5
static inline void put_rac(RangeCoder *c, unsigned char* const state)
6
{
7
  *state= c->one_state[*state];
8
}
9
typedef struct PlaneContext{
10
    unsigned (*state)[32];
11
} PlaneContext;
12
static inline void put_symbol(RangeCoder *c, unsigned char *state)
13
{
14
    int i;
15
    const int e;
16
    put_rac(c, state);
17
    for(i=e-1; i>=0; i--)
18
      put_rac(c, state+22+i);
19
}
20
int encode_line(void)
21
{
22
    PlaneContext * const p;
23
    RangeCoder * const c;
24
    int a;
25
    put_symbol(c, p->state[a]);
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.