Mercurial > hg > dmlib
comparison dmlib.h @ 36:f3407a58e01e
Change DMFixedPoint types and appropriate JSS functions back to using signed
integers, easier than trying to get unsigned sizes etc. to work properly in
audio mixing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 29 Sep 2012 20:41:36 +0300 |
parents | 2f463a59d732 |
children | f28cd66356f6 |
comparison
equal
deleted
inserted
replaced
35:fb5200deeda8 | 36:f3407a58e01e |
---|---|
95 | 95 |
96 /* Fixed point math type | 96 /* Fixed point math type |
97 */ | 97 */ |
98 typedef union | 98 typedef union |
99 { | 99 { |
100 Uint64 dw; | 100 Sint64 dw; |
101 Uint32 w[2]; | 101 Sint32 w[2]; |
102 } DMFixedPoint; | 102 } DMFixedPoint; |
103 | 103 |
104 | 104 |
105 typedef union | 105 typedef union |
106 { | 106 { |
107 Uint32 dw; | 107 Sint32 dw; |
108 Uint16 w[2]; | 108 Sint16 w[2]; |
109 } DMFixedPoint32; | 109 } DMFixedPoint32; |
110 | 110 |
111 | 111 |
112 /* Macros for fixed point math | 112 /* Macros for fixed point math |
113 */ | 113 */ |