quad.h (114216) | quad.h (126891) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This software was developed by the Computer Systems Engineering group 6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7 * contributed to Berkeley. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * @(#)quad.h 8.1 (Berkeley) 6/4/93 | 1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This software was developed by the Computer Systems Engineering group 6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7 * contributed to Berkeley. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * @(#)quad.h 8.1 (Berkeley) 6/4/93 |
38 * $FreeBSD: head/sys/libkern/quad.h 114216 2003-04-29 13:36:06Z kan $ | 38 * $FreeBSD: head/sys/libkern/quad.h 126891 2004-03-12 21:45:33Z trhodes $ |
39 */ 40 41#ifndef _LIBKERN_QUAD_H 42#define _LIBKERN_QUAD_H 43 44/* 45 * Quad arithmetic. 46 * --- 56 unchanged lines hidden (view full) --- 103 104quad_t __divdi3(quad_t a, quad_t b); 105quad_t __moddi3(quad_t a, quad_t b); 106u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem); 107u_quad_t __udivdi3(u_quad_t a, u_quad_t b); 108u_quad_t __umoddi3(u_quad_t a, u_quad_t b); 109int __ucmpdi2(u_quad_t a, u_quad_t b); 110 | 39 */ 40 41#ifndef _LIBKERN_QUAD_H 42#define _LIBKERN_QUAD_H 43 44/* 45 * Quad arithmetic. 46 * --- 56 unchanged lines hidden (view full) --- 103 104quad_t __divdi3(quad_t a, quad_t b); 105quad_t __moddi3(quad_t a, quad_t b); 106u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem); 107u_quad_t __udivdi3(u_quad_t a, u_quad_t b); 108u_quad_t __umoddi3(u_quad_t a, u_quad_t b); 109int __ucmpdi2(u_quad_t a, u_quad_t b); 110 |
111/* 112 * XXX 113 * Compensate for gcc 1 vs gcc 2. Gcc 1 defines ?sh?di3's second argument 114 * as u_quad_t, while gcc 2 correctly uses int. Unfortunately, we still use 115 * both compilers. 116 */ 117#if __GNUC__ >= 2 | |
118typedef unsigned int qshift_t; | 111typedef unsigned int qshift_t; |
119#else 120typedef u_quad_t qshift_t; 121#endif | |
122#endif /* _LIBKERN_QUAD_H */ | 112#endif /* _LIBKERN_QUAD_H */ |