]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. index:: STORAGE_SIZE, storage size | |
7 | ||
8 | .. _storage_size: | |
9 | ||
10 | STORAGE_SIZE --- Storage size in bits | |
11 | ************************************* | |
12 | ||
13 | .. function:: STORAGE_SIZE(A , KIND) | |
14 | ||
15 | Returns the storage size of argument :samp:`{A}` in bits. | |
16 | ||
17 | :param A: | |
18 | Shall be a scalar or array of any type. | |
19 | ||
20 | :param KIND: | |
21 | (Optional) shall be a scalar integer constant expression. | |
22 | ||
23 | Standard: | |
24 | Fortran 2008 and later | |
25 | ||
26 | Class: | |
27 | Inquiry function | |
28 | ||
29 | Syntax: | |
30 | .. code-block:: fortran | |
31 | ||
32 | RESULT = STORAGE_SIZE(A [, KIND]) | |
33 | ||
34 | Return Value: | |
35 | The result is a scalar integer with the kind type parameter specified by KIND | |
36 | (or default integer type if KIND is missing). The result value is the size | |
37 | expressed in bits for an element of an array that has the dynamic type and type | |
38 | parameters of A. | |
39 | ||
40 | See also: | |
41 | :ref:`C_SIZEOF`, | |
3ed1b4ce | 42 | :ref:`SIZEOF` |