Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
2f505029
Commit
2f505029
authored
Jul 01, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
floating point defines moved to asn_system.h from REAL.c
parent
a57953d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
skeletons/REAL.c
skeletons/REAL.c
+1
-9
skeletons/asn_system.h
skeletons/asn_system.h
+5
-0
No files found.
skeletons/REAL.c
View file @
2f505029
...
...
@@ -13,14 +13,6 @@
#include <errno.h>
#include <REAL.h>
#ifdef WIN32
#include <float.h>
#define copysign _copysign
#define isnan _isnan
#define finite _finite
#define ilogb _logb
#endif
#undef INT_MAX
#define INT_MAX ((int)(((unsigned int)-1) >> 1))
...
...
@@ -528,7 +520,7 @@ asn_double2REAL(REAL_t *st, double dbl_value) {
/*
* ilogb(+-0) returns -INT_MAX or INT_MIN (platform-dependent)
* ilogb(+-inf) returns INT_MAX
* ilogb(+-inf) returns INT_MAX
, logb(+-inf) returns +inf
* ilogb(NaN) returns INT_MIN or INT_MAX (platform-dependent)
*/
expval
=
ilogb
(
dbl_value
);
...
...
skeletons/asn_system.h
View file @
2f505029
...
...
@@ -35,6 +35,11 @@ typedef unsigned short uint16_t;
typedef
unsigned
int
uint32_t
;
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <float.h>
#define isnan _isnan
#define finite _finite
#define copysign _copysign
#define ilogb _logb
#endif
/* _MSC_VER */
#else
/* !WIN32 */
...
...
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