summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/align-up-0.yml
blob: 823c22c74328dda6c0a2ca1886ae627bced8f0f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
links:
- role: requirement-refinement
  uid: ../if/align-up
non-functional-type: interface
rationale: null
references: []
requirement-type: non-functional
text: |
  When the argument ${../if/align-up:/params[1]/name} is a
  positive power of two integer,
  and argument ${../if/align-up:/params[0]/name} is a positive or 0
  integer,
  the macro ${../if/align-up:/name} shall result in a side-effect free formula
  calculating an integer which is the *smallest* whole-number *multiple* of
  ${../if/align-up:/params[1]/name} which is greater or equal
  ${../if/align-up:/params[0]/name}.
type: requirement