Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
89aa8fc2
Commit
89aa8fc2
authored
May 05, 2018
by
Pranay Gupta
Browse files
support for double precision added, errmsg on wild precision values
parent
aa659330
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/m_pd.h
View file @
89aa8fc2
...
...
@@ -89,9 +89,19 @@ typedef unsigned __int64 uint64_t;
#if !defined(PD_LONGINTTYPE)
#define PD_LONGINTTYPE long
#endif
#if !defined(PD_FLOATTYPE)
#if !defined(PD_FLOAT_PRECISION)
#define PD_FLOAT_PRECISION 32
/* 32 for single precision or 64 for double precision */
#endif
#if PD_FLOAT_PRECISION == 32
#define PD_FLOATTYPE float
#elif PD_FLOAT_PRECISION == 64
#define PD_FLOATTYPE double
#else
#error invalid PD_FLOATPRECISION: must be 32 or 64
#endif
typedef
PD_LONGINTTYPE
t_int
;
/* pointer-size integer */
typedef
PD_FLOATTYPE
t_float
;
/* a float type at most the same size */
typedef
PD_FLOATTYPE
t_floatarg
;
/* float type for function calls */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment