Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwilliams committed Dec 30, 2023
1 parent b5ae259 commit 2bacf5a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ fpm build --profile release
fpm test --profile release
```

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:

Preprocessor flag | Kind | Number of bytes
----------------- | ----- | ---------------
`INT8` | `integer(kind=int8)` | 1
`INT16` | `integer(kind=int16)` | 2
`INT32` | `integer(kind=int32)` | 4
`INT64` | `integer(kind=int64)` | 8

For example, to build a long integer version of the library:

```
fpm build --profile release --flag "-DINT64"
```

### Example

A simple example is shown below:
Expand Down

0 comments on commit 2bacf5a

Please sign in to comment.