]> rtime.felk.cvut.cz Git - ulut.git/commitdiff
Data queue FIFO included in uLUt.
authorppisa <ppisa>
Sun, 17 May 2009 09:33:49 +0000 (09:33 +0000)
committerppisa <ppisa>
Sun, 17 May 2009 09:33:49 +0000 (09:33 +0000)
The FIFO support functions and type for custom element
can be declared by UL_DQFIFO_CUST_DEC. The static
instances can be declared by UL_DQFIFO_STATIC_INSTANCE.
The FIFO size has to be power of two, because sequential
numbers are masked when index into buffer is computed.

Queue allows to iterate over last N elements in addition
to usual put and get operations which is significant
for FIR filters implementation.

ulut/Makefile.omk

index 6ac157eedae7ca39f382b76aeee14f428102ba80..6b97220d00a062b62b3031b83b8607997e3bb33a 100644 (file)
@@ -11,7 +11,7 @@ include_HEADERS  = ul_dbuff.h ul_evcbase.h ul_gavl.h ul_gavlcust.h \
               ul_hptree.h ul_htimdefs.h ul_htimer.h ul_itbase.h \
               ul_list.h ul_listbase.h ul_utdefs.h ul_utmalloc.h \
               ul_uniqid.h ul_dbufflog.h ul_log.h ul_logbase.h \
-              ul_logreg.h ul_cbuff.h
+              ul_logreg.h ul_cbuff.h ul_dqfifo.h
 
 lib_LIBRARIES = ulut