forked from kmowery/libfixedtimefixedpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.h
30 lines (22 loc) · 723 Bytes
/
debug.h
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
#ifndef debug_h
#define debug_h
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "ftfp.h"
#include "internal.h"
#ifdef DEBUG
void d(char* msg, fixed f);
void d64(char* msg, uint64_t f);
void fix_sprint_noflag(char* buffer, fixed f);
void internald64(char* msg, fix_internal f);
//void fix_internal_print_noflag(char* buffer, fix_internal f);
void allfracd64(char* msg, fix_internal f);
void fix_float_print_noflag(char* buffer, fix_internal f, uint16_t frac_bits);
void floatd64(char* msg, uint64_t f, uint16_t frac_bits);
/* Note that this is not constant time, but will return a buffer sized to the
* number. */
void fix_sprint_variable(char* buffer, fixed f);
#endif
#endif