Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Larabell <xgl.asyliax@gmail.com>2012-07-10 09:16:43 +0400
committerPeter Larabell <xgl.asyliax@gmail.com>2012-07-10 09:16:43 +0400
commitbbbdcaa462f1737edee58f66610231ccb4009d35 (patch)
treebfde4453558fdfd87bd9019d3474ef3e13ba34e5 /intern/raskter
parent492d9aabe0a05f3df6e9d3c046f8cb5d885f0871 (diff)
fix: inline to __inline in raskter.c for msvc
Diffstat (limited to 'intern/raskter')
-rw-r--r--intern/raskter/raskter.c6
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;
}