These are identical: main/compiler.h defines INLINE to "inline".
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
struct intel_screen *intelScreen;
};
-static INLINE bool
+static inline bool
is_power_of_two(uint32_t value)
{
return (value & (value - 1)) == 0;
* Inline conversion functions. These are better-typed than the
* macros used previously:
*/
-static INLINE struct brw_context *
+static inline struct brw_context *
brw_context( struct gl_context *ctx )
{
return (struct brw_context *)ctx;
}
-static INLINE struct brw_vertex_program *
+static inline struct brw_vertex_program *
brw_vertex_program(struct gl_vertex_program *p)
{
return (struct brw_vertex_program *) p;
}
-static INLINE const struct brw_vertex_program *
+static inline const struct brw_vertex_program *
brw_vertex_program_const(const struct gl_vertex_program *p)
{
return (const struct brw_vertex_program *) p;
}
-static INLINE struct brw_geometry_program *
+static inline struct brw_geometry_program *
brw_geometry_program(struct gl_geometry_program *p)
{
return (struct brw_geometry_program *) p;
}
-static INLINE struct brw_fragment_program *
+static inline struct brw_fragment_program *
brw_fragment_program(struct gl_fragment_program *p)
{
return (struct brw_fragment_program *) p;
}
-static INLINE const struct brw_fragment_program *
+static inline const struct brw_fragment_program *
brw_fragment_program_const(const struct gl_fragment_program *p)
{
return (const struct brw_fragment_program *) p;
* XXX Put this in src/mesa/main/imports.h ???
*/
#if defined(i386) || defined(__i386__)
-static INLINE void * __memcpy(void * to, const void * from, size_t n)
+static inline void * __memcpy(void * to, const void * from, size_t n)
{
int d0, d1, d2;
__asm__ __volatile__(
int loop_stack_array_size;
};
-static INLINE struct brw_instruction *current_insn( struct brw_compile *p)
+static inline struct brw_instruction *current_insn( struct brw_compile *p)
{
return &p->store[p->nr_insn];
}
void gen7_emit_vs_workaround_flush(struct brw_context *brw);
void gen7_emit_cs_stall_flush(struct brw_context *brw);
-static INLINE uint32_t float_as_int(float f)
+static inline uint32_t float_as_int(float f)
{
union {
float f;
* be passed as structs rather than dwords, but that's a little bit of
* work...
*/
-static INLINE unsigned
+static inline unsigned
intel_batchbuffer_space(struct brw_context *brw)
{
return (brw->batch.state_batch_offset - brw->batch.reserved_space)
}
-static INLINE void
+static inline void
intel_batchbuffer_emit_dword(struct brw_context *brw, GLuint dword)
{
#ifdef DEBUG
assert(brw->batch.ring != UNKNOWN_RING);
}
-static INLINE void
+static inline void
intel_batchbuffer_emit_float(struct brw_context *brw, float f)
{
intel_batchbuffer_emit_dword(brw, float_as_int(f));
}
-static INLINE void
+static inline void
intel_batchbuffer_require_space(struct brw_context *brw, GLuint sz,
enum brw_gpu_ring ring)
{
intel_batchbuffer_emit_render_ring_prelude(brw);
}
-static INLINE void
+static inline void
intel_batchbuffer_begin(struct brw_context *brw, int n, enum brw_gpu_ring ring)
{
intel_batchbuffer_require_space(brw, n * 4, ring);
#endif
}
-static INLINE void
+static inline void
intel_batchbuffer_advance(struct brw_context *brw)
{
#ifdef DEBUG
* NULL will be returned if the rb isn't really an intel_renderbuffer.
* This is determined by checking the ClassID.
*/
-static INLINE struct intel_renderbuffer *
+static inline struct intel_renderbuffer *
intel_renderbuffer(struct gl_renderbuffer *rb)
{
struct intel_renderbuffer *irb = (struct intel_renderbuffer *) rb;
* If the attached renderbuffer is a wrapper, then return wrapped
* renderbuffer.
*/
-static INLINE struct intel_renderbuffer *
+static inline struct intel_renderbuffer *
intel_get_renderbuffer(struct gl_framebuffer *fb, gl_buffer_index attIndex)
{
struct gl_renderbuffer *rb;
}
-static INLINE gl_format
+static inline gl_format
intel_rb_format(const struct intel_renderbuffer *rb)
{
return rb->Base.Base.Format;
* Returns the low Y value of the vertical range given, flipped according to
* whether the framebuffer is or not.
*/
-static INLINE int
+static inline int
y_flip(struct gl_framebuffer *fb, int y, int height)
{
if (_mesa_is_user_fbo(fb))
struct intel_mipmap_tree *mt;
};
-static INLINE struct intel_texture_object *
+static inline struct intel_texture_object *
intel_texture_object(struct gl_texture_object *obj)
{
return (struct intel_texture_object *) obj;
}
-static INLINE struct intel_texture_image *
+static inline struct intel_texture_image *
intel_texture_image(struct gl_texture_image *img)
{
return (struct intel_texture_image *) img;