[PATCH libinput 2/6] touchpad: use __builtin_ffs instead of a manual count

Thiago Macieira thiago at kde.org
Mon Jan 5 16:29:48 PST 2015


On Monday 05 January 2015 12:00:24 Hans de Goede wrote:
> > +	return __builtin_ffs(tp->fake_touches >> 1);

Why the builtin instead of ffs from <strings.h>?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the wayland-devel mailing list