Ticket #51218: patch-noinline.diff

File patch-noinline.diff, 1.5 KB (added by mojca (Mojca Miklavec), 8 years ago)
  • overviewer_core/src/primitives/lighting.c

    old new calculate_light_color_fancy_night(void *data, 
    9595 * may (and probably should) pass NULL.
    9696 */
    9797
    98 inline unsigned char
     98unsigned char
    9999estimate_blocklevel(RenderPrimitiveLighting *self, RenderState *state,
    100100                         int x, int y, int z, int *authoratative) {
    101101
    estimate_blocklevel(RenderPrimitiveLighting *self, RenderState *state, 
    145145    return blocklevel;
    146146}
    147147
    148 inline void
     148void
    149149get_lighting_color(RenderPrimitiveLighting *self, RenderState *state,
    150150                   int x, int y, int z,
    151151                   unsigned char *r, unsigned char *g, unsigned char *b) {
    get_lighting_color(RenderPrimitiveLighting *self, RenderState *state, 
    196196}
    197197
    198198/* does per-face occlusion checking for do_shading_with_mask */
    199 inline int
     199int
    200200lighting_is_face_occluded(RenderState *state, int skip_sides, int x, int y, int z) {
    201201    /* first, check for occlusion if the block is in the local chunk */
    202202    if (x >= 0 && x < 16 && y >= 0 && y < 16 && z >= 0 && z < 16) {
    lighting_is_face_occluded(RenderState *state, int skip_sides, int x, int y, int 
    221221
    222222/* shades the drawn block with the given facemask, based on the
    223223   lighting results from (x, y, z) */
    224 static inline void
     224static void
    225225do_shading_with_mask(RenderPrimitiveLighting *self, RenderState *state,
    226226                     int x, int y, int z, PyObject *mask) {
    227227    unsigned char r, g, b;