NCEPLIBS-g2  3.5.0
mova2i.c File Reference

Move bits from a char*1 to an int. More...

Go to the source code of this file.

Functions

int g2_mova2i8_ (unsigned char *a)
 Derefrence char pointer and cast result as 64-bit int. More...
 
int g2_mova2i_ (unsigned char *a)
 Derefrence char pointer and cast result as 32-bit int. More...
 

Detailed Description

Move bits from a char*1 to an int.

Author
Stephen Gilbert
Date
2002-08-15

Definition in file mova2i.c.

Function Documentation

◆ g2_mova2i8_()

int g2_mova2i8_ ( unsigned char *  a)

Derefrence char pointer and cast result as 64-bit int.

See mova2i_() for details.

Parameters
aPointer to char.
Returns
64-bit integer containing value of the bits.
Author
Ed Hartnett
Date
Feb 7, 2024

Definition at line 38 of file mova2i.c.

◆ g2_mova2i_()

int g2_mova2i_ ( unsigned char *  a)

Derefrence char pointer and cast result as 32-bit int.

This function is intended to replace the Fortran Intrinsic Function ICHAR, which only supports 0 <= ICHAR(a) <= 127 on the IBM SP. If "a" is greater than 127 in the collating sequence, ICHAR(a) does not return the expected bit value. This function can be used for all values 0 <= ICHAR(a) <= 255.

Parameters
aPointer to char.
Returns
32-bit integer containing the value of the bits.
Author
Stephen Gilbert
Date
2002-08-15

Definition at line 22 of file mova2i.c.