powerpc: Make use of our rounddown() macro when sys/param.h is available.

No functional change.
This commit is contained in:
Pedro F. Giffuni 2016-04-30 18:56:35 +00:00
parent 22d6365976
commit a1118f872e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298856

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 = ((sizeof(sf32) + 15) / 16) * 16;
rndfsize = rounddown(sizeof(sf32) + 15, 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 + ((sizeof(sf) + 47) / 48) * 48;
rndfsize = 288 + rounddown(sizeof(sf) + 47, 48);
#else
rndfsize = ((sizeof(sf) + 15) / 16) * 16;
rndfsize = rounddown(sizeof(sf) + 15, 16);
#endif
/*