summaryrefslogtreecommitdiff
path: root/spec/if/rtems/basedefs/obfuscate-variable.yml
blob: e3d377fd006eb654e06b08855a6714ef793026ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2016, 2018 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: []
interface-brief: |
  Obfuscates the variable so that the compiler cannot perform optimizations
  based on the variable value.
interface-definition:
  default: |
    (void) (_var)
  variants:
  - definition: |
      __asm__("" : "+r" (_var))
    enabled-by:
    - defined(${/if/compiler/gnuc:/interface-name})
interface-description: |
  The variable must be simple enough to fit into a register.
interface-name: RTEMS_OBFUSCATE_VARIABLE
interface-params:
- description: |
    is the variable to obfuscate.
  dir: null
  name: _var
interface-return:
  return: null
  return-values: []
interface-type: macro
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: /groups/api/basedefs
type: interface