Module Name: src Committed By: riastradh Date: Mon Feb 29 00:17:54 UTC 2016
Modified Files: src/sys/arch/x86/x86: cpu_rng.c Log Message: Let the compiler decide whether to inline. Works around ICE in PCC for now: /home/riastradh/netbsd/current/src/sys/arch/x86/x86/cpu_rng.c, line 195: bad xasm node type 23 /home/riastradh/netbsd/current/src/sys/arch/x86/x86/cpu_rng.c, line 195: bad xasm node type 23 internal compiler error: /home/riastradh/netbsd/current/src/sys/arch/x86/x86/cpu_rng.c, line 195 This code is not performance-critical. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x86/x86/cpu_rng.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/cpu_rng.c diff -u src/sys/arch/x86/x86/cpu_rng.c:1.4 src/sys/arch/x86/x86/cpu_rng.c:1.5 --- src/sys/arch/x86/x86/cpu_rng.c:1.4 Sun Feb 28 20:51:03 2016 +++ src/sys/arch/x86/x86/cpu_rng.c Mon Feb 29 00:17:54 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu_rng.c,v 1.4 2016/02/28 20:51:03 riastradh Exp $ */ +/* $NetBSD: cpu_rng.c,v 1.5 2016/02/29 00:17:54 riastradh Exp $ */ /*- * Copyright (c) 2015 The NetBSD Foundation, Inc. @@ -72,7 +72,7 @@ cpu_rng_init(void) return false; } -static inline size_t +static size_t cpu_rng_rdrand(cpu_rng_t *out) { uint8_t rndsts; @@ -98,7 +98,7 @@ cpu_rng_rdrand(cpu_rng_t *out) return sizeof(*out) * NBBY; } -static inline size_t +static size_t cpu_rng_rdseed(cpu_rng_t *out) { uint8_t rndsts;