summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/align-down-0.yml
blob: b0c824db2504b77e8cfa18a6151e72f88eec30a3 (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-down
non-functional-type: interface
rationale: null
references: []
requirement-type: non-functional
text: |
  When the argument ${../if/align-down:/params[1]/name} is a
  positive power of two integer,
  and argument ${../if/align-down:/params[0]/name} is a positive or 0
  integer,
  the macro ${../if/align-down:/name} shall result in a side-effect free formula
  calculating an integer which is the *greatest* whole-number *multiple* of
  ${../if/align-down:/params[1]/name} which is smaller or equal
  ${../if/align-down:/params[0]/name}.
type: requirement