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
fdb1fcc6
Commit
fdb1fcc6
authored
May 11, 2018
by
Jonathan Wilkes
Browse files
Merge branch 'pranay_36/purr-data-pd-l2ork_double'
parents
dda513d3
84875d47
Pipeline
#1303
canceled with stage
in 3 minutes and 22 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
pd/src/m_pd.h
View file @
fdb1fcc6
...
...
@@ -90,13 +90,13 @@ typedef unsigned __int64 uint64_t;
#define PD_LONGINTTYPE long
#endif
#if !defined(PD_FLOAT
_PRECISION
)
#define PD_FLOAT
_PRECISION
32
/* 32 for single precision or 64 for double precision */
#if !defined(PD_FLOAT
SIZE
)
#define PD_FLOAT
SIZE
32
/* 32 for single precision or 64 for double precision */
#endif
#if PD_FLOAT
_PRECISION
== 32
#if PD_FLOAT
SIZE
== 32
#define PD_FLOATTYPE float
#elif PD_FLOAT
_PRECISION
== 64
#elif PD_FLOAT
SIZE
== 64
#define PD_FLOATTYPE double
#else
#error invalid PD_FLOATPRECISION: must be 32 or 64
...
...
@@ -767,7 +767,7 @@ defined, there is a "te_xpix" field in objects, not a "te_xpos" as before: */
#if defined(__i386__) || defined(__x86_64__) // Type punning code:
#if PD_FLOAT
_PRECISION
== 32
#if PD_FLOAT
SIZE
== 32
typedef
union
{
...
...
@@ -790,7 +790,7 @@ static inline int PD_BIGORSMALL(t_float f) // > abs(2^64) or < abs(2^-64)
return
((
pun
.
ui
&
0x20000000
)
==
((
pun
.
ui
>>
1
)
&
0x20000000
));
}
#elif PD_FLOAT
_PRECISION
== 64
#elif PD_FLOAT
SIZE
== 64
typedef
union
{
...
...
@@ -813,7 +813,7 @@ static inline int PD_BIGORSMALL(t_float f) // > abs(2^512) or < abs(2^-512)
return
((
pun
.
ui
[
1
]
&
0x20000000
)
==
((
pun
.
ui
[
1
]
>>
1
)
&
0x20000000
));
}
#endif // endif PD_FLOAT
_PRECISION
#endif // endif PD_FLOAT
SIZE
#else // if not defined(__i386__) || defined(__x86_64__)
#define PD_BADFLOAT(f) 0
#define PD_BIGORSMALL(f) 0
...
...
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