projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finish float
[babeltrace.git]
/
include
/
babeltrace
/
types.h
diff --git
a/include/babeltrace/types.h
b/include/babeltrace/types.h
index 862624084371ecfcf1d1692f7fe10762136ed5b5..3c66563f075822da814e5359ae1687c77981f608 100644
(file)
--- a/
include/babeltrace/types.h
+++ b/
include/babeltrace/types.h
@@
-111,6
+111,7
@@
struct type_class_bitfield {
struct type_class_float {
struct type_class p;
struct type_class_float {
struct type_class p;
+ struct bitfield_class *sign;
struct bitfield_class *mantissa;
struct bitfield_class *exp;
int byte_order;
struct bitfield_class *mantissa;
struct bitfield_class *exp;
int byte_order;
@@
-142,17
+143,21
@@
int ctf_register_type(struct type_class *type_class);
/* Nameless types can be created by passing a NULL name */
struct type_class_integer *integer_type_new(const char *name,
/* Nameless types can be created by passing a NULL name */
struct type_class_integer *integer_type_new(const char *name,
- size_t start_offset,
size_t len, int byte_order,
size_t len, int byte_order,
- int signedness);
+ int signedness,
+ size_t alignment);
void integer_type_free(struct type_class_integer *int_class);
struct type_class_bitfield *bitfield_type_new(const char *name,
void integer_type_free(struct type_class_integer *int_class);
struct type_class_bitfield *bitfield_type_new(const char *name,
- size_t start_offset,
size_t len, int byte_order,
size_t len, int byte_order,
- int signedness);
+ int signedness,
+ size_t alignment);
void bitfield_type_free(struct type_class_bitfield *bitfield_class);
void bitfield_type_free(struct type_class_bitfield *bitfield_class);
+/*
+ * mantissa_len is the length of the number of bytes represented by the mantissa
+ * (e.g. result of DBL_MANT_DIG). It includes the leading 1.
+ */
struct type_class_float *float_type_new(const char *name,
size_t mantissa_len,
size_t exp_len, int byte_order,
struct type_class_float *float_type_new(const char *name,
size_t mantissa_len,
size_t exp_len, int byte_order,
@@
-175,7
+180,6
@@
void enum_unsigned_insert(struct type_class_enum *enum_class,
uint64_t v, GQuark q);
struct type_class_enum *enum_type_new(const char *name,
uint64_t v, GQuark q);
struct type_class_enum *enum_type_new(const char *name,
- size_t start_offset,
size_t len, int byte_order,
int signedness,
size_t alignment);
size_t len, int byte_order,
int signedness,
size_t alignment);
This page took
0.023193 seconds
and
4
git commands to generate.