File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ struct half {
5151};
5252
5353/* adapted from DirectXMath XMConvertFloatToHalf */
54- static struct half half_from_float (float f )
54+ static inline struct half half_from_float (float f )
5555{
5656 uint32_t Result ;
5757
@@ -90,7 +90,7 @@ static struct half half_from_float(float f)
9090 return h ;
9191}
9292
93- static struct half half_from_bits (uint16_t u )
93+ static inline struct half half_from_bits (uint16_t u )
9494{
9595 struct half h ;
9696 h .u = u ;
Original file line number Diff line number Diff line change @@ -94,33 +94,33 @@ EXPORT bool gs_image_file4_tick(gs_image_file4_t *if4,
9494 uint64_t elapsed_time_ns );
9595EXPORT void gs_image_file4_update_texture (gs_image_file4_t * if4 );
9696
97- static void gs_image_file2_free (gs_image_file2_t * if2 )
97+ static inline void gs_image_file2_free (gs_image_file2_t * if2 )
9898{
9999 gs_image_file_free (& if2 -> image );
100100 if2 -> mem_usage = 0 ;
101101}
102102
103- static void gs_image_file2_init_texture (gs_image_file2_t * if2 )
103+ static inline void gs_image_file2_init_texture (gs_image_file2_t * if2 )
104104{
105105 gs_image_file_init_texture (& if2 -> image );
106106}
107107
108- static void gs_image_file3_free (gs_image_file3_t * if3 )
108+ static inline void gs_image_file3_free (gs_image_file3_t * if3 )
109109{
110110 gs_image_file2_free (& if3 -> image2 );
111111}
112112
113- static void gs_image_file3_init_texture (gs_image_file3_t * if3 )
113+ static inline void gs_image_file3_init_texture (gs_image_file3_t * if3 )
114114{
115115 gs_image_file2_init_texture (& if3 -> image2 );
116116}
117117
118- static void gs_image_file4_free (gs_image_file4_t * if4 )
118+ static inline void gs_image_file4_free (gs_image_file4_t * if4 )
119119{
120120 gs_image_file3_free (& if4 -> image3 );
121121}
122122
123- static void gs_image_file4_init_texture (gs_image_file4_t * if4 )
123+ static inline void gs_image_file4_init_texture (gs_image_file4_t * if4 )
124124{
125125 gs_image_file3_init_texture (& if4 -> image3 );
126126}
You can’t perform that action at this time.
0 commit comments