/haiku/src/libs/mapm/ |
H A D | mapm_fft.c | 126 double carry, nnr, dtemp, *a, *b; in M_fast_mul_fft() local 155 a = (double *)MAPM_MALLOC((nn + 8) * sizeof(double)); in M_fast_mul_fft() 158 if ((a == NULL) || (b == NULL)) in M_fast_mul_fft() 169 a = M_aa_array; in M_fast_mul_fft() 181 a[j] = (double)((int)uu[i] * 100 + uu[i+1]); in M_fast_mul_fft() 190 a[j] = 0.0; in M_fast_mul_fft() 196 M_rdft(nn, 1, a); in M_fast_mul_fft() 201 b[0] *= a[0]; in M_fast_mul_fft() 202 b[1] *= a[1]; in M_fast_mul_fft() 207 b[j-1] = dtemp * a[j-1] - b[j] * a[j]; in M_fast_mul_fft() [all …]
|
/haiku/headers/posix/netinet6/ |
H A D | in6.h | 77 #define __IPV6_ADDR_MC_SCOPE(a) ((a)->s6_addr[1] & 0x0f) argument 80 #define IN6_IS_ADDR_UNSPECIFIED(a) \ argument 81 (!memcmp((a)->s6_addr, in6addr_any.s6_addr, sizeof(struct in6_addr))) 83 #define IN6_IS_ADDR_LOOPBACK(a) \ argument 84 (!memcmp((a)->s6_addr, in6addr_loopback.s6_addr, sizeof(struct in6_addr))) 86 #define IN6_IS_ADDR_MULTICAST(a) \ argument 87 ((a)->s6_addr[0] == 0xff) 89 #define IN6_IS_ADDR_LINKLOCAL(a) \ argument 90 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80)) 92 #define IN6_IS_ADDR_SITELOCAL(a) \ argument [all …]
|
/haiku/src/system/libnetwork/musl/network/ |
H A D | inet_ntop.c | 14 const unsigned char *a = a0; in __inet_ntop() local 20 if (snprintf(s, l, "%d.%d.%d.%d", a[0],a[1],a[2],a[3]) < l) in __inet_ntop() 24 if (memcmp(a, "\0\0\0\0\0\0\0\0\0\0\377\377", 12)) in __inet_ntop() 27 256*a[0]+a[1],256*a[2]+a[3], in __inet_ntop() 28 256*a[4]+a[5],256*a[6]+a[7], in __inet_ntop() 29 256*a[8]+a[9],256*a[10]+a[11], in __inet_ntop() 30 256*a[12]+a[13],256*a[14]+a[15]); in __inet_ntop() 34 256*a[0]+a[1],256*a[2]+a[3], in __inet_ntop() 35 256*a[4]+a[5],256*a[6]+a[7], in __inet_ntop() 36 256*a[8]+a[9],256*a[10]+a[11], in __inet_ntop() [all …]
|
/haiku/src/add-ons/kernel/bus_managers/acpi/acpica/include/ |
H A D | acmacros.h | 314 #define ACPI_DIV_2(a) _ACPI_DIV(a, 1) argument 315 #define ACPI_MUL_2(a) _ACPI_MUL(a, 1) argument 316 #define ACPI_MOD_2(a) _ACPI_MOD(a, 2) argument 318 #define ACPI_DIV_4(a) _ACPI_DIV(a, 2) argument 319 #define ACPI_MUL_4(a) _ACPI_MUL(a, 2) argument 320 #define ACPI_MOD_4(a) _ACPI_MOD(a, 4) argument 322 #define ACPI_DIV_8(a) _ACPI_DIV(a, 3) argument 323 #define ACPI_MUL_8(a) _ACPI_MUL(a, 3) argument 324 #define ACPI_MOD_8(a) _ACPI_MOD(a, 8) argument 326 #define ACPI_DIV_16(a) _ACPI_DIV(a, 4) argument [all …]
|
/haiku/headers/libs/agg/ |
H A D | agg_color_gray.h | 52 value_type a; member 59 v(int8u(v_)), a(int8u(a_)) {} in v() 63 v(c.v), a(value_type(a_)) {} in gray8() 68 a((value_type)uround(c.a * double(base_mask))) {} in gray8() 73 a((value_type)uround(a_ * double(base_mask))) {} in gray8() 78 a(c.a) {} in gray8() 83 a(a_) {} in gray8() 88 v = a = 0; in clear() 94 a = 0; in transparent() 103 a = (value_type)uround(a_ * double(base_mask)); in opacity() [all …]
|
H A D | agg_trans_perspective.h | 54 explicit trans_perspective(const trans_affine& a) : in trans_perspective() 55 sx (a.sx ), shy(a.shy), w0(0), in trans_perspective() 56 shx(a.shx), sy (a.sy ), w1(0), in trans_perspective() 57 tx (a.tx ), ty (a.ty ), w2(1) {} in trans_perspective() 97 const trans_perspective& rotate(double a); 210 const trans_perspective& from_affine(const trans_affine& a); 349 trans_perspective a = *this; in invert() local 353 shx = d * (a.w1 *a.tx - a.shx*a.w2); in invert() 354 sy = d * (a.sx *a.w2 - a.w0 *a.tx); in invert() 355 w1 = d * (a.w0 *a.shx - a.sx *a.w1); in invert() [all …]
|
H A D | agg_color_rgba.h | 49 double a; member 56 r(r_), g(g_), b(b_), a(a_) {} in r() 59 rgba(const rgba& c, double a_) : r(c.r), g(c.g), b(c.b), a(a_) {} in rgba() 64 r = g = b = a = 0; in clear() 70 a = 0.0; in transparent() 79 a = a_; in opacity() 86 return a; in opacity() 92 r *= a; in premultiply() 93 g *= a; in premultiply() 94 b *= a; in premultiply() [all …]
|
/haiku/headers/os/drivers/pcmcia/ |
H A D | bus_ops.h | 65 #define bus_insb(b,p,a,c) (b)->b_ins((b),(p),(a),(c),0) argument 66 #define bus_insw(b,p,a,c) (b)->b_ins((b),(p),(a),(c),1) argument 67 #define bus_insl(b,p,a,c) (b)->b_ins((b),(p),(a),(c),2) argument 68 #define bus_insw_ns(b,p,a,c) (b)->b_ins((b),(p),(a),(c),-1) argument 69 #define bus_insl_ns(b,p,a,c) (b)->b_ins((b),(p),(a),(c),-2) argument 77 #define bus_outsb(b,p,a,c) (b)->b_outs((b),(p),(a),(c),0) argument 78 #define bus_outsw(b,p,a,c) (b)->b_outs((b),(p),(a),(c),1) argument 79 #define bus_outsl(b,p,a,c) (b)->b_outs((b),(p),(a),(c),2) argument 80 #define bus_outsw_ns(b,p,a,c) (b)->b_outs((b),(p),(a),(c),-1) argument 81 #define bus_outsl_ns(b,p,a,c) (b)->b_outs((b),(p),(a),(c),-2) argument [all …]
|
/haiku/src/add-ons/kernel/network/protocols/ipv6/ |
H A D | jenkins.h | 93 #define mix(a,b,c) \ argument 95 a -= c; a ^= rot(c, 4); c += b; \ 96 b -= a; b ^= rot(a, 6); a += c; \ 97 c -= b; c ^= rot(b, 8); b += a; \ 98 a -= c; a ^= rot(c,16); c += b; \ 99 b -= a; b ^= rot(a,19); a += c; \ 100 c -= b; c ^= rot(b, 4); b += a; \ 128 #define final(a,b,c) \ argument 131 a ^= c; a -= rot(c,11); \ 132 b ^= a; b -= rot(a,25); \ [all …]
|
/haiku/src/libs/compat/freebsd_iflib/ |
H A D | md5c.c | 110 #define FF(a, b, c, d, x, s, ac) { \ argument 111 (a) += F ((b), (c), (d)) + (x) + (u_int32_t)(ac); \ 112 (a) = ROTATE_LEFT ((a), (s)); \ 113 (a) += (b); \ 115 #define GG(a, b, c, d, x, s, ac) { \ argument 116 (a) += G ((b), (c), (d)) + (x) + (u_int32_t)(ac); \ 117 (a) = ROTATE_LEFT ((a), (s)); \ 118 (a) += (b); \ 120 #define HH(a, b, c, d, x, s, ac) { \ argument 121 (a) += H ((b), (c), (d)) + (x) + (u_int32_t)(ac); \ [all …]
|
/haiku/src/libs/compat/openbsd_wlan/crypto/ |
H A D | sha1.c | 52 u_int32_t a, b, c, d, e; in SHA1Transform() local 67 a = state[0]; in SHA1Transform() 74 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1Transform() 75 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1Transform() 76 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1Transform() 77 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1Transform() 78 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1Transform() 79 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1Transform() 80 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1Transform() 81 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1Transform() [all …]
|
H A D | md5.c | 147 u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4]; in MD5Transform() local 152 for (a = 0; a < MD5_BLOCK_LENGTH / 4; a++) { in MD5Transform() 153 in[a] = (u_int32_t)( in MD5Transform() 154 (u_int32_t)(block[a * 4 + 0]) | in MD5Transform() 155 (u_int32_t)(block[a * 4 + 1]) << 8 | in MD5Transform() 156 (u_int32_t)(block[a * 4 + 2]) << 16 | in MD5Transform() 157 (u_int32_t)(block[a * 4 + 3]) << 24); in MD5Transform() 161 a = state[0]; in MD5Transform() 166 MD5STEP(F1, a, b, c, d, in[ 0] + 0xd76aa478, 7); in MD5Transform() 167 MD5STEP(F1, d, a, b, c, in[ 1] + 0xe8c7b756, 12); in MD5Transform() [all …]
|
/haiku/src/bin/network/ftpd/ |
H A D | md5c.c | 109 #define FF(a, b, c, d, x, s, ac) { \ argument 110 (a) += F ((b), (c), (d)) + (x) + (u_int32_t)(ac); \ 111 (a) = ROTATE_LEFT ((a), (s)); \ 112 (a) += (b); \ 114 #define GG(a, b, c, d, x, s, ac) { \ argument 115 (a) += G ((b), (c), (d)) + (x) + (u_int32_t)(ac); \ 116 (a) = ROTATE_LEFT ((a), (s)); \ 117 (a) += (b); \ 119 #define HH(a, b, c, d, x, s, ac) { \ argument 120 (a) += H ((b), (c), (d)) + (x) + (u_int32_t)(ac); \ [all …]
|
/haiku/src/add-ons/mail_daemon/outbound_protocols/smtp/ |
H A D | md5c.c | 80 #define FF(a, b, c, d, x, s, ac) { \ argument 81 (a) += F ((b), (c), (d)) + (x) + (UINT4)(ac); \ 82 (a) = ROTATE_LEFT ((a), (s)); \ 83 (a) += (b); \ 85 #define GG(a, b, c, d, x, s, ac) { \ argument 86 (a) += G ((b), (c), (d)) + (x) + (UINT4)(ac); \ 87 (a) = ROTATE_LEFT ((a), (s)); \ 88 (a) += (b); \ 90 #define HH(a, b, c, d, x, s, ac) { \ argument 91 (a) += H ((b), (c), (d)) + (x) + (UINT4)(ac); \ [all …]
|
/haiku/src/libs/libsolv/solv/ |
H A D | sha1.c | 111 uint32_t a, b, c, d, e; in SHA1_Transform() local 121 a = state[0]; in SHA1_Transform() 128 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1_Transform() 129 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1_Transform() 130 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1_Transform() 131 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1_Transform() 132 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1_Transform() 133 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1_Transform() 134 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1_Transform() 135 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1_Transform() [all …]
|
H A D | md5.c | 36 #define STEP(f, a, b, c, d, x, t, s) \ argument 37 (a) += f((b), (c), (d)) + (x) + (t); \ 38 (a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \ 39 (a) += (b); 72 MD5_u32plus a, b, c, d; in body() local 77 a = ctx->a; in body() 83 saved_a = a; in body() 89 STEP(F, a, b, c, d, SET(0), 0xd76aa478, 7) in body() 90 STEP(F, d, a, b, c, SET(1), 0xe8c7b756, 12) in body() 91 STEP(F, c, d, a, b, SET(2), 0x242070db, 17) in body() [all …]
|
H A D | qsort_r.c | 50 #define min(a, b) (a) < (b) ? a : b argument 66 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ argument 70 swapfunc(a, b, n, swaptype) in swapfunc() argument 71 char *a, *b; in swapfunc() 75 swapcode(long, a, b, n) 77 swapcode(char, a, b, n) 80 #define swap(a, b) \ argument 82 long t = *(long *)(a); \ 83 *(long *)(a) = *(long *)(b); \ 86 swapfunc(a, b, es, swaptype) [all …]
|
/haiku/src/kits/media/ |
H A D | MediaDefs.cpp | 136 operator==(const media_destination& a, const media_destination& b) in operator ==() argument 138 return a.port == b.port && a.id == b.id; in operator ==() 143 operator!=(const media_destination& a, const media_destination& b) in operator !=() argument 145 return a.port != b.port || a.id != b.id; in operator !=() 150 operator<(const media_destination& a, const media_destination& b) in operator <() argument 158 operator==(const media_source& a, const media_source& b) in operator ==() argument 160 return a.port == b.port && a.id == b.id; in operator ==() 165 operator!=(const media_source& a, const media_source& b) in operator !=() argument 167 return a.port != b.port || a.id != b.id; in operator !=() 172 operator<(const media_source& a, const media_source& b) in operator <() argument [all …]
|
/haiku/src/system/libroot/posix/musl/search/ |
H A D | tdelete.c | 12 void **a[MAXH+1]; in tdelete() local 19 a[i++] = rootp; in tdelete() 20 a[i++] = rootp; in tdelete() 28 a[i++] = &n->a[c>0]; in tdelete() 29 n = n->a[c>0]; in tdelete() 32 parent = *a[i-2]; in tdelete() 33 if (n->a[0]) { in tdelete() 36 a[i++] = &n->a[0]; in tdelete() 37 n = n->a[0]; in tdelete() 38 while (n->a[1]) { in tdelete() [all …]
|
/haiku/src/kits/shared/ |
H A D | md5.cpp | 59 #define STEP(f, a, b, c, d, x, t, s) \ argument 60 (a) += f((b), (c), (d)) + (x) + (t); \ 61 (a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \ 62 (a) += (b); 98 MD5_u32plus a, b, c, d; in body() local 103 a = ctx->a; in body() 109 saved_a = a; in body() 115 STEP(F, a, b, c, d, SET(0), 0xd76aa478, 7) in body() 116 STEP(F, d, a, b, c, SET(1), 0xe8c7b756, 12) in body() 117 STEP(F, c, d, a, b, SET(2), 0x242070db, 17) in body() [all …]
|
/haiku/src/add-ons/kernel/drivers/midi/mpu401/ |
H A D | debug.h | 52 #define PRINT(a) log_printf a argument 53 #define TRACE(a) debug_printf a argument 54 #define LOG(a) log_printf a argument 56 #define DEBUG_ONLY(a) a argument 57 #define ASSERT(a) if (a) {} else LOG(("ASSERT failed! file = %s, line = %d\n",__FILE__,__LINE__)) argument 61 #define PRINT(a) debug_printf a argument 62 #define TRACE(a) ((void)(0)) argument 63 #define ASSERT(a) ((void)(0)) argument 64 #define LOG(a) ((void)(0)) argument 66 #define DEBUG_ONLY(a) argument
|
/haiku/headers/compatibility/bsd/sys/ |
H A D | time.h | 17 #define timespecadd(a, b, res) \ argument 19 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ 20 (res)->tv_nsec = (a)->tv_nsec + (b)->tv_nsec; \ 26 #define timespecsub(a, b, res) \ argument 28 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ 29 (res)->tv_nsec = (a)->tv_nsec - (b)->tv_nsec; \ 35 #define timespecclear(a) ((a)->tv_sec = (a)->tv_nsec = 0) argument 36 #define timespecisset(a) ((a)->tv_sec != 0 || (a)->tv_nsec != 0) argument 37 #define timespeccmp(a, b, cmp) (((a)->tv_sec == (b)->tv_sec) \ argument 38 ? ((a)->tv_nsec cmp (b)->tv_nsec) : ((a)->tv_sec cmp (b)->tv_sec)) [all …]
|
/haiku/src/system/libnetwork/netresolv/dst/ |
H A D | md5_locl.h | 136 #define Endian_Reverse32(a) \ argument 138 unsigned long l=(a); \ 139 (a)=((ROTATE(l,8)&0x00FF00FF)|(ROTATE(l,24)&0xFF00FF00)); \ 143 #define Endian_Reverse32(a) \ argument 145 unsigned long l=(a); \ 147 (a)=ROTATE(l,16L); \ 167 #define ROTATE(a,n) _lrotl(a,n) argument 169 #define ROTATE(a,n) (((a)<<(n))|(((a)&0xffffffff)>>(32-(n)))) argument 173 #define R0(a,b,c,d,k,s,t) { \ argument 174 a+=((k)+(t)+F((b),(c),(d))); \ [all …]
|
/haiku/src/add-ons/mail_daemon/inbound_protocols/pop3/ |
H A D | md5c.c | 80 #define FF(a, b, c, d, x, s, ac) { \ argument 81 (a) += F ((b), (c), (d)) + (x) + (UINT4)(ac); \ 82 (a) = ROTATE_LEFT ((a), (s)); \ 83 (a) += (b); \ 85 #define GG(a, b, c, d, x, s, ac) { \ argument 86 (a) += G ((b), (c), (d)) + (x) + (UINT4)(ac); \ 87 (a) = ROTATE_LEFT ((a), (s)); \ 88 (a) += (b); \ 90 #define HH(a, b, c, d, x, s, ac) { \ argument 91 (a) += H ((b), (c), (d)) + (x) + (UINT4)(ac); \ [all …]
|
/haiku/src/system/libroot/posix/stdlib/ |
H A D | qsort.c | 44 #define MIN(a, b) ((a) < (b) ? a : b) argument 51 swapfunc(char *a, char *b, size_t es) in swapfunc() argument 56 t = *a; in swapfunc() 57 *a++ = *b; in swapfunc() 62 #define vecswap(a, b, n) \ argument 63 if ((n) > 0) swapfunc(a, b, n) 68 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk) in med3() argument 70 return CMP(thunk, a, b) < 0 ? in med3() 71 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) in med3() 72 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); in med3() [all …]
|