Paul Batchelorimporta901d566 years agoHistory
34 lines · 844 B · C
RawDownload
#ifndef SAMPDIR#define SAMPDIR "../examples/"#endif enum {NORMAL,HEADER};typedef struct {    SPFLOAT *buf;    uint32_t size;    uint32_t pos;    md5_state_t state;    md5_byte_t digest[16];    char md5string[33];    char *md5;    int mode;    struct sp_test_entry *cur_entry;} sp_test; typedef struct sp_test_entry {    int (* func)(sp_test *, sp_data *, const char*);    const char *desc;    const char *hash;} sp_test_entry; int sp_test_create(sp_test **t, uint32_t bufsize);int sp_test_destroy(sp_test **t);int sp_test_add_sample(sp_test *t, SPFLOAT sample);/* Compares buffer with reference hash */int sp_test_compare(sp_test *t, const char *md5hash);/* verify wraps compare and error message up together */int sp_test_verify(sp_test *t, const char *refhash);int sp_test_write_raw(sp_test *t, uint32_t index);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t