2
* Irix/unaligned.c - Optimized unaligned access for Irix
4
* Basilisk II (C) 1997-2002 Christian Bauer
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
/* Tell the compiler to pack data on 1-byte boundaries
25
* (i.e. arbitrary alignment). Requires SGI MIPSPro compilers. */
28
typedef struct _ual32 {
32
typedef struct _ual16 {
38
/* The compiler is smart enough to inline these when you build with "-ipa" */
39
uae_u32 do_get_mem_long(uae_u32 *a) {return ((ual32_t *)a)->v;}
40
uae_u32 do_get_mem_word(uae_u16 *a) {return ((ual16_t *)a)->v;}
41
void do_put_mem_long(uae_u32 *a, uae_u32 v) {((ual32_t *)a)->v = v;}
42
void do_put_mem_word(uae_u16 *a, uae_u32 v) {((ual16_t *)a)->v = v;}