summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/align-down-0.yml
blob: 254e30bad6cf70e7900ad1b2f1bf448ee56811c1 (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
functional-type: function
links:
- role: interface-function
  uid: ../if/align-down
rationale: null
references: []
requirement-type: 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