r133305 - in /branches/gomp-3_0-branch/libgomp:...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Tue Mar 18 08:06:00 GMT 2008


Author: jakub
Date: Tue Mar 18 08:06:56 2008
New Revision: 133305

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133305
Log:
	* libgomp.h (struct gomp_work_share): Add mode field.  Put lock and
	next into a different cache line from most of the write-once fields.
	* loop.c: Include limits.h.
	(gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
	If adding ws->chunk_size nthreads + 1 times after end won't
	overflow, set ws->mode to 1.
	* iter.c (gomp_iter_dynamic_next_locked): Don't multiply
	ws->chunk_size by incr.
	(gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
	code.
	* work.c: Include stddef.h.
	(gomp_new_work_share): Use offsetof rather than sizeof.

Modified:
    branches/gomp-3_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-3_0-branch/libgomp/iter.c
    branches/gomp-3_0-branch/libgomp/libgomp.h
    branches/gomp-3_0-branch/libgomp/loop.c
    branches/gomp-3_0-branch/libgomp/work.c



More information about the Gcc-cvs mailing list