[beast] BSE: reformat "unsigned int" -> "uint"



commit 104509dd7a3bf24bda829b438411afbf52a0845f
Author: Tim Janik <timj gtk org>
Date:   Tue Jul 26 04:14:17 2011 +0200

    BSE: reformat "unsigned int" -> "uint"

 bse/bsebusmodule.cc       |    2 +-
 bse/bsecontextmerger.cc   |   22 ++++++------
 bse/bsecsynth.cc          |    8 ++--
 bse/bsecxxarg.hh          |    2 +-
 bse/bsecxxmodule.cc       |    8 ++--
 bse/bsecxxmodule.hh       |   38 +++++++++++-----------
 bse/bsedatapocket.cc      |   46 +++++++++++++-------------
 bse/bsedevice.cc          |    8 ++--
 bse/bseeditablesample.cc  |    2 +-
 bse/bseenums.cc           |    4 +-
 bse/bsegconfig.cc         |    2 +-
 bse/bseglobals.cc         |   30 ++++++++--------
 bse/bseglue.cc            |   58 ++++++++++++++++----------------
 bse/bseieee754.h          |   28 ++++++++--------
 bse/bseloader-guspatch.cc |    2 +-
 bse/bsemath.c             |   36 ++++++++++----------
 bse/bsemath.h             |   80 ++++++++++++++++++++++----------------------
 bse/bseresampler.cc       |    2 +-
 bse/bseresampler.hh       |    6 ++--
 bse/bseresamplerimpl.hh   |   22 ++++++------
 bse/gsl-fftgen.pl         |   18 +++++-----
 bse/gslfft.h              |   12 +++---
 bse/gslfilter.c           |   80 ++++++++++++++++++++++----------------------
 bse/gslfilter.h           |   38 +++++++++++-----------
 24 files changed, 277 insertions(+), 277 deletions(-)
