Subversion Repositories HelenOS-historic

Rev

Rev 647 | Rev 661 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 647 Rev 652
Line 30... Line 30...
30
#define __SFTYPES_H__
30
#define __SFTYPES_H__
31
 
31
 
32
 
32
 
33
typedef union {
33
typedef union {
34
    float f;
34
    float f;
-
 
35
    __u32 binary;
-
 
36
 
35
    struct  {
37
    struct  {
36
        #ifdef __BIG_ENDIAN__
38
        #ifdef __BIG_ENDIAN__
37
        __u32 sign:1;
39
        __u32 sign:1;
38
        __u32 exp:8;
40
        __u32 exp:8;
39
        __u32 mantisa:23;
41
        __u32 mantisa:23;
Line 47... Line 49...
47
        } parts __attribute__ ((packed));
49
        } parts __attribute__ ((packed));
48
    } float32;
50
    } float32;
49
   
51
   
50
typedef union {
52
typedef union {
51
    double d;
53
    double d;
-
 
54
    __u64 binary;
-
 
55
   
52
    struct  {
56
    struct  {
53
        #ifdef __BIG_ENDIAN__
57
        #ifdef __BIG_ENDIAN__
54
        __u64 sign:1;
58
        __u64 sign:1;
55
        __u64 exp:11;
59
        __u64 exp:11;
56
        __u64 mantisa:52;
60
        __u64 mantisa:52;