diff options
Diffstat (limited to '')
-rw-r--r-- | libsyscalls_unsection_value.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libsyscalls_unsection_value.c b/libsyscalls_unsection_value.c index 6cd797e..fb0f1fe 100644 --- a/libsyscalls_unsection_value.c +++ b/libsyscalls_unsection_value.c @@ -4,7 +4,8 @@ enum libsyscalls_error libsyscalls_unsection_value(unsigned long long int value_in, size_t bits, - enum libsyscalls_datatype_section section, unsigned long long int *value_out) + enum libsyscalls_datatype_section section, + unsigned long long int *value_out) { unsigned long long int value = value_in, mask, shift; @@ -15,8 +16,6 @@ libsyscalls_unsection_value(unsigned long long int value_in, size_t bits, switch (section) { case LIBSYSCALLS_SECTION_UNDETERMINED: case LIBSYSCALLS_SECTION_WHOLE: /* 0xFFFFFFFFFFFFFFFF */ - break; - case LIBSYSCALLS_SECTION_LOWER_HALF: /* 0x00000000FFFFFFFF */ case LIBSYSCALLS_SECTION_LOWER_QUARTER: /* 0x000000000000FFFF */ break; @@ -40,17 +39,20 @@ libsyscalls_unsection_value(unsigned long long int value_in, size_t bits, case LIBSYSCALLS_SECTION_OUTER_HALF: /* 0xFFFF00000000FFFF */ mask = (1ULL << (bits / 2)) - 1ULL; - value = ((value & ~mask) << bits) | (value & mask); + value = ((value & ~mask) << bits) + | (value & mask); break; case LIBSYSCALLS_SECTION_EVEN_QUARTERS_AS_HALF: /* 0x0000FFFF0000FFFF */ mask = (1ULL << (bits / 2)) - 1ULL; - value = ((value & ~mask) << (bits / 2)) | (value & mask); + value = ((value & ~mask) << (bits / 2)) + | (value & mask); break; case LIBSYSCALLS_SECTION_ODD_QUARTERS_AS_HALF: /* 0xFFFF0000FFFF0000 */ mask = (1ULL << (bits / 2)) - 1ULL; - value = ((value & ~mask) << (bits / 2)) | (value & mask); + value = ((value & ~mask) << (bits / 2)) + | (value & mask); value <<= bits / 2; break; |