*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/bit_size (3)              
Title
Content
Arch
Section
 

Contents


BIT_SIZE(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     BIT_SIZE -	Returns	the number of bits in an integer in the	bit
     manipulation model

SYNOPSIS    [Toc]    [Back]

     BIT_SIZE ([I=]i)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The BIT_SIZE intrinsic function returns the number	of bits	s as
     defined by	the bit	model.	The bit	model is described in the
     MODELS(3I)	man page.  This	intrinsic function accepts the following
     argument:

     i	  Must be of type integer

     BIT_SIZE is an inquiry function.  The name	of this	intrinsic cannot be
     passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	is a scalar integer with the same kind type parameter as i.

     The result	has the	value of the number of bits s in the model integer
     defined in	the DESCRIPTION	section	of this	man page.

EXAMPLES    [Toc]    [Back]

     The following code	fragment is run	on several systems:

	  INTEGER(KIND=1) I1
	  INTEGER(KIND=2) I2
	  INTEGER(KIND=4) I4
	  INTEGER(KIND=8) I8
	  INTEGER ID
	  PRINT	*,'BIT_SIZE I1=',BIT_SIZE(I1)
	  PRINT	*,'BIT_SIZE I2=',BIT_SIZE(I2)
	  PRINT	*,'BIT_SIZE I4=',BIT_SIZE(I4)
	  PRINT	*,'BIT_SIZE I8=',BIT_SIZE(I8)
	  PRINT	*,'BIT_SIZE ID=',BIT_SIZE(ID)
	  END

     On	IRIX systems the output	is as follows:

	  BIT_SIZE I1= 8
	  BIT_SIZE I2= 16
	  BIT_SIZE I4= 32
	  BIT_SIZE I8= 64
	  BIT_SIZE ID= 32

     On	UNICOS systems,	excluding CRAY T90 systems that	support	IEEE
     floating-point arithmetic,	the output is as follows:

	  BIT_SIZE I1= 8
	  BIT_SIZE I2= 16
	  BIT_SIZE I4= 32
	  BIT_SIZE I8= 64
	  BIT_SIZE ID= 64

     On	UNICOS/mk systems, the output is as follows:

	  BIT_SIZE I1= 8
	  BIT_SIZE I2= 16
	  BIT_SIZE I4= 32
	  BIT_SIZE I8= 64
	  BIT_SIZE ID= 64

     On	CRAY T90 systems that support IEEE floating-point arithmetic, the
     output is as follows:

	  BIT_SIZE I1= 8
	  BIT_SIZE I2= 16
	  BIT_SIZE I4= 32
	  BIT_SIZE I8= 64
	  BIT_SIZE ID= 64

SEE ALSO    [Toc]    [Back]

      
      
     MODELS(3I)

     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

BIT_SIZE(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     BIT_SIZE -	Returns	the number of bits in an integer in the	bit
     manipulation model

SYNOPSIS    [Toc]    [Back]

     BIT_SIZE ([I=]i)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The BIT_SIZE intrinsic function returns the number	of bits	s as
     defined by	the bit	model.	The bit	model is described in the
     MODELS(3I)	man page.  This	intrinsic function accepts the following
     argument:

     i	  Must be of type integer

     BIT_SIZE is an inquiry function.  The name	of this	intrinsic cannot be
     passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	is a scalar integer with the same kind type parameter as i.

     The result	has the	value of the number of bits s in the model integer
     defined in	the DESCRIPTION	section	of this	man page.

EXAMPLES    [Toc]    [Back]

     The following code	fragment is run	on several systems:

	  INTEGER(KIND=1) I1
	  INTEGER(KIND=2) I2
	  INTEGER(KIND=4) I4
	  INTEGER(KIND=8) I8
	  INTEGER ID
	  PRINT	*,'BIT_SIZE I1=',BIT_SIZE(I1)
	  PRINT	*,'BIT_SIZE I2=',BIT_SIZE(I2)
	  PRINT	*,'BIT_SIZE I4=',BIT_SIZE(I4)
	  PRINT	*,'BIT_SIZE I8=',BIT_SIZE(I8)
	  PRINT	*,'BIT_SIZE ID=',BIT_SIZE(ID)
	  END

     On	IRIX systems the output	is as follows:

	  BIT_SIZE I1= 8
	  BIT_SIZE I2= 16
	  BIT_SIZE I4= 32
	  BIT_SIZE I8= 64
	  BIT_SIZE ID= 32

     On	UNICOS systems,	excluding CRAY T90 systems that	support	IEEE
     floating-point arithmetic,	the output is as follows:

	  BIT_SIZE I1= 8
	  BIT_SIZE I2= 16
	  BIT_SIZE I4= 32
	  BIT_SIZE I8= 64
	  BIT_SIZE ID= 64

     On	UNICOS/mk systems, the output is as follows:

	  BIT_SIZE I1= 8
	  BIT_SIZE I2= 16
	  BIT_SIZE I4= 32
	  BIT_SIZE I8= 64
	  BIT_SIZE ID= 64

     On	CRAY T90 systems that support IEEE floating-point arithmetic, the
     output is as follows:

	  BIT_SIZE I1= 8
	  BIT_SIZE I2= 16
	  BIT_SIZE I4= 32
	  BIT_SIZE I8= 64
	  BIT_SIZE ID= 64

SEE ALSO    [Toc]    [Back]

      
      
     MODELS(3I)

     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

[ Back ]
 Similar pages
Name OS Title
huge IRIX Returns the largest number in the integer or real numeric model
range IRIX Returns the decimal exponent range of a number according to the real or integer model
precision IRIX Returns the decimal precision of a number in the real number model
epsilon IRIX Returns a positive number near 1 in the numeric model
radix IRIX Returns the base number from the real or integer number models
ipxfwstopsig IRIX Returns part of the lower bits of signal number that terminates child process
minexponent IRIX Returns the minimum (most negative) exponent of a real number in the numeric model
exponent IRIX Returns the exponent part of the argument when represented as a numeric model number
maplun IRIX returns the integer file descriptor for a Fortran logical unit number
int_mult_upper IRIX Multiplies integers and returns the uppermost bits
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service