blob: a8efbdad75403ae82c949957cde8addcbd0bec46 (
plain) (
tree)
|
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
Aligns down the value to the alignment.
copyrights:
- Copyright (C) 2016 embedded brains GmbH (http://www.embedded-brains.de)
definition:
default: |
( ( ${.:/params[0]/name} ) & ~( ( ${.:/params[1]/name} ) - 1 ) )
variants: []
description: null
enabled-by: true
index-entries: []
interface-type: macro
links:
- role: interface-placement
uid: header
- role: interface-ingroup
uid: group
name: RTEMS_ALIGN_DOWN
notes: null
params:
- description: |
is the value to align down.
dir: null
name: _value
- description: |
is the desired alignment in bytes. The alignment shall be a power of two,
otherwise the returned value is undefined. The alignment parameter is
evaluated twice.
dir: null
name: _alignment
return:
return: |
Returns the value aligned down to the alignment.
return-values: []
type: interface
|