Displaying 3 results from an estimated 3 matches for "rtval".
Did you mean:
retval
2003 Dec 14
1
compile error with C code and standalone R math C library
...u - theta;
return y;
}
/* generate acceptance probabilities for candidates*/
/* NB: This assumes:
(a) That all the initial values of the starting state are set to -1
(b) That theta > 1.
*/
double accept_prob(double *node, double theta, int current_pos)
{
double a, p, y, num, denom, leftval, rtval;
a = node[current_pos + 1];
y = node[current_pos] + node[current_pos+2];
num = accept_prob_fn(a, y);
leftval = accept_prob_fn(a, -theta + node[current_pos+2]);
rtval = accept_prob_fn(a, theta + node[current_pos+2]);
denom = fmax2(leftval, rtval); /* function in Rmath which returns...
2003 Aug 22
3
PAE removal patch for testing
...ct(pmap, va)
+ register pmap_t pmap;
+ vm_offset_t va;
{
- pt_entry_t *pte;
-
- if (pmap == 0)
- return 0;
- pte = pmap_pte(pmap, va);
- if (pte) {
- if (*pte & PG_PS)
- return (*pte & ~PDRMASK) | (va & PDRMASK);
- return (*pte & PG_FRAME) | (va & PAGE_MASK);
+ vm_offset_t rtval;
+ vm_offset_t pdirindex;
+ pdirindex = va >> PDRSHIFT;
+ if (pmap && (rtval = (unsigned) pmap->pm_pdir[pdirindex])) {
+ unsigned *pte;
+ if ((rtval & PG_PS) != 0) {
+ rtval &= ~(NBPDR - 1);
+ rtval |= va & (NBPDR - 1);
+ return rtval;
+ }
+ pte = get_ptbase(p...
2003 May 13
1
Kernel panic on FreeBSD 4.8-STABLE
...= 32, tf_ecx = 20480,
tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071644706,
tf_cs = 8, tf_eflags = 66118, tf_esp = -813768384, tf_ss = 12})
at /usr/src/sys/i386/i386/trap.c:466
#6 0xc01fffde in vnode_pager_generic_putpages (vp=0xcf7ee140,
m=0xcf7d9c34, bytecount=20480, flags=12, rtvals=0xcf7d9bf4)
at /usr/src/sys/vm/vnode_pager.c:1034
#7 0xc01eab72 in ffs_putpages (ap=0xcf7d9bb8) at
/usr/src/sys/ufs/ufs/ufs_readwrite.c:741
#8 0xc01ffe3a in vnode_pager_putpages (object=0xcf824600, m=0xcf7d9c34,
count=5, sync=12, rtvals=0xcf7d9bf4) at vnode_if.h:1147
#9 0xc01fcdb8 in vm_...