Revision 18fba28c target-ppc/cpu.h

b/target-ppc/cpu.h
26 26

  
27 27
//#define USE_OPEN_FIRMWARE
28 28

  
29
/***                          Sign extend constants                        ***/
30
/* 8 to 32 bits */
31
static inline int32_t s_ext8 (uint8_t value)
32
{
33
    int8_t *tmp = &value;
34

  
35
    return *tmp;
36
}
37

  
38
/* 16 to 32 bits */
39
static inline int32_t s_ext16 (uint16_t value)
40
{
41
    int16_t *tmp = &value;
42

  
43
    return *tmp;
44
}
45

  
46 29
#include "config.h"
47 30
#include <setjmp.h>
48 31

  

Also available in: Unified diff