It's simply scaling from 0..1 to idle_speed..1 (usually -1..1). See comment on line 341 and feel free to add something.