More on refactor
This commit is contained in:
parent
1a0b36e390
commit
08a550f47a
2 changed files with 39 additions and 39 deletions
|
@ -6,15 +6,6 @@
|
|||
#include <limits.h>
|
||||
#include <iostream>
|
||||
|
||||
typedef union {
|
||||
struct
|
||||
{
|
||||
Int value : 31;
|
||||
Int signal : 1;
|
||||
} int_with_msb;
|
||||
Int signed_int;
|
||||
} SignedInt;
|
||||
|
||||
/**
|
||||
* This will get the most significant bit of the Int value. If the most significant bit is 1 then the number is
|
||||
* 0x11111111 --> equals to -1 integer
|
||||
|
|
|
@ -9,6 +9,15 @@
|
|||
typedef char Char;
|
||||
typedef short Short;
|
||||
|
||||
typedef union {
|
||||
struct
|
||||
{
|
||||
Int value : 31;
|
||||
Int signal : 1;
|
||||
} int_with_msb;
|
||||
Int signed_int;
|
||||
} SignedInt;
|
||||
|
||||
//IEEE floating point alias
|
||||
typedef float Float;
|
||||
typedef double Double;
|
||||
|
|
Loading…
Reference in a new issue