This module defines bit-wise operations.
logical NOT operation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Bit_), | intent(in) | :: | obj |
Bit reverse
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Bit_), | intent(in) | :: | obj |
assignment
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Bit_), | intent(inout) | :: | x | |||
| integer(kind=int32), | intent(in) | :: | y |
This is a derived type for a bit array.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | public, | allocatable | :: | bitArray(:) |
| procedure, public :: init => initBit | ../../../ It is a constructor of a bit array |
| procedure, public :: int => intBit | ../../../ It converts bit array into a int value. |
| procedure, public :: not => notBit | ../../../ It converts NOT operation for all bits in a bit array. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Bit_), | intent(inout) | :: | obj |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Bit_), | intent(inout) | :: | obj | |||
| integer(kind=int32), | intent(in) | :: | n |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Bit_), | intent(inout) | :: | obj |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Bit_), | intent(inout) | :: | x | |||
| integer(kind=int32), | intent(in) | :: | y |