powerpc: Replace rounddown() from r298856 with roundup().

Both are equivalent but roundup is more logical for this case.
Catch another case while here.

Pointed out by:	jhibbits
This commit is contained in:
Pedro F. Giffuni 2016-04-30 19:50:59 +00:00
parent a75a7d90e9
commit 20d7fee404
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298860

View File

@ -162,7 +162,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
code = siginfo32.si_code;
sfp = (caddr_t)&sf32;
sfpsize = sizeof(sf32);
rndfsize = rounddown(sizeof(sf32) + 15, 16);
rndfsize = roundup(sizeof(sf32), 16);
/*
* Save user context
@ -189,9 +189,9 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
* 64-bit PPC defines a 288 byte scratch region
* below the stack.
*/
rndfsize = 288 + rounddown(sizeof(sf) + 47, 48);
rndfsize = 288 + roundup(sizeof(sf), 48);
#else
rndfsize = rounddown(sizeof(sf) + 15, 16);
rndfsize = roundup(sizeof(sf), 16);
#endif
/*