diff --git a/core/cpu_feature.m b/core/cpu_feature.m index 092bc3463d97525cdef01aee714c85c70c48b56e..b50db25dedc74c71dd1cbee2e5352b3f19e0b3e5 100644 --- a/core/cpu_feature.m +++ b/core/cpu_feature.m @@ -121,8 +121,10 @@ toggle_x86_flags(long mask, long* orig, long* toggled) ); #endif - if (orig) *orig = forig; - if (toggled) *toggled = fres; + if (orig) + *orig = forig; + if (toggled) + *toggled = fres; return; } @@ -160,7 +162,7 @@ can_cpuid() /* Retrieve CPUID data using info as the EAX key. */ static void -get_cpuid (long info, long* eax, long* ebx, long* ecx, long *edx) +get_cpuid(long info, long* eax, long* ebx, long* ecx, long *edx) { *eax = info; @@ -185,7 +187,7 @@ get_cpuid (long info, long* eax, long* ebx, long* ecx, long *edx) /* Check whether CPU has a certain feature. */ int -cpu_has (unsigned int feature) +cpu_has(unsigned int feature) { long info = 1, reg[4] = {0,0,0,0}; @@ -210,7 +212,7 @@ crc32c_hw(u_int32_t crc, const unsigned char *buf, unsigned int len) #else /* other (yet unsupported architectures) */ int -cpu_has (unsigned int feature) +cpu_has(unsigned int feature) { (void)feature; return EINVAL; diff --git a/core/log_io.m b/core/log_io.m index 6d9d89d0cde51df3d603a286250153fb826b31c0..97e2ff6d673cedd868252b499a81b8af9506620e 100644 --- a/core/log_io.m +++ b/core/log_io.m @@ -76,7 +76,7 @@ static u_int32_t (*calc_crc32c)(u_int32_t crc, const unsigned char *buf, unsigned int len) = NULL; void -mach_setup_crc32 () +mach_setup_crc32() { #if defined (__i386__) || defined (__x86_64__) calc_crc32c = cpu_has (cpuf_sse4_2) ? &crc32c_hw : &crc32c;