This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] powerpc: optimizing random() and POSIX question
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: 'GNU C Library' <libc-alpha at sourceware dot org>, "rzinsly at linux dot ibm dot com" <rzinsly at linux dot ibm dot com>
- Cc: "tuliom at linux dot vnet dot ibm dot com" <tuliom at linux dot vnet dot ibm dot com>, Paul Clarke <pc at us dot ibm dot com>
- Date: Wed, 12 Feb 2020 15:05:01 +0000
- Subject: Re: [RFC] powerpc: optimizing random() and POSIX question
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6O0w2ZkWQ/UMkhB3cPvn9TjgGGrShGyz3rPPsds1UxU=; b=U7sUoQGi49wn20tR+mGZFTb2KvZLru0YrwVpH8lgeo45YF8puPFZywIVpysi5cpf59EIjMog68F/9udd+g5sWHVeBTdb5ms6imn6N0gPn3dXJEn1ZwE2Il4dg8KP1erRIx/zk2gletxfRzQi2fANL9R1WHkellmeS4V24KTWhmdnCL4NArG6au/WSlDB9R4as/55oAbrbnmR/eSjWlBNsFpEegBKIj0qHYHWr+j4EAmfSk7XQ5AUKZFAI3WqwWX6TRoTSLwUKCx2wjrYWW8ZqYNEGZ45GtU/RrY6+/HghWAP0w6+ZcngDzbEJmHY3/ephNLfQyKAh3y0O6+Y96grOg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GhT01TSueO9k86hmq83jEKXGKWWMVqJ9t6rWQbgs4wQgJDauOeOZarXmBwsVw5ekVglMrt0izxbuUJTD1yIcRvrARS+abThw8xODSHWX8LQH+cFfGspDrYssnC3B4NVMs3N4utvnYWQSJcfyDJc4nA9jJR2mHwrYdu+MTQfE46t5gB99L+5pyKcacNvsCTo9xC/WCgirZLevUaXzW48khHicCkqzoVVhcjQ+RgvHKH+GhzktqGnm0zkVVuFEoXCgx++plfz+S5n7u3flHq/vanBYKAQLoyYQ0nFiPt60WtiqUFejPPHMXD78ZMz2uyWeQ/RGf7u4DZR68eQ985omCw==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
Hi,
Wouldn't the easiest and safest option to be just add the single-threaded check
so 99% of applications just bypass the locks?
Also I would strongly suggest to optimize the generic code first - target-specific
optimizations are almost always counter productive in the long term.
Cheers,
Wilco