quad.h (a78c1027d7f5f33815d26e97524d72c728f17c38) | quad.h (feb1d5507e4730fe401e6ae28a56579b814519ef) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This software was developed by the Computer Systems Engineering group 8 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and --- 77 unchanged lines hidden (view full) --- 86 * longword to upper half of long, i.e., produce the upper longword of 87 * ((quad_t)(x) << (number_of_bits_in_long/2)). (`x' must actually be u_long.) 88 * 89 * These are used in the multiply code, to split a longword into upper 90 * and lower halves, and to reassemble a product as a quad_t, shifted left 91 * (sizeof(long)*CHAR_BIT/2). 92 */ 93#define HHALF(x) ((x) >> HALF_BITS) | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This software was developed by the Computer Systems Engineering group 8 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and --- 77 unchanged lines hidden (view full) --- 86 * longword to upper half of long, i.e., produce the upper longword of 87 * ((quad_t)(x) << (number_of_bits_in_long/2)). (`x' must actually be u_long.) 88 * 89 * These are used in the multiply code, to split a longword into upper 90 * and lower halves, and to reassemble a product as a quad_t, shifted left 91 * (sizeof(long)*CHAR_BIT/2). 92 */ 93#define HHALF(x) ((x) >> HALF_BITS) |
94#define LHALF(x) ((x) & ((1 << HALF_BITS) - 1)) | 94#define LHALF(x) ((x) & ((1L << HALF_BITS) - 1)) |
95#define LHUP(x) ((x) << HALF_BITS) 96 97int __cmpdi2(quad_t a, quad_t b); 98quad_t __divdi3(quad_t a, quad_t b); 99quad_t __moddi3(quad_t a, quad_t b); 100u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem); 101int __ucmpdi2(u_quad_t a, u_quad_t b); 102u_quad_t __udivdi3(u_quad_t a, u_quad_t b); 103u_quad_t __umoddi3(u_quad_t a, u_quad_t b); 104 105typedef unsigned int qshift_t; | 95#define LHUP(x) ((x) << HALF_BITS) 96 97int __cmpdi2(quad_t a, quad_t b); 98quad_t __divdi3(quad_t a, quad_t b); 99quad_t __moddi3(quad_t a, quad_t b); 100u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem); 101int __ucmpdi2(u_quad_t a, u_quad_t b); 102u_quad_t __udivdi3(u_quad_t a, u_quad_t b); 103u_quad_t __umoddi3(u_quad_t a, u_quad_t b); 104 105typedef unsigned int qshift_t; |