Skip to content

Commit 2bacf5a

Browse files
committed
readme update
1 parent b5ae259 commit 2bacf5a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ fpm build --profile release
1818
fpm test --profile release
1919
```
2020

21+
By default, the library is built with single precision (`int32`) integer values. Explicitly specifying the integer kind can be done using the following processor flag:
22+
23+
Preprocessor flag | Kind | Number of bytes
24+
----------------- | ----- | ---------------
25+
`INT8` | `integer(kind=int8)` | 1
26+
`INT16` | `integer(kind=int16)` | 2
27+
`INT32` | `integer(kind=int32)` | 4
28+
`INT64` | `integer(kind=int64)` | 8
29+
30+
For example, to build a long integer version of the library:
31+
32+
```
33+
fpm build --profile release --flag "-DINT64"
34+
```
35+
2136
### Example
2237

2338
A simple example is shown below:

0 commit comments

Comments
 (0)