summaryrefslogtreecommitdiff
path: root/lib/queue.h
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-11-02 11:02:07 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-11-02 11:02:07 -0400
commit30534606d5690e176d168f640f55162fa15f0a19 (patch)
tree30a982262f062bd92a467b2b21b2142dbd90df97 /lib/queue.h
parenta0db32c0ad05fbe2753d44b1e82f608d99bd9742 (diff)
downloadc++-30534606d5690e176d168f640f55162fa15f0a19.tar.gz
c++-30534606d5690e176d168f640f55162fa15f0a19.tar.bz2
c++-30534606d5690e176d168f640f55162fa15f0a19.zip
major changes (again) to the measurement of autocorrelation
Diffstat (limited to 'lib/queue.h')
-rw-r--r--lib/queue.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/queue.h b/lib/queue.h
index c7acec1..23834ba 100644
--- a/lib/queue.h
+++ b/lib/queue.h
@@ -11,8 +11,15 @@ typedef struct ll_tag {
struct ll_tag *next;
} ll_t;
+typedef struct dll_tag {
+ double x;
+ struct dll_tag *next;
+} dll_t;
+
void stack_push(ll_t **q, uint32_t x);
+void stack_push_d(dll_t **q, double x);
uint32_t stack_pop(ll_t **q);
+double stack_pop_d(dll_t **q);
bool stack_contains(const ll_t *q, uint32_t x);