Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Switch to C99 exact-width types. | marcel | 2010-05-19 | 1 | -4/+4 |
| | |||||
* | /* -> /*- for copyright notices, minor format tweaks as necessary | imp | 2005-01-06 | 1 | -1/+1 |
| | |||||
* | Fix last second typo. | peter | 2003-12-10 | 1 | -1/+1 |
| | |||||
* | Use ffs(x) == popcnt(x ^ (x - 1)) to implement 64 bit ffsl(). gcc's | peter | 2003-12-10 | 1 | -8/+15 |
| | | | | ffs() builtin uses this already but truncates the upper 32 bits. | ||||
* | Move the "- 1" into the RQB_FFS(mask) macro itself so that | peter | 2002-06-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | implementations can provide a base zero ffs function if they wish. This changes #define RQB_FFS(mask) (ffs64(mask)) foo = RQB_FFS(mask) - 1; to #define RQB_FFS(mask) (ffs64(mask) - 1) foo = RQB_FFS(mask); On some platforms we can get the "- 1" for free, eg: those that use the C code for ffs64(). Reviewed by: jake (in principle) | ||||
* | Make the run queue parameters machine dependent. Optimize 64 bit | jake | 2002-05-25 | 1 | -0/+58 |
architectures by using a 64 bit word for the bit array which keeps track of non-empty queues. Reviewed by: peter |