OSDN Git Service

compiler/blob: Add (reserve|overwrite)_(uint32|intptr) helpers
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Oct 2017 03:58:43 +0000 (20:58 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Oct 2017 04:47:06 +0000 (21:47 -0700)
commit3af1c829891a4530682bce113fdd512d4f2de3c6
tree1b6170aa7fbc9ca22b332ff2892c9b7673a0c244
parent6935440967e2beccf017c96e75387b9cb71833b4
compiler/blob: Add (reserve|overwrite)_(uint32|intptr) helpers

These helpers not only call blob_reserve_bytes but also make sure that
the blob is properly aligned as if blob_write_* were called.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/blob.c
src/compiler/blob.h