diff options
author | Peter Larabell <xgl.asyliax@gmail.com> | 2012-07-10 09:16:43 +0400 |
---|---|---|
committer | Peter Larabell <xgl.asyliax@gmail.com> | 2012-07-10 09:16:43 +0400 |
commit | bbbdcaa462f1737edee58f66610231ccb4009d35 (patch) | |
tree | bfde4453558fdfd87bd9019d3474ef3e13ba34e5 /intern | |
parent | 492d9aabe0a05f3df6e9d3c046f8cb5d885f0871 (diff) |
fix: inline to __inline in raskter.c for msvc
Diffstat (limited to 'intern')
-rw-r--r-- | intern/raskter/raskter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/raskter/raskter.c b/intern/raskter/raskter.c index 9511b931e8f..7049f7d0ebe 100644 --- a/intern/raskter/raskter.c +++ b/intern/raskter/raskter.c @@ -814,14 +814,14 @@ int get_range_expanded_pixel_coord(float normalized_value, int max_value) { return (int)((normalized_value * (float)(max_value)) + 0.5f); } -inline float get_pixel_intensity(float *buf, int buf_x, int buf_y, int pos_x, int pos_y) { +__inline float get_pixel_intensity(float *buf, int buf_x, int buf_y, int pos_x, int pos_y) { if(pos_x < 0 || pos_x >= buf_x || pos_y < 0 || pos_y >= buf_y) { return 0.0f; } return buf[(pos_y * buf_x) + pos_x]; } -inline float get_pixel_intensity_bilinear(float *buf, int buf_x, int buf_y, float u, float v) { +__inline float get_pixel_intensity_bilinear(float *buf, int buf_x, int buf_y, float u, float v) { int a; int b; int a_plus_1; @@ -847,7 +847,7 @@ inline float get_pixel_intensity_bilinear(float *buf, int buf_x, int buf_y, floa } -inline void set_pixel_intensity(float *buf, int buf_x, int buf_y, int pos_x, int pos_y, float intensity) { +__inline void set_pixel_intensity(float *buf, int buf_x, int buf_y, int pos_x, int pos_y, float intensity) { if(pos_x < 0 || pos_x >= buf_x || pos_y < 0 || pos_y >= buf_y) { return; } |