aboutsummaryrefslogtreecommitdiff
path: root/ports/alac-decoder/decomp.c
blob: a769533258a32909bdc499d1834955963395745d (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "decomp.h"
#include <stdint.h>

int set_endian()
{
    uint32_t integer = 0x000000aa;
    unsigned char *p = (unsigned char*)&integer;

    if (p[0] == 0xaa) return  0;
    else return  1;
}