utils: Use G_GNUC_CONST instead of G_GNUC_PURE for conversion functions

Fixes bug #614629.
This commit is contained in:
Philip Withnall 2010-04-02 01:16:16 +01:00 committed by Sebastian Dröge
parent 2183504355
commit 6ca0b51e4e

View file

@ -35,8 +35,8 @@ void gst_util_set_value_from_string (GValue *value, const gchar *value_str);
void gst_util_set_object_arg (GObject *object, const gchar *name, const gchar *value);
void gst_util_dump_mem (const guchar *mem, guint size);
guint64 gst_util_gdouble_to_guint64 (gdouble value) G_GNUC_PURE;
gdouble gst_util_guint64_to_gdouble (guint64 value) G_GNUC_PURE;
guint64 gst_util_gdouble_to_guint64 (gdouble value) G_GNUC_CONST;
gdouble gst_util_guint64_to_gdouble (guint64 value) G_GNUC_CONST;
/**
* gst_guint64_to_gdouble:
@ -63,13 +63,13 @@ gdouble gst_util_guint64_to_gdouble (guint64 value) G_GNUC_PURE;
#define gst_guint64_to_gdouble(value) ((gdouble) (value))
#endif
guint64 gst_util_uint64_scale (guint64 val, guint64 num, guint64 denom) G_GNUC_PURE;
guint64 gst_util_uint64_scale_round (guint64 val, guint64 num, guint64 denom) G_GNUC_PURE;
guint64 gst_util_uint64_scale_ceil (guint64 val, guint64 num, guint64 denom) G_GNUC_PURE;
guint64 gst_util_uint64_scale (guint64 val, guint64 num, guint64 denom) G_GNUC_CONST;
guint64 gst_util_uint64_scale_round (guint64 val, guint64 num, guint64 denom) G_GNUC_CONST;
guint64 gst_util_uint64_scale_ceil (guint64 val, guint64 num, guint64 denom) G_GNUC_CONST;
guint64 gst_util_uint64_scale_int (guint64 val, gint num, gint denom) G_GNUC_PURE;
guint64 gst_util_uint64_scale_int_round (guint64 val, gint num, gint denom) G_GNUC_PURE;
guint64 gst_util_uint64_scale_int_ceil (guint64 val, gint num, gint denom) G_GNUC_PURE;
guint64 gst_util_uint64_scale_int (guint64 val, gint num, gint denom) G_GNUC_CONST;
guint64 gst_util_uint64_scale_int_round (guint64 val, gint num, gint denom) G_GNUC_CONST;
guint64 gst_util_uint64_scale_int_ceil (guint64 val, gint num, gint denom) G_GNUC_CONST;
guint32 gst_util_seqnum_next (void);
gint32 gst_util_seqnum_compare (guint32 s1, guint32 s2);