GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rnlms/CircularBuffer.h at master · lexa/rnlms

Expand file tree

/

CircularBuffer.h

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
43 lines (32 loc) · 975 Bytes
/

CircularBuffer.h

Copy path

File metadata and controls

43 lines (32 loc) · 975 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* CircularBuffer.h
*
* Created on: 02.05.2011
* Author: lexa
*/
#ifndef CIRCULARBUFFER_H_
#define CIRCULARBUFFER_H_
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "global.h"
/*тк ccs v3.3 не умеет flexible arrays, то пришлось делать костыли*/
/*#define FLEXIBLE_ARRAY_SIZE 1000*/
typedef struct {
size_t len;
size_t begin;/*begin of ring*/
NUM *data;
} CB;
size_t CB_size(size_t len);
CB* CB_init(void* mem, size_t len);
NUM convolution_CB_and_vector(const CB * const buf, const NUM * const vec);
NUM convolution_CB_and_CB(const CB * const buf0, const CB * const buf1);
void CB_push_elem(CB * const buf, NUM elem);
NUM CB_get_elem(const CB * const buf, size_t pos);
NUM CB_get_first_elem(const CB * const buf);
//NUM CB_mediana(const CB *buf);
//ugly function
void CB_multiple_and_add(const CB *cb, NUM mul, NUM **arr);
#endif /* CIRCULARBUFFER_H_ */
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.