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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr42703.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 297 jeremybenn
__extension__ typedef unsigned long long int uint64_t;
2
typedef uint64_t ScmUInt64;
3
void swapb64(ScmUInt64 *loc)
4
{
5
    union {
6
        ScmUInt64 l;
7
        unsigned char c[4];
8
    } dd;
9
    unsigned char t;
10
    dd.l = *loc;
11
    (t = dd.c[3], dd.c[3] = dd.c[4], dd.c[4] = t);
12
}

powered by: WebSVN 2.1.0

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