Home
last modified time | relevance | path

Searched refs:MASK_TO_LSH (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/include/hw/ssi/
H A Dpnv_spi_regs.h21 #define MASK_TO_LSH(m) (__builtin_ffsll(m) - 1) macro
22 #define GETFIELD(m, v) (((v) & (m)) >> MASK_TO_LSH(m))
24 (((v) & ~(m)) | ((((typeof(v))(val)) << MASK_TO_LSH(m)) & (m)))
/openbmc/qemu/tests/qtest/
H A Dpnv-host-i2c-test.c22 #define MASK_TO_LSH(m) (__builtin_ffsll(m) - 1) macro
23 #define GETFIELD(m, v) (((v) & (m)) >> MASK_TO_LSH(m))
25 (((v) & ~(m)) | ((((typeof(v))(val)) << MASK_TO_LSH(m)) & (m)))
/openbmc/qemu/target/ppc/
H A Dcpu.h58 #define MASK_TO_LSH(m) (__builtin_ffsll(m) - 1) macro
59 #define GETFIELD(m, v) (((v) & (m)) >> MASK_TO_LSH(m))
61 (((v) & ~(m)) | ((((typeof(v))(val)) << MASK_TO_LSH(m)) & (m)))