A Smackerel of Opinion

Notes and jottings from an ex-Ubuntu Kernel Team Engineer

Wednesday, 18 December 2024

C void return gotcha

›
Last week I was bitten by a interesting C feature. The following terminate function was expected to exit if okay was zero (false) however it...
Friday, 10 February 2023

Integer shift gotcha

›
 Left shifting values seems simple, but the following code contains a bug:     The literal value 1 is actually a signed int, so the promotio...
Saturday, 24 July 2021

Intel Hardware P-State (HWP) / Intel Speed Shift

›
Intel Hardware P-State (aka Harware Controlled Performance or "Speed Shift") (HWP) is a feature found in more modern x86 Intel CPU...
Friday, 9 July 2021

New features in stress-ng 0.12.12

›
The release of stress-ng 0.12.12 incorporates some useful features and a handful of new stressors. Media devices such as HDDs and SSDs norm...
Friday, 21 May 2021

Adjacent C string concatenation gotcha

›
C has the useful feature of adjacent allowing literal strings to be automatically concatenated. This is described in K&R "The C pro...
›
Home
View web version
Powered by Blogger.