More on refactor

This commit is contained in:
Vitor Fernandes 2020-07-16 01:31:28 +01:00
parent 1a0b36e390
commit 08a550f47a
No known key found for this signature in database
GPG key ID: EBFB4EE09F348A26
2 changed files with 39 additions and 39 deletions

View file

@ -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

View file

@ -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;