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
50b0f6cc
Commit
50b0f6cc
authored
Oct 16, 2006
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc-izm removed
parent
4a4543ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
skeletons/OBJECT_IDENTIFIER.c
skeletons/OBJECT_IDENTIFIER.c
+1
-1
skeletons/REAL.c
skeletons/REAL.c
+3
-3
skeletons/asn_system.h
skeletons/asn_system.h
+6
-0
No files found.
skeletons/OBJECT_IDENTIFIER.c
View file @
50b0f6cc
...
@@ -65,7 +65,7 @@ OBJECT_IDENTIFIER_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -65,7 +65,7 @@ OBJECT_IDENTIFIER_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
int
int
OBJECT_IDENTIFIER_get_single_arc
(
uint8_t
*
arcbuf
,
unsigned
int
arclen
,
signed
int
add
,
void
*
rvbufp
,
unsigned
int
rvsize
)
{
OBJECT_IDENTIFIER_get_single_arc
(
uint8_t
*
arcbuf
,
unsigned
int
arclen
,
signed
int
add
,
void
*
rvbufp
,
unsigned
int
rvsize
)
{
unsigned
LE
__attribute__
((
unused
))
=
1
;
/* Little endian (x86) */
unsigned
LE
GCC_NOTUSED
=
1
;
/* Little endian (x86) */
uint8_t
*
arcend
=
arcbuf
+
arclen
;
/* End of arc */
uint8_t
*
arcend
=
arcbuf
+
arclen
;
/* End of arc */
unsigned
int
cache
=
0
;
/* No more than 14 significant bits */
unsigned
int
cache
=
0
;
/* No more than 14 significant bits */
unsigned
char
*
rvbuf
=
(
unsigned
char
*
)
rvbufp
;
unsigned
char
*
rvbuf
=
(
unsigned
char
*
)
rvbufp
;
...
...
skeletons/REAL.c
View file @
50b0f6cc
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#define INT_MAX ((int)(((unsigned int)-1) >> 1))
#define INT_MAX ((int)(((unsigned int)-1) >> 1))
#if !(defined(NAN) || defined(INFINITY))
#if !(defined(NAN) || defined(INFINITY))
static
volatile
double
real_zero
__attribute__
((
unused
))
=
0
.
0
;
static
volatile
double
real_zero
GCC_NOTUSED
=
0
.
0
;
#endif
#endif
#ifndef NAN
#ifndef NAN
#define NAN (real_zero/real_zero)
#define NAN (real_zero/real_zero)
...
@@ -521,8 +521,8 @@ asn_double2REAL(REAL_t *st, double dbl_value) {
...
@@ -521,8 +521,8 @@ asn_double2REAL(REAL_t *st, double dbl_value) {
uint8_t
buf
[
16
];
/* More than enough for 8-byte dbl_value */
uint8_t
buf
[
16
];
/* More than enough for 8-byte dbl_value */
uint8_t
dscr
[
sizeof
(
dbl_value
)];
/* double value scratch pad */
uint8_t
dscr
[
sizeof
(
dbl_value
)];
/* double value scratch pad */
/* Assertion guards: won't even compile, if unexpected double size */
/* Assertion guards: won't even compile, if unexpected double size */
char
assertion_buffer1
[
9
-
sizeof
(
dbl_value
)]
__attribute__
((
unused
))
;
char
assertion_buffer1
[
9
-
sizeof
(
dbl_value
)]
GCC_NOTUSED
;
char
assertion_buffer2
[
sizeof
(
dbl_value
)
-
7
]
__attribute__
((
unused
))
;
char
assertion_buffer2
[
sizeof
(
dbl_value
)
-
7
]
GCC_NOTUSED
;
uint8_t
*
ptr
=
buf
;
uint8_t
*
ptr
=
buf
;
uint8_t
*
mstop
;
/* Last byte of mantissa */
uint8_t
*
mstop
;
/* Last byte of mantissa */
unsigned
int
mval
;
/* Value of the last byte of mantissa */
unsigned
int
mval
;
/* Value of the last byte of mantissa */
...
...
skeletons/asn_system.h
View file @
50b0f6cc
...
@@ -82,10 +82,16 @@ typedef unsigned int uint32_t;
...
@@ -82,10 +82,16 @@ typedef unsigned int uint32_t;
#ifndef GCC_PRINTFLIKE
#ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#endif
#endif
#ifndef GCC_NOTUSED
#define GCC_NOTUSED __attribute__((unused))
#endif
#else
#else
#ifndef GCC_PRINTFLIKE
#ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var)
/* nothing */
#define GCC_PRINTFLIKE(fmt,var)
/* nothing */
#endif
#endif
#ifndef GCC_NOTUSED
#define GCC_NOTUSED
#endif
#endif
#endif
#ifndef offsetof
/* If not defined by <stddef.h> */
#ifndef offsetof
/* If not defined by <stddef.h> */
...
...
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