comparison dyncallback/dyncall_thunk_ppc32_sysv.c @ 97:d0787f3b81fb

- internal linkage for some helper functions - corrected and added some comments for clarification
author cslag
date Sat, 04 Jun 2016 19:35:58 +0200
parents 3e629dc19168
children bbefb8b8e74c
comparison
equal deleted inserted replaced
96:95f67e67feb0 97:d0787f3b81fb
23 */ 23 */
24 24
25 25
26 #include "dyncall_thunk.h" 26 #include "dyncall_thunk.h"
27 27
28 unsigned short hi16(x) { return ( (unsigned short) (((unsigned int)x)>>16UL) ); } 28 static unsigned short hi16(x) { return ( (unsigned short) (((unsigned int)x)>>16UL) ); }
29 unsigned short lo16(x) { return ( (unsigned short) ((unsigned int)x) ); } 29 static unsigned short lo16(x) { return ( (unsigned short) ((unsigned int)x) ); }
30 30
31 void dcbInitThunk(DCThunk* p, void (*entry)()) 31 void dcbInitThunk(DCThunk* p, void (*entry)())
32 { 32 {
33 /* 33 /*
34 0: 3d 60 00 00 lis r11,0 34 0: 3d 60 00 00 lis r11,0