| /netbsd/src/external/bsd/pcc/dist/pcc/mip/ |
| D | common.c | 660 #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/ |
| D | elf.c | 48 #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/ |
| D | mkarp.c | 80 #define ROUNDUP(a) \ macro 246 cp += ROUNDUP(((struct sockaddr *)s)->sa_len);} in rtmsg()
|
| /netbsd/src/external/gpl3/binutils/dist/gprof/ |
| D | gmon.h | 155 #define ROUNDUP(x,y) ((((x)+(y)-1)/(y))*(y)) macro
|
| /netbsd/src/usr.sbin/route6d/ |
| D | route6d.c | 84 #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/ |
| D | dtfs.h | 41 #define ROUNDUP(a,b) ((a) & ((b)-1)) macro
|
| D | dtfs_subr.c | 245 needalloc = newsize > ROUNDUP(df->df_datalen, DTFS_BLOCKSIZE); in dtfs_setsize()
|
| /netbsd/src/sbin/routed/ |
| D | if.c | 645 #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/ |
| D | sshbuf.c | 264 rlen = ROUNDUP(buf->size, SSHBUF_SIZE_INC); in sshbuf_set_max_size() 352 rlen = ROUNDUP(buf->alloc + need, SSHBUF_SIZE_INC); in sshbuf_allocate()
|
| D | misc.h | 255 #define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y)) macro
|
| D | packet.c | 1070 out_blocks = ROUNDUP(outbound_packet_len, in ssh_packet_need_rekeying() 1209 ROUNDUP(state->extra_pad, block_size); in ssh_packet_send2_wrapped()
|
| D | kex.c | 1099 if ((digest = calloc(1, ROUNDUP(need, mdsz))) == NULL) { in derive_key()
|
| D | scp.c | 2185 size = ROUNDUP(stb.st_blksize, blksize); in allocbuf()
|
| /netbsd/src/usr.bin/make/ |
| D | meta.c | 93 #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/ |
| D | rwhod.c | 448 #define ROUNDUP(a) \ macro 450 #define ADVANCE(x, n) ((char *)(x) + ROUNDUP((n)->sa_len))
|
| /netbsd/src/external/gpl3/gcc/dist/libdecnumber/ |
| D | decNumberLocal.h | 138 #define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) macro 361 #define DECPMAX9 (ROUNDUP(DECPMAX, 9)/9) /* 'Pmax' in 10**9s */
|
| D | decCommon.c | 471 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()
|
| D | decBasic.c | 3268 #define PHALF (ROUNDUP(DECPMAX/2, 4)) /* half length, rounded up */
|
| /netbsd/src/external/gpl3/gdb/dist/libdecnumber/ |
| D | decNumberLocal.h | 138 #define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) macro 361 #define DECPMAX9 (ROUNDUP(DECPMAX, 9)/9) /* 'Pmax' in 10**9s */
|
| D | decCommon.c | 471 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()
|
| D | decBasic.c | 3268 #define PHALF (ROUNDUP(DECPMAX/2, 4)) /* half length, rounded up */
|
| /netbsd/src/sys/dev/pci/ |
| D | radeonfb.c | 213 #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/ |
| D | pftn.c | 3494 #define ROUNDUP(x) (((x) + ((ALIGNMENT)-1)) & ~((ALIGNMENT)-1)) macro 3513 size = ROUNDUP(size); in stmtalloc() 3555 size = ROUNDUP(size); in blkalloc()
|