---
diff --git a/bse/bsebusmodule.cc b/bse/bsebusmodule.cc
index 3fc6be9..0e300bd 100644
--- a/bse/bsebusmodule.cc
+++ b/bse/bsebusmodule.cc
@@ -35,7 +35,7 @@ class BusModule : public BusModuleBase {
     {
     }
     void
-    process (unsigned int n_values)
+    process (uint n_values)
     {
       if (istream (ICHANNEL_AUDIO_IN1).connected && ostream (OCHANNEL_AUDIO_OUT1).connected)
         {
diff --git a/bse/bsecontextmerger.cc b/bse/bsecontextmerger.cc
index 680d027..3c62ede 100644
--- a/bse/bsecontextmerger.cc
+++ b/bse/bsecontextmerger.cc
@@ -27,10 +27,10 @@
 static void	 bse_context_merger_init		(BseContextMerger	 *self);
 static void	 bse_context_merger_class_init		(BseContextMergerClass	 *klass);
 static void	 bse_context_merger_context_create	(BseSource		 *source,
-							 unsigned int		  context_handle,
+							 uint        		  context_handle,
 							 BseTrans		 *trans);
 static void	 bse_context_merger_context_dismiss	(BseSource		 *source,
-							 unsigned int		  context_handle,
+							 uint        		  context_handle,
 							 BseTrans		 *trans);
 
 
@@ -64,7 +64,7 @@ static void
 bse_context_merger_class_init (BseContextMergerClass *klass)
 {
   BseSourceClass *source_class = BSE_SOURCE_CLASS (klass);
-  unsigned int channel_id, i;
+  uint channel_id, i;
   
   parent_class = g_type_class_peek_parent (klass);
   
@@ -95,7 +95,7 @@ bse_context_merger_init (BseContextMerger *self)
 
 void
 bse_context_merger_set_merge_context (BseContextMerger *self,
-				      unsigned int      merge_context)
+				      uint              merge_context)
 {
   g_return_if_fail (BSE_CONTEXT_MERGER (self));
   
@@ -111,20 +111,20 @@ bse_context_merger_set_merge_context (BseContextMerger *self,
 }
 
 typedef struct {
-  unsigned int real_context;
-  unsigned int ref_count;
+  uint real_context;
+  uint ref_count;
 } ContextModuleData;
 
 static void
 context_merger_process (BseModule    *module,
-			unsigned int  n_values)
+			uint          n_values)
 {
-  unsigned int i;
+  uint i;
   
   for (i = 0; i < BSE_CONTEXT_MERGER_N_IOPORTS; i++)
     if (BSE_MODULE_OSTREAM (module, i).connected)
       {
-	unsigned int j, n_cons = BSE_MODULE_JSTREAM (module, i).n_connections;
+	uint j, n_cons = BSE_MODULE_JSTREAM (module, i).n_connections;
 	
 	if (!n_cons)
 	  module->ostreams[i].values = bse_engine_const_values (0);
@@ -146,7 +146,7 @@ context_merger_process (BseModule    *module,
 
 static void
 bse_context_merger_context_create (BseSource    *source,
-				   unsigned int  context_handle,
+				   uint          context_handle,
 				   BseTrans     *trans)
 {
   static const BseModuleClass context_merger_mclass = {
@@ -194,7 +194,7 @@ bse_context_merger_context_create (BseSource    *source,
 
 static void
 bse_context_merger_context_dismiss (BseSource     *source,
-				    unsigned int   context_handle,
+				    uint           context_handle,
 				    BseTrans      *trans)
 {
   BseModule *module;
diff --git a/bse/bsecsynth.cc b/bse/bsecsynth.cc
index 9d79bc7..0649f8e 100644
--- a/bse/bsecsynth.cc
+++ b/bse/bsecsynth.cc
@@ -29,11 +29,11 @@ static void      bse_csynth_class_init             (BseCSynthClass *klass);
 static void      bse_csynth_init                   (BseCSynth      *self);
 static void      bse_csynth_finalize               (GObject        *object);
 static void      bse_csynth_set_property           (GObject        *object,
-                                                    unsigned int    param_id,
+                                                    uint            param_id,
                                                     const GValue   *value,
                                                     GParamSpec     *pspec);
 static void      bse_csynth_get_property           (GObject        *object,
-                                                    unsigned int    param_id,
+                                                    uint            param_id,
                                                     GValue         *value,
                                                     GParamSpec     *pspec);
 
@@ -88,7 +88,7 @@ bse_csynth_finalize (GObject *object)
 
 static void
 bse_csynth_set_property (GObject      *object,
-                         unsigned int  param_id,
+                         uint          param_id,
                          const GValue *value,
                          GParamSpec   *pspec)
 {
@@ -104,7 +104,7 @@ bse_csynth_set_property (GObject      *object,
 
 static void
 bse_csynth_get_property (GObject     *object,
-                         unsigned int param_id,
+                         uint         param_id,
                          GValue      *value,
                          GParamSpec  *pspec)
 {
diff --git a/bse/bsecxxarg.hh b/bse/bsecxxarg.hh
index 4b7f298..34cfe1b 100644
--- a/bse/bsecxxarg.hh
+++ b/bse/bsecxxarg.hh
@@ -81,7 +81,7 @@ BSE__SPECIALIZE(bool,                 bool,   "b", no_cast, no_cast);
 // BSE__SPECIALIZE(signed short,      int,    "i", no_cast, no_cast);
 // BSE__SPECIALIZE(unsigned short,    int,    "i", no_cast, no_cast);
 BSE__SPECIALIZE(signed int,           int,    "i", no_cast, no_cast);
-BSE__SPECIALIZE(unsigned int,         int,    "i", no_cast, no_cast);
+BSE__SPECIALIZE(uint,                 int,    "i", no_cast, no_cast);
 BSE__SPECIALIZE(signed long,          int,    "i", no_cast, no_cast);
 BSE__SPECIALIZE(unsigned long,        int,    "i", no_cast, no_cast);
 BSE__SPECIALIZE(signed long long,     num,    "n", no_cast, no_cast);
diff --git a/bse/bsecxxmodule.cc b/bse/bsecxxmodule.cc
index 450d893..09bcf74 100644
--- a/bse/bsecxxmodule.cc
+++ b/bse/bsecxxmodule.cc
@@ -112,7 +112,7 @@ SynthesisModule::set_module (BseModule *engine_module)
 }
 
 void
-SynthesisModule::ostream_set (unsigned int ostream_index,
+SynthesisModule::ostream_set (uint         ostream_index,
                               const float *values)
 {
   BseModule *m = engine_module();
@@ -360,7 +360,7 @@ handler_setup_func (BseModule      *module,   /* Engine Thread */
 }
 
 BseModule*
-Effect::integrate_engine_module (unsigned int   context_handle,
+Effect::integrate_engine_module (uint           context_handle,
                                  BseTrans      *trans)
 {
   BseSource *source = cast (this);
@@ -415,7 +415,7 @@ Effect::dismiss_engine_module (BseModule       *engine_module,
     }
 }
 
-unsigned int
+uint
 Effect::block_size() const
 {
   g_return_val_if_fail (is_prepared(), 0);
@@ -423,7 +423,7 @@ Effect::block_size() const
   return bse_engine_block_size();
 }
 
-unsigned int
+uint
 Effect::max_block_size() const
 {
   return BSE_STREAM_MAX_VALUES;
diff --git a/bse/bsecxxmodule.hh b/bse/bsecxxmodule.hh
index c144024..03d661d 100644
--- a/bse/bsecxxmodule.hh
+++ b/bse/bsecxxmodule.hh
@@ -30,9 +30,9 @@ enum ProcessCost {
 };
 struct JStream {
   const float **values;
-  unsigned int  n_connections;
+  uint          n_connections;
   /* private: */
-  unsigned int  jcount; /* reserved */
+  uint          jcount; /* reserved */
 };
 struct IStream {
   const float  *values;
@@ -52,16 +52,16 @@ public:
   explicit                  SynthesisModule ();
   virtual                  ~SynthesisModule () = 0;
   virtual void              reset           () = 0;
-  virtual void              process         (unsigned int n_values) = 0;
+  virtual void              process         (uint n_values) = 0;
   virtual const ProcessCost cost            ();
-  inline const IStream&     istream         (unsigned int istream_index) const;
-  inline const JStream&     jstream         (unsigned int jstream_index) const;
-  inline const OStream&     ostream         (unsigned int ostream_index) const;
-  void                      ostream_set     (unsigned int ostream_index,
+  inline const IStream&     istream         (uint istream_index) const;
+  inline const JStream&     jstream         (uint jstream_index) const;
+  inline const OStream&     ostream         (uint ostream_index) const;
+  void                      ostream_set     (uint ostream_index,
                                              const float *values);
   const float*              const_values    (float  value);
-  inline const unsigned int mix_freq        () const;
-  inline const unsigned int block_size      () const;
+  inline const uint         mix_freq        () const;
+  inline const uint         block_size      () const;
   inline guint64            tick_stamp      ();
   inline BseModule*         engine_module   ();
   static inline int         dtoi            (double d) { return bse_dtoi (d); }
@@ -131,7 +131,7 @@ public:
   const gchar*  ochannel_ident    (guint i) const { return BSE_SOURCE_OCHANNEL_IDENT (gobject(), i); }
   const gchar*  ochannel_label    (guint i) const { return BSE_SOURCE_OCHANNEL_LABEL (gobject(), i); }
   const gchar*  ochannel_blurb    (guint i) const { return BSE_SOURCE_OCHANNEL_BLURB (gobject(), i); }
-  virtual SynthesisModule*  create_module              (unsigned int     context_handle,
+  virtual SynthesisModule*  create_module              (uint             context_handle,
                                                         BseTrans        *trans) = 0;
   virtual SynthesisModule::
   Closure*                  make_module_config_closure () = 0;
@@ -152,20 +152,20 @@ protected:
                                                         int              n_istreams = -1,
                                                         int              n_jstreams = -1,
                                                         int              n_ostreams = -1);
-  virtual BseModule*        integrate_engine_module    (unsigned int     context_handle,
+  virtual BseModule*        integrate_engine_module    (uint             context_handle,
                                                         BseTrans        *trans);
   virtual void              dismiss_engine_module      (BseModule       *engine_module,
                                                         guint            context_handle,
                                                         BseTrans        *trans);
-  unsigned int              block_size                 () const;
-  unsigned int              max_block_size             () const;
+  uint                      block_size                 () const;
+  uint                      max_block_size             () const;
 public: /* FIXME: make this protected as soon as the modules have their own current_musical_tuning() accessor */
   BseMusicalTuningType      current_musical_tuning     () const;
 };
 /* implement Bse::Effect and Bse::SynthesisModule methods */
 #define BSE_EFFECT_INTEGRATE_MODULE(ObjectType,ModuleType,ParamType)            \
 Bse::SynthesisModule*                                                           \
-create_module (unsigned int context_handle,                                     \
+create_module (uint         context_handle,                                     \
                BseTrans    *trans)                                              \
 {                                                                               \
   /* check that 'this' is a ObjectType* */                                      \
@@ -217,12 +217,12 @@ SynthesisModule::engine_module ()
 {
   return intern_module;
 }
-inline const unsigned int
+inline const uint
 SynthesisModule::mix_freq () const
 {
   return externC::bse_engine_exvar_sample_freq;
 }
-inline const unsigned int
+inline const uint
 SynthesisModule::block_size () const
 {
   return externC::bse_engine_exvar_block_size;
@@ -233,19 +233,19 @@ SynthesisModule::tick_stamp ()
   return externC::bse_module_tick_stamp (engine_module());
 }
 inline const IStream&
-SynthesisModule::istream (unsigned int istream_index) const
+SynthesisModule::istream (uint         istream_index) const
 {
   void *istreams = BSE_MODULE_GET_ISTREAMSP (intern_module);
   return reinterpret_cast<IStream*> (istreams)[istream_index];
 }
 inline const JStream&
-SynthesisModule::jstream (unsigned int jstream_index) const
+SynthesisModule::jstream (uint         jstream_index) const
 {
   void *jstreams = BSE_MODULE_GET_JSTREAMSP (intern_module);
   return reinterpret_cast<JStream*> (jstreams)[jstream_index];
 }
 inline const OStream&
-SynthesisModule::ostream (unsigned int ostream_index) const
+SynthesisModule::ostream (uint         ostream_index) const
 {
   void *ostreams = BSE_MODULE_GET_OSTREAMSP (intern_module);
   return reinterpret_cast<OStream*> (ostreams)[ostream_index];
diff --git a/bse/bsedatapocket.cc b/bse/bsedatapocket.cc
index 1f001fc..e2ee5f2 100644
--- a/bse/bsedatapocket.cc
+++ b/bse/bsedatapocket.cc
@@ -33,7 +33,7 @@ struct _Notify
 {
   Notify        *next;
   BseDataPocket *pocket;
-  unsigned int   entry_id;
+  uint           entry_id;
 };
 
 
@@ -54,9 +54,9 @@ static SfiTokenType bse_data_pocket_restore_private	(BseObject		*object,
 
 /* --- variables --- */
 static void         *parent_class = NULL;
-static unsigned int  signal_entry_added = 0;
-static unsigned int  signal_entry_removed = 0;
-static unsigned int  signal_entry_changed = 0;
+static uint          signal_entry_added = 0;
+static uint          signal_entry_removed = 0;
+static uint          signal_entry_changed = 0;
 static Notify       *changed_notify_list = NULL;
 static GQuark	     quark_set_data = 0;
 
@@ -201,7 +201,7 @@ changed_notify_handler (void *data)
 
 static void
 changed_notify_add (BseDataPocket *pocket,
-		    unsigned int   entry_id)
+		    uint           entry_id)
 {
   Notify *notify;
   
@@ -222,12 +222,12 @@ pocket_uncross (BseItem *pitem,
 		BseItem *item)
 {
   BseDataPocket *pocket = BSE_DATA_POCKET (pitem);
-  unsigned int i;
+  uint i;
   
   for (i = 0; i < pocket->n_entries; i++)
     {
       BseDataPocketEntry *entry = pocket->entries + i;
-      unsigned int n, have_this_id = 0;
+      uint n, have_this_id = 0;
       
       for (n = 0; n < entry->n_items; n++)
 	if (entry->items[n].type == BSE_DATA_POCKET_OBJECT &&
@@ -262,7 +262,7 @@ static void
 remove_cross_ref (BseDataPocket *pocket,
 		  BseItem       *item)
 {
-  unsigned int i;
+  uint i;
   
   g_return_if_fail (BSE_IS_ITEM (item));
   g_return_if_fail (bse_item_common_ancestor (BSE_ITEM (pocket), item) != NULL); // FIXME: delete
@@ -271,7 +271,7 @@ remove_cross_ref (BseDataPocket *pocket,
   for (i = 0; i < pocket->n_entries; i++)
     {
       BseDataPocketEntry *entry = pocket->entries + i;
-      unsigned int n;
+      uint n;
       
       for (n = 0; n < entry->n_items; n++)
 	if (entry->items[n].type == BSE_DATA_POCKET_OBJECT &&
@@ -283,10 +283,10 @@ remove_cross_ref (BseDataPocket *pocket,
   bse_item_cross_unlink (BSE_ITEM (pocket), item, pocket_uncross);
 }
 
-unsigned int
+uint
 _bse_data_pocket_create_entry (BseDataPocket *pocket)
 {
-  unsigned int id, i;
+  uint id, i;
   
   g_return_val_if_fail (BSE_IS_DATA_POCKET (pocket), 0);
   
@@ -306,11 +306,11 @@ _bse_data_pocket_create_entry (BseDataPocket *pocket)
 
 gboolean
 _bse_data_pocket_delete_entry (BseDataPocket *pocket,
-			       unsigned int   entry_id)
+			       uint           entry_id)
 {
   BseDataPocketEntry *entry;
   GSList *cr_del = NULL;
-  unsigned int i, n;
+  uint i, n;
   
   g_return_val_if_fail (BSE_IS_DATA_POCKET (pocket), FALSE);
   g_return_val_if_fail (entry_id > 0, FALSE);
@@ -357,13 +357,13 @@ _bse_data_pocket_delete_entry (BseDataPocket *pocket,
 
 gboolean
 _bse_data_pocket_entry_set (BseDataPocket     *pocket,
-			    unsigned int       id,
+			    uint               id,
 			    GQuark             data_quark,
 			    char               type,
 			    BseDataPocketValue value)
 {
   BseDataPocketEntry *entry;
-  unsigned int i, n;
+  uint i, n;
   bool delete_item;
   
   g_return_val_if_fail (BSE_IS_DATA_POCKET (pocket), FALSE);
@@ -438,12 +438,12 @@ _bse_data_pocket_entry_set (BseDataPocket     *pocket,
 
 char
 _bse_data_pocket_entry_get (BseDataPocket      *pocket,
-			    unsigned int        id,
+			    uint                id,
 			    GQuark              data_quark,
 			    BseDataPocketValue *value)
 {
   BseDataPocketEntry *entry;
-  unsigned int i, n;
+  uint i, n;
   
   g_return_val_if_fail (BSE_IS_DATA_POCKET (pocket), 0);
   
@@ -482,7 +482,7 @@ bse_data_pocket_do_store_private (BseObject  *object,
 				  BseStorage *storage)
 {
   BseDataPocket *pocket = BSE_DATA_POCKET (object);
-  unsigned int i, j;
+  uint i, j;
   
   /* chain parent class' handler */
   if (BSE_OBJECT_CLASS (parent_class)->store_private)
@@ -509,7 +509,7 @@ bse_data_pocket_do_store_private (BseObject  *object,
 	  switch (entry->items[j].type)
 	    {
 	      char *string;
-	      unsigned int v_uint;
+	      uint v_uint;
 	    case BSE_DATA_POCKET_INT:	bse_storage_printf (storage, "%u", entry->items[j].value.v_int);	break;
 	    case BSE_DATA_POCKET_FLOAT:	bse_storage_putf (storage, entry->items[j].value.v_float);		break;
 	    case BSE_DATA_POCKET_INT64:
@@ -537,7 +537,7 @@ bse_data_pocket_do_store_private (BseObject  *object,
 }
 
 typedef struct {
-  unsigned int id;
+  uint id;
   GQuark quark;
 } ObjectEntry;
 
@@ -565,14 +565,14 @@ object_entry_resolved (void           *data,
 
 static SfiTokenType
 parse_set_data (BseDataPocket *pocket,
-		unsigned int   id,
+		uint           id,
 		BseStorage    *storage,
                 GScanner      *scanner)
 {
   BseDataPocketValue value;
   ObjectEntry *oentry = NULL;
   GQuark quark;
-  unsigned int ttype;
+  uint ttype;
   gboolean char_2_token;
   
   parse_or_return (scanner, G_TOKEN_STRING);
@@ -656,7 +656,7 @@ bse_data_pocket_restore_private (BseObject  *object,
   if (g_scanner_peek_next_token (scanner) == G_TOKEN_IDENTIFIER &&
       bse_string_equals ("create-entry", scanner->next_value.v_identifier))
     {
-      unsigned int id = _bse_data_pocket_create_entry (pocket);
+      uint id = _bse_data_pocket_create_entry (pocket);
       
       parse_or_return (scanner, G_TOKEN_IDENTIFIER);	/* eat identifier */
 
diff --git a/bse/bsedevice.cc b/bse/bsedevice.cc
index 7ebf681..de478f0 100644
--- a/bse/bsedevice.cc
+++ b/bse/bsedevice.cc
@@ -40,7 +40,7 @@ bse_device_list (BseDevice    *self)
 
 static char**
 device_split_args (const char   *arg_string,
-                   unsigned int *n)
+                   uint         *n)
 {
   *n = 0;
   if (!arg_string || !arg_string[0])
@@ -63,7 +63,7 @@ device_open_args (BseDevice      *self,
                   const char     *arg_string)
 {
   BseErrorType error;
-  unsigned int n;
+  uint n;
   char **args = device_split_args (arg_string, &n);
   error = BSE_DEVICE_GET_CLASS (self)->open (self,
                                              need_readable != FALSE,
@@ -234,7 +234,7 @@ device_class_list_entries (GType    type,
       ring = bse_device_list (device);
       g_object_unref (device);
     }
-  unsigned int n, i;
+  uint n, i;
   GType *children = g_type_children (type, &n);
   for (i = 0; i < n; i++)
     ring = sfi_ring_concat (ring, device_class_list_entries (children[i], request_callback, data));
@@ -358,7 +358,7 @@ device_classes_list (GType type,
     ring = sfi_ring_append (ring, klass);
   else
     g_type_class_unref (klass);
-  unsigned int n, i;
+  uint n, i;
   GType *children = g_type_children (type, &n);
   for (i = 0; i < n; i++)
     ring = sfi_ring_concat (ring, device_classes_list (children[i], min_rating));
diff --git a/bse/bseeditablesample.cc b/bse/bseeditablesample.cc
index 2045f82..320627e 100644
--- a/bse/bseeditablesample.cc
+++ b/bse/bseeditablesample.cc
@@ -39,7 +39,7 @@ static void	    bse_editable_sample_finalize	(GObject		*object);
 
 /* --- variables --- */
 static void          *parent_class = NULL;
-static unsigned int   signal_changed = 0;
+static uint           signal_changed = 0;
 static Notify        *changed_notify_list = NULL;
 
 
diff --git a/bse/bseenums.cc b/bse/bseenums.cc
index 26f559c..0cd5a1c 100644
--- a/bse/bseenums.cc
+++ b/bse/bseenums.cc
@@ -38,8 +38,8 @@ bse_type_register_enums (void)
     /* include generated enum list */
 #include "bseenum_list.c"
   };
-  unsigned int n_enums = sizeof (enums) / sizeof (enums[0]);
-  unsigned int i;
+  uint n_enums = sizeof (enums) / sizeof (enums[0]);
+  uint i;
   
   for (i = 0; i < n_enums; i++)
     {
diff --git a/bse/bsegconfig.cc b/bse/bsegconfig.cc
index 63d0bb9..45e84a1 100644
--- a/bse/bsegconfig.cc
+++ b/bse/bsegconfig.cc
@@ -23,7 +23,7 @@
 /* --- variables --- */
 BseGConfig           *bse_global_config = NULL;
 static GParamSpec    *pspec_global_config = NULL;
-static unsigned int   gconfig_lock_count = 0;
+static uint           gconfig_lock_count = 0;
 
 
 /* --- functions --- */
diff --git a/bse/bseglobals.cc b/bse/bseglobals.cc
index 3d0c963..d1222e2 100644
--- a/bse/bseglobals.cc
+++ b/bse/bseglobals.cc
@@ -88,12 +88,12 @@ bse_time_range_to_ms (BseTimeRangeType time_range)
  * preceeding even realtime synthesis job handling should be executed this way.
  * This function is MT-safe and may be called from any thread.
  */
-unsigned int
+uint
 bse_idle_now (GSourceFunc function,
 	      void       *data)
 {
   GSource *source = g_idle_source_new ();
-  unsigned int id;
+  uint id;
   g_source_set_priority (source, BSE_PRIORITY_NOW);
   g_source_set_callback (source, function, data, NULL);
   id = g_source_attach (source, bse_main_context);
@@ -110,12 +110,12 @@ bse_idle_now (GSourceFunc function,
  * asyncronously as soon as the BSE core isn't occupied by realtime job handling.
  * This function is MT-safe and may be called from any thread.
  */
-unsigned int
+uint
 bse_idle_next (GSourceFunc function,
 	       void       *data)
 {
   GSource *source = g_idle_source_new ();
-  unsigned int id;
+  uint id;
   g_source_set_priority (source, BSE_PRIORITY_NEXT);
   g_source_set_callback (source, function, data, NULL);
   id = g_source_attach (source, bse_main_context);
@@ -133,12 +133,12 @@ bse_idle_next (GSourceFunc function,
  * asyncronous notifications.
  * This function is MT-safe and may be called from any thread.
  */
-unsigned int
+uint
 bse_idle_notify (GSourceFunc function,
 		 void       *data)
 {
   GSource *source = g_idle_source_new ();
-  unsigned int id;
+  uint id;
   g_source_set_priority (source, BSE_PRIORITY_NOTIFY);
   g_source_set_callback (source, function, data, NULL);
   id = g_source_attach (source, bse_main_context);
@@ -146,12 +146,12 @@ bse_idle_notify (GSourceFunc function,
   return id;
 }
 
-unsigned int
+uint
 bse_idle_normal (GSourceFunc function,
 		 void       *data)
 {
   GSource *source = g_idle_source_new ();
-  unsigned int id;
+  uint id;
   g_source_set_priority (source, BSE_PRIORITY_NORMAL);
   g_source_set_callback (source, function, data, NULL);
   id = g_source_attach (source, bse_main_context);
@@ -159,12 +159,12 @@ bse_idle_normal (GSourceFunc function,
   return id;
 }
 
-unsigned int
+uint
 bse_idle_update (GSourceFunc function,
 		 void       *data)
 {
   GSource *source = g_idle_source_new ();
-  unsigned int id;
+  uint id;
   g_source_set_priority (source, BSE_PRIORITY_UPDATE);
   g_source_set_callback (source, function, data, NULL);
   id = g_source_attach (source, bse_main_context);
@@ -172,12 +172,12 @@ bse_idle_update (GSourceFunc function,
   return id;
 }
 
-unsigned int
+uint
 bse_idle_background (GSourceFunc function,
 		     void       *data)
 {
   GSource *source = g_idle_source_new ();
-  unsigned int id;
+  uint id;
   g_source_set_priority (source, BSE_PRIORITY_BACKGROUND);
   g_source_set_callback (source, function, data, NULL);
   id = g_source_attach (source, bse_main_context);
@@ -194,13 +194,13 @@ bse_idle_background (GSourceFunc function,
  * bse_idle_now(), after a delay period of @a usec_delay has passed.
  * This function is MT-safe and may be called from any thread.
  */
-unsigned int
+uint
 bse_idle_timed (guint64     usec_delay,
 		GSourceFunc function,
 		void       *data)
 {
   GSource *source = g_timeout_source_new (CLAMP (usec_delay / 1000, 0, G_MAXUINT));
-  unsigned int id;
+  uint id;
   g_source_set_priority (source, BSE_PRIORITY_NEXT);
   g_source_set_callback (source, function, data, NULL);
   id = g_source_attach (source, bse_main_context);
@@ -215,7 +215,7 @@ bse_idle_timed (guint64     usec_delay,
  * This function is MT-safe and may be called from any thread.
  */
 gboolean
-bse_idle_remove (unsigned int id)
+bse_idle_remove (uint id)
 {
   GSource *source;
 
diff --git a/bse/bseglue.cc b/bse/bseglue.cc
index 338147a..93daf77 100644
--- a/bse/bseglue.cc
+++ b/bse/bseglue.cc
@@ -25,10 +25,10 @@
 
 /* --- structures --- */
 typedef struct {
-  unsigned int     id;
+  uint             id;
   union {
     GSList       *list;
-    unsigned int  next_nref; /* index+1 */
+    uint          next_nref; /* index+1 */
   } data;
 } NotifyRef;
 typedef struct {
@@ -36,14 +36,14 @@ typedef struct {
   char          *user;
   SfiUStore     *bproxies;
   SfiRing	*events;
-  unsigned int	 n_nrefs;
+  uint        	 n_nrefs;
   NotifyRef	*nrefs;
-  unsigned int	 free_nref; /* index+1 */
+  uint        	 free_nref; /* index+1 */
 } BContext;
 typedef struct {
   GSList        *closures;
   unsigned long  release_id;
-  unsigned int   remote_watch : 1;
+  uint           remote_watch : 1;
 } BProxy;
 typedef struct {
   GClosure      closure;
@@ -99,7 +99,7 @@ static gboolean		bglue_proxy_request_notify	(SfiGlueContext *context,
 							 const char     *signal,
 							 gboolean        enable_notify);
 static void		bglue_proxy_processed_notify	(SfiGlueContext	*context,
-							 unsigned int	 notify_id);
+							 uint        	 notify_id);
 static GValue*          bglue_client_msg                (SfiGlueContext *context,
 							 const char     *msg,
 							 GValue         *value);
@@ -164,11 +164,11 @@ bse_glue_context_intern (const char *user)
   return &bcontext->context;
 }
 
-static unsigned int
+static uint
 bcontext_new_notify_ref (BContext *bcontext)
 {
   static unsigned char rand_counter = 0;
-  unsigned int i = bcontext->free_nref;
+  uint i = bcontext->free_nref;
   if (i)
     i -= 1; /* id -> index */
   else
@@ -187,10 +187,10 @@ bcontext_new_notify_ref (BContext *bcontext)
 
 static void
 bcontext_notify_ref_add_item (BContext     *bcontext,
-			      unsigned int  id,
+			      uint          id,
 			      BseItem      *item)
 {
-  unsigned int i = (id & 0xffffff) - 1;
+  uint i = (id & 0xffffff) - 1;
   if (item)
     bcontext->nrefs[i].data.list = g_slist_prepend (bcontext->nrefs[i].data.list,
 						    bse_item_use (item));
@@ -198,9 +198,9 @@ bcontext_notify_ref_add_item (BContext     *bcontext,
 
 static gboolean
 bcontext_release_notify_ref (BContext     *bcontext,
-			     unsigned int  id)
+			     uint          id)
 {
-  unsigned int i = (id & 0xffffff) - 1;
+  uint i = (id & 0xffffff) - 1;
   if (i < bcontext->n_nrefs &&
       bcontext->nrefs[i].id == id)
     {
@@ -232,7 +232,7 @@ bcontext_queue_release (BContext *bcontext,
 
 static void
 bcontext_queue_signal (BContext     *bcontext,
-		       unsigned int  nref_id,
+		       uint          nref_id,
 		       const char   *signal,
 		       SfiSeq       *args)
 {
@@ -431,7 +431,7 @@ bglue_describe_iface (SfiGlueContext *context,
   GObjectClass *oclass;
   GParamSpec **pspecs;
   GSList *plist = NULL;
-  unsigned int i, n;
+  uint i, n;
   
   if (!G_TYPE_IS_OBJECT (type) || !g_type_is_a (type, BSE_TYPE_ITEM))
     return NULL;
@@ -479,13 +479,13 @@ bglue_describe_iface (SfiGlueContext *context,
   return f;
 }
 
-unsigned int
+uint
 bse_glue_enum_index (GType enum_type,
 		     int   enum_value)
 {
   GEnumClass *eclass;
   GEnumValue *ev;
-  unsigned int index;
+  uint index;
   
   g_return_val_if_fail (G_TYPE_IS_ENUM (enum_type), G_MAXINT);
   g_return_val_if_fail (G_TYPE_IS_DERIVED (enum_type), G_MAXINT);
@@ -514,7 +514,7 @@ bglue_describe_proc (SfiGlueContext *context,
   proc = (BseProcedureClass*) g_type_class_ref (type);
   if (proc->n_out_pspecs < 2)
     {
-      unsigned int i;
+      uint i;
       
       p = sfi_glue_proc_new (g_type_name (type));
       p->help = g_strdup (bse_type_get_blurb (type));
@@ -543,7 +543,7 @@ bglue_list_proc_names (SfiGlueContext *context)
 {
   BseCategorySeq *cseq = bse_categories_match_typed ("/Proc/""*", BSE_TYPE_PROCEDURE);
   char **p;
-  unsigned int i;
+  uint i;
   
   p = g_new (char*, cseq->n_cats + 1);
   for (i = 0; i < cseq->n_cats; i++)
@@ -561,7 +561,7 @@ bglue_list_method_names (SfiGlueContext *context,
   GType type = g_type_from_name (iface_name);
   BseCategorySeq *cseq;
   char **p, *prefix;
-  unsigned int i, l, n_procs;
+  uint i, l, n_procs;
   
   if (!g_type_is_a (type, BSE_TYPE_ITEM))
     return NULL;
@@ -598,7 +598,7 @@ bglue_iface_children (SfiGlueContext *context,
   if (g_type_is_a (type, BSE_TYPE_ITEM))
     {
       GType *children;
-      unsigned int n;
+      uint n;
       
       children = g_type_children (type, &n);
       childnames = g_new (char*, n + 1);
@@ -632,7 +632,7 @@ bglue_exec_proc (SfiGlueContext *context,
       BseProcedureClass *proc = (BseProcedureClass*) g_type_class_ref (ptype);
       GValue *ovalues = g_new0 (GValue, proc->n_out_pspecs);
       GSList *ilist = NULL, *olist = NULL, *clearlist = NULL;
-      unsigned int i, sl = sfi_seq_length (params);
+      uint i, sl = sfi_seq_length (params);
       BseErrorType error;
       
       for (i = 0; i < proc->n_in_pspecs; i++)
@@ -721,7 +721,7 @@ bglue_proxy_list_properties (SfiGlueContext *context,
     {
       GType first_base_type = first_ancestor ? g_type_from_name (first_ancestor) : 0;
       GType last_base_type = last_ancestor ? g_type_from_name (last_ancestor) : 0;
-      unsigned int i, n;
+      uint i, n;
       GParamSpec **pspecs = g_object_class_list_properties (G_OBJECT_GET_CLASS (object), &n);
       char **p = g_new (char*, n + 1);
       names = p;
@@ -926,7 +926,7 @@ bglue_proxy_watch_release (SfiGlueContext *context,
 static void
 bclosure_marshal (GClosure       *closure,
 		  GValue         *return_value,
-		  unsigned int    n_param_values,
+		  uint            n_param_values,
 		  const GValue   *param_values,
 		  void           *invocation_hint,
 		  void           *marshal_data)
@@ -935,7 +935,7 @@ bclosure_marshal (GClosure       *closure,
   BContext *bcontext = (BContext*) closure->data;
   const char *signal = g_quark_to_string (bclosure->qsignal);
   SfiSeq *args = sfi_seq_new ();
-  unsigned int i, nref_id = bcontext_new_notify_ref (bcontext);
+  uint i, nref_id = bcontext_new_notify_ref (bcontext);
 
   for (i = 0; i < n_param_values; i++)
     {
@@ -952,7 +952,7 @@ bclosure_marshal (GClosure       *closure,
 static void
 bclosure_notify_marshal (GClosure       *closure,
 			 GValue         *return_value,
-			 unsigned int    n_param_values,
+			 uint            n_param_values,
 			 const GValue   *param_values,
 			 void           *invocation_hint,
 			 void           *marshal_data)
@@ -962,7 +962,7 @@ bclosure_notify_marshal (GClosure       *closure,
   char *signal = g_quark_to_string (bclosure->qsignal);
   SfiSeq *args = sfi_seq_new ();
   BseItem *item;
-  unsigned int nref_id = bcontext_new_notify_ref (bcontext);
+  uint nref_id = bcontext_new_notify_ref (bcontext);
   GParamSpec *pspec;
 
   /* here we handle aliasing of ::notify to ::property_notify,
@@ -994,7 +994,7 @@ bglue_proxy_request_notify (SfiGlueContext *context,
   GSList *slist, *last = NULL;
   GClosureMarshal sig_closure_marshal;
   char *sig_name, *c;
-  unsigned int sig_id;
+  uint sig_id;
   gboolean connected;
 
   if (!BSE_IS_ITEM (item) || !signal)
@@ -1087,7 +1087,7 @@ bglue_proxy_request_notify (SfiGlueContext *context,
 
 static void
 bglue_proxy_processed_notify (SfiGlueContext *context,
-			      unsigned int    notify_id)
+			      uint            notify_id)
 {
   BContext *bcontext = (BContext*) context;
   if (!bcontext_release_notify_ref (bcontext, notify_id))
@@ -1143,7 +1143,7 @@ bglue_destroy (SfiGlueContext *context)
   BContext *bcontext = (BContext*) context;
   GSList *plist = NULL;
   SfiSeq *seq;
-  unsigned int i;
+  uint i;
   sfi_ustore_foreach (bcontext->bproxies, bproxy_foreach_slist, &plist);
   while (plist)
     {
diff --git a/bse/bseieee754.h b/bse/bseieee754.h
index 1ae3601..5014d90 100644
--- a/bse/bseieee754.h
+++ b/bse/bseieee754.h
@@ -146,19 +146,19 @@ typedef union
 {
   float		v_float;
   struct {
-    unsigned int mantissa : 23;
-    unsigned int biased_exponent : 8;
-    unsigned int sign : 1;
+    uint mantissa : 23;
+    uint biased_exponent : 8;
+    uint sign : 1;
   } mpn;
 } BseFloatIEEE754;
 typedef union
 {
   double	v_double;
   struct {
-    unsigned int mantissa_low : 32;
-    unsigned int mantissa_high : 20;
-    unsigned int biased_exponent : 11;
-    unsigned int sign : 1;
+    uint mantissa_low : 32;
+    uint mantissa_high : 20;
+    uint biased_exponent : 11;
+    uint sign : 1;
   } mpn;
 } BseDoubleIEEE754;
 #define	_BSE_DOUBLE_INF_BYTES	{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x7f }
@@ -170,19 +170,19 @@ typedef union
 {
   float         v_float;
   struct {
-    unsigned int sign : 1;
-    unsigned int biased_exponent : 8;
-    unsigned int mantissa : 23;
+    uint sign : 1;
+    uint biased_exponent : 8;
+    uint mantissa : 23;
   } mpn;
 } BseFloatIEEE754;
 typedef union
 {
   double        v_double;
   struct {
-    unsigned int sign : 1;
-    unsigned int biased_exponent : 11;
-    unsigned int mantissa_high : 20;
-    unsigned int mantissa_low : 32;
+    uint sign : 1;
+    uint biased_exponent : 11;
+    uint mantissa_high : 20;
+    uint mantissa_low : 32;
   } mpn;
 } BseDoubleIEEE754;
 #define	_BSE_DOUBLE_INF_BYTES	{ 0x7f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
diff --git a/bse/bseloader-guspatch.cc b/bse/bseloader-guspatch.cc
index 6278637..c5a7e0e 100644
--- a/bse/bseloader-guspatch.cc
+++ b/bse/bseloader-guspatch.cc
@@ -36,7 +36,7 @@ namespace
 {
 typedef unsigned char byte;
 typedef unsigned short int word;
-typedef unsigned int dword;
+typedef uint dword;
 typedef char sbyte;
 typedef short int sword;
 typedef int sdword;
diff --git a/bse/bsemath.c b/bse/bsemath.c
index 0874937..5e471aa 100644
--- a/bse/bsemath.c
+++ b/bse/bsemath.c
@@ -40,14 +40,14 @@ pretty_print_double (char  *str,
 }
 
 char*
-bse_complex_list (unsigned int n_points,
+bse_complex_list (uint         n_points,
 		  BseComplex  *points,
 		  const char  *indent)
 {
-  static unsigned int rbi = 0;
+  static uint rbi = 0;
   static char* rbuffer[RING_BUFFER_LENGTH] = { NULL, };
   char *s, *tbuffer = g_newa (char, (FLOAT_STRING_SIZE * 2 * n_points));
-  unsigned int i;
+  uint i;
   
   rbi = (rbi + 1) % RING_BUFFER_LENGTH;
   if (rbuffer[rbi] != NULL)
@@ -72,7 +72,7 @@ bse_complex_list (unsigned int n_points,
 char*
 bse_complex_str (BseComplex c)
 {
-  static unsigned int rbi = 0;
+  static uint rbi = 0;
   static char* rbuffer[RING_BUFFER_LENGTH] = { NULL, };
   char *s, tbuffer[FLOAT_STRING_SIZE * 2];
   
@@ -92,14 +92,14 @@ bse_complex_str (BseComplex c)
 }
 
 char*
-bse_poly_str (unsigned int degree,
+bse_poly_str (uint         degree,
 	      double      *a,
 	      const char  *var)
 {
-  static unsigned int rbi = 0;
+  static uint rbi = 0;
   static char* rbuffer[RING_BUFFER_LENGTH] = { NULL, };
   char *s, *tbuffer = g_newa (char, degree * FLOAT_STRING_SIZE);
-  unsigned int i;
+  uint i;
   
   if (!var)
     var = "x";
@@ -125,14 +125,14 @@ bse_poly_str (unsigned int degree,
 }
 
 char*
-bse_poly_str1 (unsigned int degree,
+bse_poly_str1 (uint         degree,
 	       double      *a,
 	       const char  *var)
 {
-  static unsigned int rbi = 0;
+  static uint rbi = 0;
   static char* rbuffer[RING_BUFFER_LENGTH] = { NULL, };
   char *s, *tbuffer = g_newa (char, degree * FLOAT_STRING_SIZE);
-  unsigned int i, need_plus = 0;
+  uint i, need_plus = 0;
   
   if (!var)
     var = "x";
@@ -181,7 +181,7 @@ bse_poly_str1 (unsigned int degree,
 
 void
 bse_complex_gnuplot (const char  *file_name,
-		     unsigned int n_points,
+		     uint         n_points,
 		     BseComplex  *points)
 {
   FILE *fout = fopen (file_name, "w");
@@ -194,7 +194,7 @@ void
 bse_float_gnuplot (const char    *file_name,
                    double         xstart,
                    double         xstep,
-                   unsigned int   n_ypoints,
+                   uint           n_ypoints,
                    const float   *ypoints)
 {
   FILE *fout = fopen (file_name, "w");
@@ -221,11 +221,11 @@ bse_temp_freq (double kammer_freq,
 }
 
 void
-bse_poly_from_re_roots (unsigned int degree,
+bse_poly_from_re_roots (uint         degree,
 			double      *a,
 			BseComplex  *roots)
 {
-  unsigned int i;
+  uint i;
   
   /* initialize polynomial */
   a[1] = 1;
@@ -233,7 +233,7 @@ bse_poly_from_re_roots (unsigned int degree,
   /* monomial factor multiplication */
   for (i = 1; i < degree; i++)
     {
-      unsigned int j;
+      uint j;
       
       a[i + 1] = a[i];
       for (j = i; j >= 1; j--)
@@ -243,11 +243,11 @@ bse_poly_from_re_roots (unsigned int degree,
 }
 
 void
-bse_cpoly_from_roots (unsigned int degree,
+bse_cpoly_from_roots (uint         degree,
 		      BseComplex  *c,
 		      BseComplex  *roots)
 {
-  unsigned int i;
+  uint i;
   
   /* initialize polynomial */
   c[1].re = 1;
@@ -258,7 +258,7 @@ bse_cpoly_from_roots (unsigned int degree,
   for (i = 1; i < degree; i++)
     {
       BseComplex r = bse_complex (-roots[i].re, -roots[i].im);
-      unsigned int j;
+      uint j;
       
       c[i + 1] = c[i];
       for (j = i; j >= 1; j--)
diff --git a/bse/bsemath.h b/bse/bsemath.h
index 16fcc99..8f481f2 100644
--- a/bse/bsemath.h
+++ b/bse/bsemath.h
@@ -95,63 +95,63 @@ static inline BseComplex bse_complex_sinh       (BseComplex     c);
 static inline BseComplex bse_complex_cosh       (BseComplex     c);
 static inline BseComplex bse_complex_tanh       (BseComplex     c);
 char*                    bse_complex_str        (BseComplex     c);
-char*                    bse_complex_list       (unsigned int   n_points,
+char*                    bse_complex_list       (uint           n_points,
                                                  BseComplex    *points,
                                                  const char    *indent);
 void                     bse_complex_gnuplot    (const char    *file_name,
-                                                 unsigned int   n_points,
+                                                 uint           n_points,
                                                  BseComplex    *points);
 
 /* --- polynomials --- */
 /* example, degree=2: 5+2x+7x^2 => a[0..degree] = { 5, 2, 7 } */
-static inline void     bse_poly_add             (unsigned int   degree,
+static inline void     bse_poly_add             (uint           degree,
                                                  double        *a, /* a[0..degree] */
                                                  double        *b);
-static inline void     bse_poly_sub             (unsigned int   order,
+static inline void     bse_poly_sub             (uint           order,
                                                  double        *a, /* [0..degree] */
                                                  double        *b);
 static inline void     bse_poly_mul             (double        *p,  /* out:[0..aorder+border] */
-                                                 unsigned int   aorder,
+                                                 uint           aorder,
                                                  const double  *a,  /* in:[0..aorder] */
-                                                 unsigned int   border,
+                                                 uint           border,
                                                  const double  *b); /* in:[0..border] */
-static inline void     bse_poly_scale           (unsigned int   order,
+static inline void     bse_poly_scale           (uint           order,
                                                  double        *a, /* [0..degree] */
                                                  double         scale);
-static inline void     bse_poly_xscale          (unsigned int   order,
+static inline void     bse_poly_xscale          (uint           order,
                                                  double        *a, /* [0..degree] */
                                                  double         xscale);
-static inline double   bse_poly_eval            (unsigned int   degree,
+static inline double   bse_poly_eval            (uint           degree,
                                                  double        *a, /* [0..degree] */
                                                  double         x);
-void                   bse_poly_complex_roots   (unsigned int   poly_degree,
+void                   bse_poly_complex_roots   (uint           poly_degree,
                                                  double        *a, /* [0..degree] (degree+1 elements) */
                                                  BseComplex    *roots); /* [degree] */
-void                   bse_poly_from_re_roots   (unsigned int   poly_degree,
+void                   bse_poly_from_re_roots   (uint           poly_degree,
                                                  double        *a, /* [0..degree] */
                                                  BseComplex    *roots);
-void                   bse_cpoly_from_roots     (unsigned int   poly_degree,
+void                   bse_cpoly_from_roots     (uint           poly_degree,
                                                  BseComplex    *c, /* [0..degree] */
                                                  BseComplex    *roots);
-static inline void     bse_cpoly_mul_monomial   (unsigned int   degree, /* _new_ degree */
+static inline void     bse_cpoly_mul_monomial   (uint           degree, /* _new_ degree */
                                                  BseComplex    *c, /* in:[0..degree-1] out:[0..degree] */
                                                  BseComplex     root); /* c(x) *= (x^1 - root) */
-static inline void     bse_cpoly_mul_reciprocal (unsigned int   degree, /* _new_ degree */
+static inline void     bse_cpoly_mul_reciprocal (uint           degree, /* _new_ degree */
                                                  BseComplex    *c, /* in:[0..degree-1] out:[0..degree] */
                                                  BseComplex     root); /* c(x) *= (1 - root * x^-1) */
 static inline void     bse_cpoly_mul            (BseComplex    *p,  /* out:[0..aorder+border] */
-                                                 unsigned int   aorder,
+                                                 uint           aorder,
                                                  BseComplex    *a,  /* in:[0..aorder] */
-                                                 unsigned int   border,
+                                                 uint           border,
                                                  BseComplex    *b); /* in:[0..border] */
 gboolean               bse_poly2_droots         (gdouble        roots[2],
                                                  gdouble        a,
                                                  gdouble        b,
                                                  gdouble        c);
-char*                  bse_poly_str             (unsigned int   degree,
+char*                  bse_poly_str             (uint           degree,
                                                  double        *a,
                                                  const char    *var);
-char*                  bse_poly_str1            (unsigned int   degree,
+char*                  bse_poly_str1            (uint           degree,
                                                  double        *a,
                                                  const char    *var);
 
@@ -167,7 +167,7 @@ gint                   bse_rand_bool            (void);                   /* ran
 void                   bse_float_gnuplot        (const char    *file_name,
                                                  double         xstart,
                                                  double         xstep,
-                                                 unsigned int   n_ypoints,
+                                                 uint           n_ypoints,
                                                  const float   *ypoints);
 
 
@@ -374,37 +374,37 @@ bse_complex_tanh (BseComplex c)
                           bse_complex_cosh (c));
 }
 static inline void
-bse_poly_add (unsigned int degree,
+bse_poly_add (uint         degree,
               double      *a,
               double      *b)
 {
-  unsigned int i;
+  uint         i;
   
   for (i = 0; i <= degree; i++)
     a[i] += b[i];
 }
 static inline void
-bse_poly_sub (unsigned int degree,
+bse_poly_sub (uint         degree,
               double      *a,
               double      *b)
 {
-  unsigned int i;
+  uint         i;
   
   for (i = 0; i <= degree; i++)
     a[i] -= b[i];
 }
 static inline void
 bse_poly_mul (double        *p,  /* out:[0..aorder+border] */
-              unsigned int   aorder,
+              uint           aorder,
               const double  *a,  /* in:[0..aorder] */
-              unsigned int   border,
+              uint           border,
               const double  *b)  /* in:[0..border] */
 {
-  unsigned int i;
+  uint         i;
   
   for (i = aorder + border; i > 0; i--)
     {
-      unsigned int j;
+      uint         j;
       double t = 0;
       
       for (j = i - MIN (border, i); j <= MIN (aorder, i); j++)
@@ -414,11 +414,11 @@ bse_poly_mul (double        *p,  /* out:[0..aorder+border] */
   p[0] = a[0] * b[0];
 }
 static inline void
-bse_cpoly_mul_monomial (unsigned int degree,
+bse_cpoly_mul_monomial (uint         degree,
                         BseComplex  *c,
                         BseComplex   root)
 {
-  unsigned int j;
+  uint         j;
   
   c[degree] = c[degree - 1];
   for (j = degree - 1; j >= 1; j--)
@@ -426,11 +426,11 @@ bse_cpoly_mul_monomial (unsigned int degree,
   c[0] = bse_complex_mul (c[0], bse_complex_inv (root));
 }
 static inline void
-bse_cpoly_mul_reciprocal (unsigned int degree,
+bse_cpoly_mul_reciprocal (uint         degree,
                           BseComplex  *c,
                           BseComplex   root)
 {
-  unsigned int j;
+  uint         j;
   
   c[degree] = bse_complex_mul (c[degree - 1], bse_complex_inv (root));
   for (j = degree - 1; j >= 1; j--)
@@ -439,17 +439,17 @@ bse_cpoly_mul_reciprocal (unsigned int degree,
 }
 static inline void
 bse_cpoly_mul (BseComplex  *p,  /* [0..aorder+border] */
-               unsigned int aorder,
+               uint         aorder,
                BseComplex  *a,
-               unsigned int border,
+               uint         border,
                BseComplex  *b)
 {
-  unsigned int i;
+  uint         i;
   
   for (i = aorder + border; i > 0; i--)
     {
       BseComplex t;
-      unsigned int j;
+      uint         j;
       
       t = bse_complex (0, 0);
       for (j = i - MIN (i, border); j <= MIN (aorder, i); j++)
@@ -459,22 +459,22 @@ bse_cpoly_mul (BseComplex  *p,  /* [0..aorder+border] */
   p[0] = bse_complex_mul (a[0], b[0]);
 }
 static inline void
-bse_poly_scale (unsigned int degree,
+bse_poly_scale (uint         degree,
                 double      *a,
                 double       scale)
 {
-  unsigned int i;
+  uint         i;
   
   for (i = 0; i <= degree; i++)
     a[i] *= scale;
 }
 static inline void
-bse_poly_xscale (unsigned int degree,
+bse_poly_xscale (uint         degree,
                  double      *a,
                  double       xscale)
 {
   double scale = xscale;
-  unsigned int i;
+  uint         i;
   
   for (i = 1; i <= degree; i++)
     {
@@ -483,7 +483,7 @@ bse_poly_xscale (unsigned int degree,
     }
 }
 static inline double
-bse_poly_eval (unsigned int degree,
+bse_poly_eval (uint         degree,
                double      *a,
                double       x)
 {
diff --git a/bse/bseresampler.cc b/bse/bseresampler.cc
index 5f095e0..ff6dfa6 100644
--- a/bse/bseresampler.cc
+++ b/bse/bseresampler.cc
@@ -327,7 +327,7 @@ bse_resampler2_destroy (BseResampler2 *resampler)
 void
 bse_resampler2_process_block (BseResampler2 *resampler,
                               const float   *input,
-                              unsigned int   n_input_samples,
+                              uint           n_input_samples,
 			      float         *output)
 {
   reinterpret_cast<Bse::Resampler::Resampler2 *> (resampler)->process_block (input, n_input_samples, output);
diff --git a/bse/bseresampler.hh b/bse/bseresampler.hh
index 790078a..dd6177f 100644
--- a/bse/bseresampler.hh
+++ b/bse/bseresampler.hh
@@ -17,7 +17,7 @@
 #ifndef __BSE_RESAMPLER_HH__
 #define __BSE_RESAMPLER_HH__
 
-#include <glib.h>
+#include <bse/bsecxxutils.hh>
 
 G_BEGIN_DECLS
 
@@ -44,7 +44,7 @@ BseResampler2* bse_resampler2_create        (BseResampler2Mode      mode,
 void           bse_resampler2_destroy       (BseResampler2         *resampler);
 void	       bse_resampler2_process_block (BseResampler2         *resampler,
                                              const float           *input,
-                                             unsigned int           n_input_samples,
+                                             uint                   n_input_samples,
 					     float                 *output);
 guint	       bse_resampler2_order         (BseResampler2         *resampler);
 double	       bse_resampler2_delay         (BseResampler2         *resampler);
@@ -86,7 +86,7 @@ public:
   /**
    * resample a data block
    */
-  virtual void	      process_block (const float *input, unsigned int n_input_samples, float *output) = 0;
+  virtual void	      process_block (const float *input, uint n_input_samples, float *output) = 0;
   /**
    * return FIR filter order
    */
diff --git a/bse/bseresamplerimpl.hh b/bse/bseresamplerimpl.hh
index cffc085..d3d66a9 100644
--- a/bse/bseresamplerimpl.hh
+++ b/bse/bseresamplerimpl.hh
@@ -179,7 +179,7 @@ fir_test_filter_sse (bool        verbose,
       AlignedArray<float,16> sse_taps (fir_compute_sse_taps (taps));
       if (verbose)
 	{
-	  for (unsigned int i = 0; i < sse_taps.size(); i++)
+	  for (uint i = 0; i < sse_taps.size(); i++)
 	    {
 	      printf ("%3d", (int) (sse_taps[i] + 0.5));
 	      if (i % 4 == 3)
@@ -263,7 +263,7 @@ protected:
                          guint        n_input_samples,
 			 float       *output)
   {
-    unsigned int i = 0;
+    uint i = 0;
     if (USE_SSE)
       {
 	while (i + 3 < n_input_samples)
@@ -283,7 +283,7 @@ protected:
                            guint        n_input_samples,
 			   float       *output)
   {
-    unsigned int i = 0;
+    uint i = 0;
     if (USE_SSE)
       {
 	while ((reinterpret_cast<ptrdiff_t> (&input[i]) & 15) && i < n_input_samples)
@@ -316,7 +316,7 @@ public:
                  guint        n_input_samples,
 		 float       *output)
   {
-    const unsigned int history_todo = min (n_input_samples, ORDER - 1);
+    const uint history_todo = min (n_input_samples, ORDER - 1);
     
     copy (input, input + history_todo, &history[ORDER - 1]);
     process_block_aligned (&history[0], history_todo, output);
@@ -392,7 +392,7 @@ class Downsampler2 : public Resampler2 {
 			 float       *output,
 			 guint        n_output_samples)
   {
-    unsigned int i = 0;
+    uint i = 0;
     if (USE_SSE)
       {
 	while (i + 3 < n_output_samples)
@@ -413,7 +413,7 @@ class Downsampler2 : public Resampler2 {
 			   float       *output,
 			   guint        n_output_samples)
   {
-    unsigned int i = 0;
+    uint i = 0;
     if (USE_SSE)
       {
 	while ((reinterpret_cast<ptrdiff_t> (&input_even[i]) & 15) && i < n_output_samples)
@@ -429,7 +429,7 @@ class Downsampler2 : public Resampler2 {
                  guint        n_data_values,
 		 float       *output)
   {
-    for (unsigned int i = 0; i < n_data_values; i += 2)
+    for (uint i = 0; i < n_data_values; i += 2)
       output[i / 2] = data[i];
   }
 public:
@@ -457,14 +457,14 @@ public:
   {
     g_assert ((n_input_samples & 1) == 0);
     
-    const unsigned int BLOCKSIZE = 1024;
+    const uint BLOCKSIZE = 1024;
     
     F4Vector  block[BLOCKSIZE / 4]; /* using F4Vector ensures 16-byte alignment */
     float    *input_even = &block[0].f[0];
     
     while (n_input_samples)
       {
-	unsigned int n_input_todo = min (n_input_samples, BLOCKSIZE * 2);
+	uint n_input_todo = min (n_input_samples, BLOCKSIZE * 2);
         
         /* since the halfband filter contains zeros every other sample
 	 * and since we're using SSE instructions, which expect the
@@ -483,8 +483,8 @@ public:
         
 	const float       *input_odd = input + 1; /* we process this one with a stepping of 2 */
         
-	const unsigned int n_output_todo = n_input_todo / 2;
-	const unsigned int history_todo = min (n_output_todo, ORDER - 1);
+	const uint n_output_todo = n_input_todo / 2;
+	const uint history_todo = min (n_output_todo, ORDER - 1);
         
 	copy (input_even, input_even + history_todo, &history_even[ORDER - 1]);
 	deinterleave2 (input_odd, history_todo * 2, &history_odd[ORDER - 1]);
diff --git a/bse/gsl-fftgen.pl b/bse/gsl-fftgen.pl
index 2d79d11..46a8bd6 100755
--- a/bse/gsl-fftgen.pl
+++ b/bse/gsl-fftgen.pl
@@ -325,12 +325,12 @@ sub bitreverse_fft2 {
     # mul_result = gsl_complex (c1.re * c2.re - c1.im * c2.im, c1.re * c2.im + c1.im * c2.re);
     printf "
 static inline void
-bitreverse_fft2analysis (const unsigned int n,
+bitreverse_fft2analysis (const uint         n,
                          const %-6s        *X,
                          %-6s              *Y)
 {
-  const unsigned int n2 = n >> 1, n1 = n + n2, max = n >> 2;
-  unsigned int i, r;
+  const uint n2 = n >> 1, n1 = n + n2, max = n >> 2;
+  uint i, r;
   
   BUTTERFLY_10 (X[0], X[1],
 		X[n], X[n + 1],
@@ -344,7 +344,7 @@ bitreverse_fft2analysis (const unsigned int n,
 		__1, __0);
   for (i = 1, r = 0; i < max; i++)
     {
-      unsigned int k, j = n >> 1;
+      uint k, j = n >> 1;
 
       while (r >= j)
 	{
@@ -370,12 +370,12 @@ bitreverse_fft2analysis (const unsigned int n,
     }
 }
 static inline void
-bitreverse_fft2synthesis (const unsigned int n,
+bitreverse_fft2synthesis (const uint         n,
                           const %-6s        *X,
                           %-6s              *Y)
 {
-  const unsigned int n2 = n >> 1, n1 = n + n2, max = n >> 2;
-  unsigned int i, r;
+  const uint n2 = n >> 1, n1 = n + n2, max = n >> 2;
+  uint i, r;
   %s scale = n;
 
   scale = 1.0 / scale;
@@ -391,7 +391,7 @@ bitreverse_fft2synthesis (const unsigned int n,
 		     scale);
   for (i = 1, r = 0; i < max; i++)
     {
-      unsigned int k, j = n >> 1;
+      uint k, j = n >> 1;
 
       while (r >= j)
 	{
@@ -789,7 +789,7 @@ print " */\n";
 	   $fft_size, $negate_sign ? "synthesis" : "analysis",
 	   $skip2 ? "_skip2" : "",
 	   $ieee_type, $ieee_type);
-    printf "%sregister unsigned int butterfly, block, offset;\n", $indent;
+    printf "%sregister uint butterfly, block, offset;\n", $indent;
     printf "%sregister %s Wre, Wim;\n\n", $indent, $tmp_ieee_type, $tmp_ieee_type;
     printf "%sbutterfly = block = offset = 0, Wre = Wim = 0.0; /* silence compiler */\n", $indent;
     
diff --git a/bse/gslfft.h b/bse/gslfft.h
index f440f63..f65873e 100644
--- a/bse/gslfft.h
+++ b/bse/gslfft.h
@@ -55,7 +55,7 @@ extern "C" {
  * Note that the transformation is performed out of place, the input
  * array is not modified, and may not overlap with the output array.
  */
-void	gsl_power2_fftac (const unsigned int n_values,
+void	gsl_power2_fftac (const uint         n_values,
 			  const double      *ri_values_in,
 			  double            *ri_values_out);
 
@@ -80,7 +80,7 @@ void	gsl_power2_fftac (const unsigned int n_values,
  * Note that the transformation is performed out of place, the input
  * array is not modified, and may not overlap with the output array.
  */
-void	gsl_power2_fftsc (const unsigned int n_values,
+void	gsl_power2_fftsc (const uint         n_values,
 			  const double      *ri_values_in,
 			  double            *ri_values_out);
 
@@ -110,7 +110,7 @@ void	gsl_power2_fftsc (const unsigned int n_values,
  * Note that the transformation is performed out of place, the input
  * array is not modified, and may not overlap with the output array.
  */
-void	gsl_power2_fftar (const unsigned int n_values,
+void	gsl_power2_fftar (const uint         n_values,
 			  const double      *r_values_in,
 			  double            *ri_values_out);
 
@@ -134,16 +134,16 @@ void	gsl_power2_fftar (const unsigned int n_values,
  * Note that the transformation is performed out of place, the input
  * array is not modified, and may not overlap with the output array.
  */
-void	gsl_power2_fftsr (const unsigned int n_values,
+void	gsl_power2_fftsr (const uint         n_values,
 			  const double      *ri_values_in,
 			  double            *r_values_out);
 
 
 /* --- convenience wrappers --- */
-void	gsl_power2_fftar_simple	(const unsigned int n_values,
+void	gsl_power2_fftar_simple	(const uint         n_values,
 				 const float       *real_values,
 				 float		   *complex_values);
-void	gsl_power2_fftsr_simple	(const unsigned int n_values,
+void	gsl_power2_fftsr_simple	(const uint         n_values,
 				 const float	   *complex_values,
 				 float             *real_values);
      
diff --git a/bse/gslfilter.c b/bse/gslfilter.c
index d9c3016..272e4f6 100644
--- a/bse/gslfilter.c
+++ b/bse/gslfilter.c
@@ -36,7 +36,7 @@ gsl_db_invert (double x)
 }
 
 static void
-band_filter_common (unsigned int iorder,
+band_filter_common (uint         iorder,
 		    double       p_freq, /* 0..pi */
 		    double       s_freq, /* 0..pi */
 		    double       epsilon,
@@ -47,7 +47,7 @@ band_filter_common (unsigned int iorder,
 		    gboolean     band_pass,
 		    gboolean     t1_norm)
 {
-  unsigned int iorder2 = iorder >> 1;
+  uint iorder2 = iorder >> 1;
   BseComplex *poly = g_newa (BseComplex, iorder + 1);
   BseComplex fpoly[2 + 1] = { { 0, }, { 0, }, { 1, 0 } };
   double alpha, norm;
@@ -100,7 +100,7 @@ band_filter_common (unsigned int iorder,
 }
 
 static void
-filter_rp_to_z (unsigned int iorder,
+filter_rp_to_z (uint         iorder,
 		BseComplex  *roots, /* [0..iorder-1] */
 		BseComplex  *poles,
 		double      *a,     /* [0..iorder] */
@@ -125,7 +125,7 @@ filter_rp_to_z (unsigned int iorder,
 }
 
 static void
-filter_lp_invert (unsigned int iorder,
+filter_lp_invert (uint         iorder,
 		  double      *a,     /* [0..iorder] */
 		  double      *b)
 {
@@ -141,7 +141,7 @@ filter_lp_invert (unsigned int iorder,
 
 /* --- butterworth filter --- */
 void
-gsl_filter_butter_rp (unsigned int iorder,
+gsl_filter_butter_rp (uint         iorder,
 		      double       freq, /* 0..pi */
 		      double       epsilon,
 		      BseComplex  *roots,    /* [0..iorder-1] */
@@ -152,7 +152,7 @@ gsl_filter_butter_rp (unsigned int iorder,
   /* double kappa = bse_trans_freq2s (freq); */
   double kappa;
   BseComplex root;
-  unsigned int i;
+  uint i;
 
   epsilon = bse_trans_zepsilon2ss (epsilon);
   kappa = bse_trans_freq2s (freq) * pow (epsilon, -1.0 / order);
@@ -176,11 +176,11 @@ gsl_filter_butter_rp (unsigned int iorder,
 
 /* --- tschebyscheff type 1 filter --- */
 static double
-tschebyscheff_eval (unsigned int degree,
+tschebyscheff_eval (uint         degree,
 		    double       x)
 {
   double td = x, td_m_1 = 1;
-  unsigned int d = 1;
+  uint d = 1;
 
   /* eval polynomial for a certain x */
   if (degree == 0)
@@ -198,7 +198,7 @@ tschebyscheff_eval (unsigned int degree,
 }
 
 static double
-tschebyscheff_inverse (unsigned int degree,
+tschebyscheff_inverse (uint         degree,
 		       double       x)
 {
   /* note, that thebyscheff_eval(degree,x)=cosh(degree*acosh(x)) */
@@ -206,7 +206,7 @@ tschebyscheff_inverse (unsigned int degree,
 }
 
 void
-gsl_filter_tscheb1_rp (unsigned int iorder,
+gsl_filter_tscheb1_rp (uint         iorder,
 		       double       freq,  /* 1..pi */
 		       double       epsilon,
 		       BseComplex  *roots, /* [0..iorder-1] */
@@ -217,7 +217,7 @@ gsl_filter_tscheb1_rp (unsigned int iorder,
   double beta_mul = pi / (2.0 * order);
   double kappa = bse_trans_freq2s (freq);
   BseComplex root;
-  unsigned int i;
+  uint i;
 
   epsilon = bse_trans_zepsilon2ss (epsilon);
   alpha = asinh (1.0 / epsilon) / order;
@@ -241,7 +241,7 @@ gsl_filter_tscheb1_rp (unsigned int iorder,
 
 /* --- tschebyscheff type 2 filter --- */
 void
-gsl_filter_tscheb2_rp (unsigned int iorder,
+gsl_filter_tscheb2_rp (uint         iorder,
 		       double       c_freq, /* 1..pi */
 		       double       steepness,
 		       double       epsilon,
@@ -256,7 +256,7 @@ gsl_filter_tscheb2_rp (unsigned int iorder,
   double alpha;
   double beta_mul = pi / (2.0 * order);
   BseComplex root;
-  unsigned int i;
+  uint i;
 
 #if 0
   /* triggers an internal compiler error with gcc-2.95.4 (and certain
@@ -310,7 +310,7 @@ gsl_filter_tscheb2_rp (unsigned int iorder,
  * based on the ripple residue in the stop band.
  */
 double
-gsl_filter_tscheb2_steepness_db (unsigned int iorder,
+gsl_filter_tscheb2_steepness_db (uint         iorder,
 				 double       c_freq,
 				 double       epsilon,
 				 double       stopband_db)
@@ -328,7 +328,7 @@ gsl_filter_tscheb2_steepness_db (unsigned int iorder,
  * based on ripple residue in the stop band.
  */
 double
-gsl_filter_tscheb2_steepness (unsigned int iorder,
+gsl_filter_tscheb2_steepness (uint         iorder,
 			      double       c_freq,
 			      double       epsilon,
 			      double       residue)
@@ -355,7 +355,7 @@ gsl_filter_tscheb2_steepness (unsigned int iorder,
  * Butterworth lowpass filter.
  */
 void
-gsl_filter_butter_lp (unsigned int iorder,
+gsl_filter_butter_lp (uint         iorder,
 		      double       freq, /* 0..pi */
 		      double       epsilon,
 		      double      *a,    /* [0..iorder] */
@@ -385,7 +385,7 @@ gsl_filter_butter_lp (unsigned int iorder,
  * Tschebyscheff type 1 lowpass filter.
  */
 void
-gsl_filter_tscheb1_lp (unsigned int iorder,
+gsl_filter_tscheb1_lp (uint         iorder,
 		       double       freq, /* 0..pi */
 		       double       epsilon,
 		       double      *a,    /* [0..iorder] */
@@ -424,7 +424,7 @@ gsl_filter_tscheb1_lp (unsigned int iorder,
  * band width in fractions of octaves, pass @a steepness=2^octave_fraction.
  */
 void
-gsl_filter_tscheb2_lp (unsigned int iorder,
+gsl_filter_tscheb2_lp (uint         iorder,
 		       double       freq,   /* 0..pi */
 		       double       steepness,
 		       double       epsilon,
@@ -459,7 +459,7 @@ gsl_filter_tscheb2_lp (unsigned int iorder,
  * Butterworth highpass filter.
  */
 void
-gsl_filter_butter_hp (unsigned int iorder,
+gsl_filter_butter_hp (uint         iorder,
 		      double       freq, /* 0..pi */
 		      double       epsilon,
 		      double      *a,    /* [0..iorder] */
@@ -482,7 +482,7 @@ gsl_filter_butter_hp (unsigned int iorder,
  * Tschebyscheff type 1 highpass filter.
  */
 void
-gsl_filter_tscheb1_hp (unsigned int iorder,
+gsl_filter_tscheb1_hp (uint         iorder,
 		       double       freq, /* 0..pi */
 		       double       epsilon,
 		       double      *a,    /* [0..iorder] */
@@ -506,7 +506,7 @@ gsl_filter_tscheb1_hp (unsigned int iorder,
  * Tschebyscheff type 2 highpass filter.
  */
 void
-gsl_filter_tscheb2_hp   (unsigned int iorder,
+gsl_filter_tscheb2_hp   (uint         iorder,
 			 double       freq,
 			 double       steepness,
 			 double       epsilon,
@@ -533,14 +533,14 @@ gsl_filter_tscheb2_hp   (unsigned int iorder,
  * Butterworth bandpass filter.
  */
 void
-gsl_filter_butter_bp (unsigned int iorder,
+gsl_filter_butter_bp (uint         iorder,
 		      double       freq1, /* 0..pi */
 		      double       freq2, /* 0..pi */
 		      double       epsilon,
 		      double      *a,      /* [0..iorder] */
 		      double      *b)
 {
-  unsigned int iorder2 = iorder >> 1;
+  uint iorder2 = iorder >> 1;
   BseComplex *roots = g_newa (BseComplex, iorder2);
   BseComplex *poles = g_newa (BseComplex, iorder2);
   double theta;
@@ -567,14 +567,14 @@ gsl_filter_butter_bp (unsigned int iorder,
  * Tschebyscheff type 1 bandpass filter.
  */
 void
-gsl_filter_tscheb1_bp (unsigned int iorder,
+gsl_filter_tscheb1_bp (uint         iorder,
 		       double       freq1, /* 0..pi */
 		       double       freq2, /* 0..pi */
 		       double       epsilon,
 		       double      *a,      /* [0..iorder] */
 		       double      *b)
 {
-  unsigned int iorder2 = iorder >> 1;
+  uint iorder2 = iorder >> 1;
   BseComplex *roots = g_newa (BseComplex, iorder2);
   BseComplex *poles = g_newa (BseComplex, iorder2);
   double theta;
@@ -602,7 +602,7 @@ gsl_filter_tscheb1_bp (unsigned int iorder,
  * Tschebyscheff type 2 bandpass filter.
  */
 void
-gsl_filter_tscheb2_bp (unsigned int iorder,
+gsl_filter_tscheb2_bp (uint         iorder,
 		       double       freq1, /* 0..pi */
 		       double       freq2, /* 0..pi */
 		       double       steepness,
@@ -610,7 +610,7 @@ gsl_filter_tscheb2_bp (unsigned int iorder,
 		       double      *a,      /* [0..iorder] */
 		       double      *b)
 {
-  unsigned int iorder2 = iorder >> 1;
+  uint iorder2 = iorder >> 1;
   BseComplex *roots = g_newa (BseComplex, iorder2);
   BseComplex *poles = g_newa (BseComplex, iorder2);
   double theta;
@@ -639,14 +639,14 @@ gsl_filter_tscheb2_bp (unsigned int iorder,
  * Butterworth bandstop filter.
  */
 void
-gsl_filter_butter_bs (unsigned int iorder,
+gsl_filter_butter_bs (uint         iorder,
 		      double       freq1, /* 0..pi */
 		      double       freq2, /* 0..pi */
 		      double       epsilon,
 		      double      *a,      /* [0..iorder] */
 		      double      *b)
 {
-  unsigned int iorder2 = iorder >> 1;
+  uint iorder2 = iorder >> 1;
   BseComplex *roots = g_newa (BseComplex, iorder2);
   BseComplex *poles = g_newa (BseComplex, iorder2);
   double theta;
@@ -673,14 +673,14 @@ gsl_filter_butter_bs (unsigned int iorder,
  * Tschebyscheff type 1 bandstop filter.
  */
 void
-gsl_filter_tscheb1_bs (unsigned int iorder,
+gsl_filter_tscheb1_bs (uint         iorder,
 		       double       freq1, /* 0..pi */
 		       double       freq2, /* 0..pi */
 		       double       epsilon,
 		       double      *a,      /* [0..iorder] */
 		       double      *b)
 {
-  unsigned int iorder2 = iorder >> 1;
+  uint iorder2 = iorder >> 1;
   BseComplex *roots = g_newa (BseComplex, iorder2);
   BseComplex *poles = g_newa (BseComplex, iorder2);
   double theta;
@@ -708,7 +708,7 @@ gsl_filter_tscheb1_bs (unsigned int iorder,
  * Tschebyscheff type 2 bandstop filter.
  */
 void
-gsl_filter_tscheb2_bs (unsigned int iorder,
+gsl_filter_tscheb2_bs (uint         iorder,
 		       double       freq1, /* 0..pi */
 		       double       freq2, /* 0..pi */
 		       double       steepness,
@@ -716,7 +716,7 @@ gsl_filter_tscheb2_bs (unsigned int iorder,
 		       double      *a,      /* [0..iorder] */
 		       double      *b)
 {
-  unsigned int iorder2 = iorder >> 1;
+  uint iorder2 = iorder >> 1;
   BseComplex *roots = g_newa (BseComplex, iorder2);
   BseComplex *poles = g_newa (BseComplex, iorder2);
   double theta;
@@ -736,7 +736,7 @@ gsl_filter_tscheb2_bs (unsigned int iorder,
 /* --- tschebyscheff type 1 via generic root-finding --- */
 #if 0
 static void
-tschebyscheff_poly (unsigned int degree,
+tschebyscheff_poly (uint         degree,
 		    double      *v)
 {
   /* construct all polynomial koefficients */
@@ -762,7 +762,7 @@ tschebyscheff_poly (unsigned int degree,
 }
 
 static void
-gsl_filter_tscheb1_test	(unsigned int iorder,
+gsl_filter_tscheb1_test	(uint         iorder,
 			 double       zomega,
 			 double       epsilon,
 			 double      *a,    /* [0..iorder] */
@@ -773,7 +773,7 @@ gsl_filter_tscheb1_test	(unsigned int iorder,
   double *vk = g_newa (double, 1 + iorder), norm;
   double *q = g_newa (double, 2 * (1 + iorder));
   double O = bse_trans_freq2s (zomega);
-  unsigned int i;
+  uint i;
   
   /* calc Vk() */
   tschebyscheff_poly (iorder, vk);
@@ -863,9 +863,9 @@ gsl_blackman_window (double x)
  * @a n_points >= @a iorder.
  */
 void
-gsl_filter_fir_approx (unsigned int  iorder,
+gsl_filter_fir_approx (uint          iorder,
 		       double       *a,	/* [0..iorder] */
-		       unsigned int  n_points,
+		       uint          n_points,
 		       const double *freq,
 		       const double *value,
 		       gboolean      interpolate_db)
@@ -876,8 +876,8 @@ gsl_filter_fir_approx (unsigned int  iorder,
    *    larger fft_sizes produce better filters?
    * b) generalize windowing
    */
-  unsigned int fft_size = 8;
-  unsigned int point = 0, i;
+  uint fft_size = 8;
+  uint point = 0, i;
   double lfreq = -2, lval = 1.0, rfreq = -1, rval = 1.0;
   double *fft_in, *fft_out;
   double ffact;
diff --git a/bse/gslfilter.h b/bse/gslfilter.h
index cec73f2..294c584 100644
--- a/bse/gslfilter.h
+++ b/bse/gslfilter.h
@@ -31,17 +31,17 @@ static inline double     bse_trans_zepsilon2ss  (double         epsilon);
 
 
 /* --- filter roots and poles --- */
-void	gsl_filter_butter_rp    (unsigned int iorder,
+void	gsl_filter_butter_rp    (uint         iorder,
 				 double       freq,   /* 0..pi */
 				 double       epsilon,
 				 BseComplex  *roots,  /* [0..iorder-1] */
 				 BseComplex  *poles);
-void	gsl_filter_tscheb1_rp	(unsigned int iorder,
+void	gsl_filter_tscheb1_rp	(uint         iorder,
 				 double       freq,   /* 0..pi */
 				 double       epsilon,
 				 BseComplex  *roots,  /* [0..iorder-1] */
 				 BseComplex  *poles);
-void	gsl_filter_tscheb2_rp	(unsigned int iorder,
+void	gsl_filter_tscheb2_rp	(uint         iorder,
 				 double       c_freq, /* 0..pi */
 				 double       steepness,
 				 double       epsilon,
@@ -50,28 +50,28 @@ void	gsl_filter_tscheb2_rp	(unsigned int iorder,
 
 
 /* --- tschebyscheff type II steepness --- */
-double	gsl_filter_tscheb2_steepness_db	(unsigned int iorder,
+double	gsl_filter_tscheb2_steepness_db	(uint         iorder,
 					 double       c_freq,
 					 double       epsilon,
 					 double       stopband_db);
-double	gsl_filter_tscheb2_steepness	(unsigned int iorder,
+double	gsl_filter_tscheb2_steepness	(uint         iorder,
 					 double       c_freq,
 					 double       epsilon,
 					 double       residue);
 
 
 /* --- lowpass filters --- */
-void	gsl_filter_butter_lp    (unsigned int iorder,
+void	gsl_filter_butter_lp    (uint         iorder,
 				 double       freq, /* 0..pi */
 				 double       epsilon,
 				 double      *a,    /* [0..iorder] */
 				 double      *b);
-void	gsl_filter_tscheb1_lp	(unsigned int iorder,
+void	gsl_filter_tscheb1_lp	(uint         iorder,
 				 double       freq, /* 0..pi */
 				 double       epsilon,
 				 double      *a,    /* [0..iorder] */
 				 double      *b);
-void	gsl_filter_tscheb2_lp	(unsigned int iorder,
+void	gsl_filter_tscheb2_lp	(uint         iorder,
 				 double       c_freq, /* 0..pi */
                                  double       steepness,
 				 double       epsilon,
@@ -80,17 +80,17 @@ void	gsl_filter_tscheb2_lp	(unsigned int iorder,
 
 
 /* --- highpass filters --- */
-void	gsl_filter_butter_hp	(unsigned int iorder,
+void	gsl_filter_butter_hp	(uint         iorder,
 				 double       freq,   /* 0..pi */
 				 double       epsilon,
 				 double      *a,      /* [0..iorder] */
 				 double      *b);
-void	gsl_filter_tscheb1_hp	(unsigned int iorder,
+void	gsl_filter_tscheb1_hp	(uint         iorder,
 				 double       freq,   /* 0..pi */
 				 double       epsilon,
 				 double      *a,      /* [0..iorder] */
 				 double      *b);
-void	gsl_filter_tscheb2_hp	(unsigned int iorder,
+void	gsl_filter_tscheb2_hp	(uint         iorder,
 				 double       c_freq, /* 0..pi */
 				 double       steepness,
 				 double       epsilon,
@@ -99,19 +99,19 @@ void	gsl_filter_tscheb2_hp	(unsigned int iorder,
 
 
 /* --- bandpass filters --- */
-void	gsl_filter_butter_bp	(unsigned int iorder,
+void	gsl_filter_butter_bp	(uint         iorder,
 				 double       freq1,  /* 0..pi */
 				 double       freq2,  /* 0..pi */
 				 double       epsilon,
 				 double      *a,      /* [0..iorder] */
 				 double      *b);
-void	gsl_filter_tscheb1_bp	(unsigned int iorder,
+void	gsl_filter_tscheb1_bp	(uint         iorder,
 				 double       freq1,  /* 0..pi */
 				 double       freq2,  /* 0..pi */
 				 double       epsilon,
 				 double      *a,      /* [0..iorder] */
 				 double      *b);
-void	gsl_filter_tscheb2_bp	(unsigned int iorder,
+void	gsl_filter_tscheb2_bp	(uint         iorder,
 				 double       freq1,  /* 0..pi */
 				 double       freq2,  /* 0..pi */
 				 double       steepness,
@@ -121,19 +121,19 @@ void	gsl_filter_tscheb2_bp	(unsigned int iorder,
 
 
 /* --- bandstop filters --- */
-void	gsl_filter_butter_bs	(unsigned int iorder,
+void	gsl_filter_butter_bs	(uint         iorder,
 				 double       freq1,  /* 0..pi */
 				 double       freq2,  /* 0..pi */
 				 double       epsilon,
 				 double      *a,      /* [0..iorder] */
 				 double      *b);
-void	gsl_filter_tscheb1_bs	(unsigned int iorder,
+void	gsl_filter_tscheb1_bs	(uint         iorder,
 				 double       freq1,  /* 0..pi */
 				 double       freq2,  /* 0..pi */
 				 double       epsilon,
 				 double      *a,      /* [0..iorder] */
 				 double      *b);
-void	gsl_filter_tscheb2_bs	(unsigned int iorder,
+void	gsl_filter_tscheb2_bs	(uint         iorder,
 				 double       freq1,  /* 0..pi */
 				 double       freq2,  /* 0..pi */
 				 double       steepness,
@@ -143,9 +143,9 @@ void	gsl_filter_tscheb2_bs	(unsigned int iorder,
 
 
 /* --- FIR Filters --- */
-void	gsl_filter_fir_approx	(unsigned int  iorder,
+void	gsl_filter_fir_approx	(uint          iorder,
 				 double       *a,	/* [0..iorder] */
-				 unsigned int  n_points,
+				 uint          n_points,
 				 const double *freq,
 				 const double *value,
 				 gboolean      interpolate_db);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]