27 #if defined(DIVA_ISTREAM)
33 #if !defined USE_EXTENDED_DEBUGS
78 int written = 0, to_write = -1;
83 #ifdef PLATFORM_GT_32BIT
84 ULongToPtr(a->tx_stream[Id] + a->tx_pos[Id]),
86 (
void *)(a->tx_stream[Id] + a->tx_pos[Id]),
98 #ifdef PLATFORM_GT_32BIT
99 ULongToPtr(a->tx_stream[Id] + a->tx_pos[Id] + 4),
101 (
void *)(a->tx_stream[Id] + a->tx_pos[Id] + 4),
107 data_ptr += to_write;
109 tmp[1] = (
char)to_write;
118 #ifdef PLATFORM_GT_32BIT
119 ULongToPtr(a->tx_stream[Id] + a->tx_pos[Id]),
121 (
void *)(a->tx_stream[Id] + a->tx_pos[Id]),
156 int read = 0, to_read = -1;
162 #ifdef PLATFORM_GT_32BIT
163 ULongToPtr(a->rx_stream[Id] + a->rx_pos[Id]),
165 (
void *)(a->rx_stream[Id] + a->rx_pos[Id]),
169 if (tmp[1] > max_length) {
179 to_read =
min(max_length, (
int)tmp[1]);
182 #ifdef PLATFORM_GT_32BIT
183 ULongToPtr(a->rx_stream[Id] + a->rx_pos[Id] + 4),
185 (
void *)(a->rx_stream[Id] + a->rx_pos[Id] + 4),
189 max_length -= to_read;
198 #ifdef PLATFORM_GT_32BIT
199 ULongToPtr(a->rx_stream[Id] + a->rx_pos[Id]),
201 (
void *)(a->rx_stream[Id] + a->rx_pos[Id]),