]> Git Repo - qemu.git/blobdiff - target/s390x/cpu_features.h
Use #include "..." for our own headers, <...> for others
[qemu.git] / target / s390x / cpu_features.h
index 770435e0cc204253e41c43d74f8b32457715fc0a..e306aa7ab2ac0b1f4287326906a97bb8334211a1 100644 (file)
@@ -93,4 +93,12 @@ const S390FeatGroupDef *s390_feat_group_def(S390FeatGroup group);
 
 #define BE_BIT_NR(BIT) (BIT ^ (BITS_PER_LONG - 1))
 
+static inline void set_be_bit(unsigned int bit_nr, uint8_t *array)
+{
+    array[bit_nr / 8] |= 0x80 >> (bit_nr % 8);
+}
+static inline bool test_be_bit(unsigned int bit_nr, const uint8_t *array)
+{
+    return array[bit_nr / 8] & (0x80 >> (bit_nr % 8));
+}
 #endif /* TARGET_S390X_CPU_FEATURES_H */
This page took 0.023618 seconds and 4 git commands to generate.