1 /*************************************************************************
3 * Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith. *
4 * All rights reserved. Email: russ@q12.org Web: www.q12.org *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of EITHER: *
8 * (1) The GNU Lesser General Public License as published by the Free *
9 * Software Foundation; either version 2.1 of the License, or (at *
10 * your option) any later version. The text of the GNU Lesser *
11 * General Public License is included with this library in the *
13 * (2) The BSD-style license that is included with this library in *
14 * the file LICENSE-BSD.TXT. *
16 * This library is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files *
19 * LICENSE.TXT and LICENSE-BSD.TXT for more details. *
21 *************************************************************************/
23 #ifndef _ODE_TYPEDEFS_H_
24 #define _ODE_TYPEDEFS_H_
26 #include <ode/odeconfig.h>
32 * Internal typedefs to map public types into more convenient private types
37 dSASSERT(sizeof(int64
) == 8);
39 typedef duint64 uint64
;
40 dSASSERT(sizeof(uint64
) == 8);
43 dSASSERT(sizeof(int32
) == 4);
45 typedef duint32 uint32
;
46 dSASSERT(sizeof(uint32
) == 4);
49 dSASSERT(sizeof(int16
) == 2);
51 typedef duint16 uint16
;
52 dSASSERT(sizeof(uint16
) == 2);
55 dSASSERT(sizeof(int8
) == 1);
58 dSASSERT(sizeof(uint8
) == 1);
61 typedef dintptr intptr
;
62 dSASSERT(sizeof(intptr
) == sizeof(void *));
64 typedef duintptr uintptr
;
65 dSASSERT(sizeof(uintptr
) == sizeof(void *));
67 typedef ddiffint diffint
;
68 dSASSERT(sizeof(diffint
) == sizeof(void *)); // So far, we choose to not support systems that have accessible memory segment size smaller than the pointer size
70 typedef dsizeint sizeint
;
71 dSASSERT(sizeof(sizeint
) == sizeof(void *)); // So far, we choose to not support systems that have accessible memory segment size smaller than the pointer size