Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Prateek Mishra
purr-data
Commits
89aa8fc2
Commit
89aa8fc2
authored
6 years ago
by
Pranay Gupta
Browse files
Options
Downloads
Patches
Plain Diff
support for double precision added, errmsg on wild precision values
parent
aa659330
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/m_pd.h
+11
-1
11 additions, 1 deletion
pd/src/m_pd.h
with
11 additions
and
1 deletion
pd/src/m_pd.h
+
11
−
1
View file @
89aa8fc2
...
@@ -89,9 +89,19 @@ typedef unsigned __int64 uint64_t;
...
@@ -89,9 +89,19 @@ typedef unsigned __int64 uint64_t;
#if !defined(PD_LONGINTTYPE)
#if !defined(PD_LONGINTTYPE)
#define PD_LONGINTTYPE long
#define PD_LONGINTTYPE long
#endif
#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
#define PD_FLOATTYPE float
#elif PD_FLOAT_PRECISION == 64
#define PD_FLOATTYPE double
#else
#error invalid PD_FLOATPRECISION: must be 32 or 64
#endif
#endif
typedef
PD_LONGINTTYPE
t_int
;
/* pointer-size integer */
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_float
;
/* a float type at most the same size */
typedef
PD_FLOATTYPE
t_floatarg
;
/* float type for function calls */
typedef
PD_FLOATTYPE
t_floatarg
;
/* float type for function calls */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment