word emission utilities More...
#include <stddef.h>#include <aclspv/spvty.h>#include <ae2f/c90/StdInt.h>#include <ae2f/Keys.h>#include <assert.h>#include <string.h>#include "./ctx.h"Go to the source code of this file.
Macros | |
| #define | sz_to_count(c_sz) |
| byte size to word count | |
| #define | count_to_sz(c_count) |
| word count to byte size | |
| #define | get_wrd_of_vec(vec) |
| get word buffer from vector | |
| #define | mk_noprnds(c_num_opprm) |
| #define | opcode_to_wrd(c_opcode, c_num_opprm) |
| #define | emit_opcode(h_wrds, c_wrdcount, c_opcode, c_num_opprm_opt) |
| try emit opcode with num_opprm | |
| #define | set_oprnd_count_for_opcode(cr_wrd, c_num_opprm) |
Typedefs | |
| typedef aclspv_wrdcount_t | spvsz_t |
word emission utilities
Definition in file wrdemit.h.
| #define count_to_sz | ( | c_count | ) |
word count to byte size
| #define emit_opcode | ( | h_wrds, | |
| c_wrdcount, | |||
| c_opcode, | |||
| c_num_opprm_opt ) |
| #define get_wrd_of_vec | ( | vec | ) |
get word buffer from vector
| #define mk_noprnds | ( | c_num_opprm | ) |
| #define opcode_to_wrd | ( | c_opcode, | |
| c_num_opprm ) |
| #define set_oprnd_count_for_opcode | ( | cr_wrd, | |
| c_num_opprm ) |
| #define sz_to_count | ( | c_sz | ) |
byte size to word count
| typedef aclspv_wrdcount_t spvsz_t |