Age | Commit message (Collapse) | Author | Lines | |
---|---|---|---|---|
2012-09-06 | use restrict everywhere it's required by c99 and/or posix 2008 | Rich Felker | -1/+1 | |
to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict. | ||||
2012-06-09 | add pthread_attr_setstack interface (and get) | Rich Felker | -0/+10 | |
i originally omitted these (optional, per POSIX) interfaces because i considered them backwards implementation details. however, someone later brought to my attention a fairly legitimate use case: allocating thread stacks in memory that's setup for sharing and/or fast transfer between CPU and GPU so that the thread can move data to a GPU directly from automatic-storage buffers without having to go through additional buffer copies. perhaps there are other situations in which these interfaces are useful too. |