~mattmik/mixxx/mic_modifications

« back to all changes in this revision

Viewing changes to mixxx/lib/xwax/lut.h

  • Committer: Matt Mikolay
  • Date: 2012-10-22 14:10:21 UTC
  • mfrom: (3255.1.46 mixxx-trunk)
  • Revision ID: mikolaym@yahoo.com-20121022141021-9hxxx5o4amaqqw80
MergingĀ fromĀ lp:mixxx

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2009 Mark Hills <mark@pogo.org.uk>
 
2
 * Copyright (C) 2012 Mark Hills <mark@pogo.org.uk>
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or
5
5
 * modify it under the terms of the GNU General Public License
22
22
 
23
23
typedef unsigned int slot_no_t;
24
24
 
25
 
struct slot_t {
 
25
struct slot {
26
26
    unsigned int timecode;
27
27
    slot_no_t next; /* next slot with the same hash */
28
28
};
29
29
 
30
 
struct lut_t {
31
 
    struct slot_t *slot;
 
30
struct lut {
 
31
    struct slot *slot;
32
32
    slot_no_t *table, /* hash -> slot lookup */
33
33
        avail; /* next available slot */
34
34
};
35
35
 
36
 
int lut_init(struct lut_t *lut, int nslots);
37
 
void lut_clear(struct lut_t *lut);
 
36
int lut_init(struct lut *lut, int nslots);
 
37
void lut_clear(struct lut *lut);
38
38
 
39
 
void lut_push(struct lut_t *lut, unsigned int timecode);
40
 
unsigned int lut_lookup(struct lut_t *lut, unsigned int timecode);
 
39
void lut_push(struct lut *lut, unsigned int timecode);
 
40
unsigned int lut_lookup(struct lut *lut, unsigned int timecode);
41
41
 
42
42
#endif