Home GnuPG
Diffusion GnuPG e343984fc50e

gpgscm: Provide framework for immediate values.
e343984fc50eUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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
rGd27a4435bd8c: gpgscm: Fix setting the line of the first gc reservation.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rGe343984fc50e: gpgscm: Provide framework for immediate values. (authored by Justus Winter <justus@g10code.com>).Jan 30 2017, 5:09 PM