Home
last modified time | relevance | path

Searched refs:ROUNDUP (Results 1 – 23 of 23) sorted by relevance

/netbsd/src/external/bsd/pcc/dist/pcc/mip/
Dcommon.c660 #define ROUNDUP(x) (((x) + ((ALIGNMENT)-1)) & ~((ALIGNMENT)-1)) macro
685 size = ROUNDUP(size); in permalloc()
723 #define NELEM ((MEMCHUNKSZ-ROUNDUP(sizeof(struct xalloc *)))/ALIGNMENT)
742 nelem = ROUNDUP(size)/ELEMSZ; in tmpalloc()
745 size += ROUNDUP(sizeof(struct xalloc *)); in tmpalloc()
840 allocleft -= ROUNDUP(len); in newstring()
841 permallocsize += ROUNDUP(len); in newstring()
/netbsd/src/sys/arch/hpcmips/stand/pbsdboot/
Delf.c48 #define ROUNDUP(a, n) ((((int)(a)) + (n)-1)/(n)*(n)) macro
281 dbg_eh.e_entry = ROUNDUP(dbg_hdr_size + in scanfile()
337 int dbg_info_size = ROUNDUP(dbg_hdr_size + in scanfile()
/netbsd/src/usr.sbin/rarpd/
Dmkarp.c80 #define ROUNDUP(a) \ macro
246 cp += ROUNDUP(((struct sockaddr *)s)->sa_len);} in rtmsg()
/netbsd/src/external/gpl3/binutils/dist/gprof/
Dgmon.h155 #define ROUNDUP(x,y) ((((x)+(y)-1)/(y))*(y)) macro
/netbsd/src/usr.sbin/route6d/
Droute6d.c84 #define ROUNDUP(a) RT_ROUNDUP(a) macro
86 #define ROUNDUP(a) \ macro
1527 q += ROUNDUP(rta[i]->sin6_len); in rtrecv()
2433 rtmp += ROUNDUP(sin6_dst->sin6_len); in rt_entry()
2436 rtmp += ROUNDUP(sin6_gw->sin6_len); in rt_entry()
2440 rtmp += ROUNDUP(sin6_mask->sin6_len); in rt_entry()
2444 rtmp += ROUNDUP(sin6_genmask->sin6_len); in rt_entry()
2448 rtmp += ROUNDUP(sin6_ifp->sin6_len); in rt_entry()
2590 sin6 = (struct sockaddr_in6 *)((char *)sin6 + ROUNDUP(sin6->sin6_len)); in addroute()
2595 sin6 = (struct sockaddr_in6 *)((char *)sin6 + ROUNDUP(sin6->sin6_len)); in addroute()
[all …]
/netbsd/src/tests/fs/puffs/h_dtfs/
Ddtfs.h41 #define ROUNDUP(a,b) ((a) & ((b)-1)) macro
Ddtfs_subr.c245 needalloc = newsize > ROUNDUP(df->df_datalen, DTFS_BLOCKSIZE); in dtfs_setsize()
/netbsd/src/sbin/routed/
Dif.c645 #define ROUNDUP(a) RT_ROUNDUP(a) in rt_xaddrs() macro
648 #define ROUNDUP(a) ((a) > 0 ? (1 + (((a) - 1) | (sizeof(__uint64_t) - 1))) \ in rt_xaddrs() macro
651 #define ROUNDUP(a) ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) \ in rt_xaddrs() macro
665 + ROUNDUP(sa->sa_len)); in rt_xaddrs()
669 + ROUNDUP(_FAKE_SA_LEN_DST(sa))); in rt_xaddrs()
/netbsd/src/crypto/external/bsd/openssh/dist/
Dsshbuf.c264 rlen = ROUNDUP(buf->size, SSHBUF_SIZE_INC); in sshbuf_set_max_size()
352 rlen = ROUNDUP(buf->alloc + need, SSHBUF_SIZE_INC); in sshbuf_allocate()
Dmisc.h255 #define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) macro
Dpacket.c1070 out_blocks = ROUNDUP(outbound_packet_len, in ssh_packet_need_rekeying()
1209 ROUNDUP(state->extra_pad, block_size); in ssh_packet_send2_wrapped()
Dkex.c1099 if ((digest = calloc(1, ROUNDUP(need, mdsz))) == NULL) { in derive_key()
Dscp.c2185 size = ROUNDUP(stb.st_blksize, blksize); in allocbuf()
/netbsd/src/usr.bin/make/
Dmeta.c93 #ifndef ROUNDUP
94 # define ROUNDUP(n, u) (N2U((n), (u)) * (u)) macro
878 newsz = ROUNDUP(((size_t)fs.st_size / 2), BUFSIZ); in fgetLine()
880 newsz = ROUNDUP((size_t)fs.st_size, BUFSIZ); in fgetLine()
/netbsd/src/usr.sbin/rwhod/
Drwhod.c448 #define ROUNDUP(a) \ macro
450 #define ADVANCE(x, n) ((char *)(x) + ROUNDUP((n)->sa_len))
/netbsd/src/external/gpl3/gcc/dist/libdecnumber/
DdecNumberLocal.h138 #define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) macro
361 #define DECPMAX9 (ROUNDUP(DECPMAX, 9)/9) /* 'Pmax' in 10**9s */
DdecCommon.c471 uByte buffer[ROUNDUP(DECPMAX+3, 4)]; /* [+3 allows uInt padding] */ in decFinalize()
798 uByte buffer[ROUNDUP(DECSTRING+11, 8)]; /* room for most coefficents, */ in decFloatFromString()
DdecBasic.c3268 #define PHALF (ROUNDUP(DECPMAX/2, 4)) /* half length, rounded up */
/netbsd/src/external/gpl3/gdb/dist/libdecnumber/
DdecNumberLocal.h138 #define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) macro
361 #define DECPMAX9 (ROUNDUP(DECPMAX, 9)/9) /* 'Pmax' in 10**9s */
DdecCommon.c471 uByte buffer[ROUNDUP(DECPMAX+3, 4)]; /* [+3 allows uInt padding] */ in decFinalize()
798 uByte buffer[ROUNDUP(DECSTRING+11, 8)]; /* room for most coefficents, */ in decFloatFromString()
DdecBasic.c3268 #define PHALF (ROUNDUP(DECPMAX/2, 4)) /* half length, rounded up */
/netbsd/src/sys/dev/pci/
Dradeonfb.c213 #define ROUNDUP(x,y) (((x) + ((y) - 1)) & ~((y) - 1)) macro
672 ROUNDUP(ROUNDUP(sc->sc_maxx * sc->sc_maxbpp / 8 , in radeonfb_attach()
892 dp->rd_stride = ROUNDUP(dp->rd_stride, RADEON_STRIDEALIGN); in radeonfb_attach()
/netbsd/src/external/bsd/pcc/dist/pcc/cc/ccom/
Dpftn.c3494 #define ROUNDUP(x) (((x) + ((ALIGNMENT)-1)) & ~((ALIGNMENT)-1)) macro
3513 size = ROUNDUP(size); in stmtalloc()
3555 size = ROUNDUP(size); in blkalloc()