Subversion Repositories eduke32

Rev

Rev 5009 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5009 Rev 5073
Line 196... Line 196...
196
    *((float *)b) = *((float *)a);
196
    *((float *)b) = *((float *)a);
197
    *((float *)a) = t;
197
    *((float *)a) = t;
198
}
198
}
199
static inline void swap64bit(void *a, void *b)
199
static inline void swap64bit(void *a, void *b)
200
{
200
{
201
    int64_t t = *((int64_t *)b);
201
    uint64_t t = *((uint64_t *)b);
202
    *((int64_t *)b) = *((int64_t *)a);
202
    *((uint64_t *)b) = *((uint64_t *)a);
203
    *((int64_t *)a) = t;
203
    *((uint64_t *)a) = t;
204
}
204
}
205
205
206
static inline char readpixel(void *s) { return (*((char *)(s))); }
206
static inline char readpixel(void *s) { return (*((char *)(s))); }
207
static inline void drawpixel(void *s, char a) { *((char *)(s)) = a; }
207
static inline void drawpixel(void *s, char a) { *((char *)(s)) = a; }
208
208