Home GnuPG

gpgscm: Provide framework for immediate values.

Description

gpgscm: Provide framework for immediate values.

* tests/gpgscm/scheme.c (IMMEDIATE_TAG): New macro.
({is,set,clr}_immediate): Likewise.
(enum scheme_types): Make type tags disjoint from immediate values.
(TYPE_BITS): We need one more bit now.
(ADJ,T_MASKTYPE): Compute values.

Immediate values are disjoint from all type tags and pointers,
allowing us to store immediate values in all memory locations.

  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Jan 30 2017, 3:45 PM
Parents
rEc587e6a038fc: gpgscm: Fix setting the line of the first gc reservation.
Branches
Unknown
Tags
Unknown