mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 06:32:32 +01:00
byuu says: Changelog: - added Cocoa target: higan can now be compiled for OS X Lion [Cydrak, byuu] - SNES/accuracy profile hires color blending improvements - fixes Marvelous text [AWJ] - fixed a slight bug in SNES/SA-1 VBR support caused by a typo - added support for multi-pass shaders that can load external textures (requires OpenGL 3.2+) - added game library path (used by ananke->Import Game) to Settings->Advanced - system profiles, shaders and cheats database can be stored in "all users" shared folders now (eg /usr/share on Linux) - all configuration files are in BML format now, instead of XML (much easier to read and edit this way) - main window supports drag-and-drop of game folders (but not game files / ZIP archives) - audio buffer clears when entering a modal loop on Windows (prevents audio repetition with DirectSound driver) - a substantial amount of code clean-up (probably the biggest refactoring to date) One highly desired target for this release was to default to the optimal drivers instead of the safest drivers, but because AMD drivers don't seem to like my OpenGL 3.2 driver, I've decided to postpone that. AMD has too big a market share. Hopefully with v093 officially released, we can get some public input on what AMD doesn't like.
43 lines
1.7 KiB
C++
43 lines
1.7 KiB
C++
#ifndef NALL_ENDIAN_HPP
|
|
#define NALL_ENDIAN_HPP
|
|
|
|
#include <nall/intrinsics.hpp>
|
|
|
|
#if defined(ENDIAN_LSB)
|
|
//little-endian: uint8_t[] { 0x01, 0x02, 0x03, 0x04 } == 0x04030201
|
|
#define order_lsb2(a,b) a,b
|
|
#define order_lsb3(a,b,c) a,b,c
|
|
#define order_lsb4(a,b,c,d) a,b,c,d
|
|
#define order_lsb5(a,b,c,d,e) a,b,c,d,e
|
|
#define order_lsb6(a,b,c,d,e,f) a,b,c,d,e,f
|
|
#define order_lsb7(a,b,c,d,e,f,g) a,b,c,d,e,f,g
|
|
#define order_lsb8(a,b,c,d,e,f,g,h) a,b,c,d,e,f,g,h
|
|
#define order_msb2(a,b) b,a
|
|
#define order_msb3(a,b,c) c,b,a
|
|
#define order_msb4(a,b,c,d) d,c,b,a
|
|
#define order_msb5(a,b,c,d,e) e,d,c,b,a
|
|
#define order_msb6(a,b,c,d,e,f) f,e,d,c,b,a
|
|
#define order_msb7(a,b,c,d,e,f,g) g,f,e,d,c,b,a
|
|
#define order_msb8(a,b,c,d,e,f,g,h) h,g,f,e,d,c,b,a
|
|
#elif defined(ENDIAN_MSB)
|
|
//big-endian: uint8_t[] { 0x01, 0x02, 0x03, 0x04 } == 0x01020304
|
|
#define order_lsb2(a,b) b,a
|
|
#define order_lsb3(a,b,c) c,b,a
|
|
#define order_lsb4(a,b,c,d) d,c,b,a
|
|
#define order_lsb5(a,b,c,d,e) e,d,c,b,a
|
|
#define order_lsb6(a,b,c,d,e,f) f,e,d,c,b,a
|
|
#define order_lsb7(a,b,c,d,e,f,g) g,f,e,d,c,b,a
|
|
#define order_lsb8(a,b,c,d,e,f,g,h) h,g,f,e,d,c,b,a
|
|
#define order_msb2(a,b) a,b
|
|
#define order_msb3(a,b,c) a,b,c
|
|
#define order_msb4(a,b,c,d) a,b,c,d
|
|
#define order_msb5(a,b,c,d,e) a,b,c,d,e
|
|
#define order_msb6(a,b,c,d,e,f) a,b,c,d,e,f
|
|
#define order_msb7(a,b,c,d,e,f,g) a,b,c,d,e,f,g
|
|
#define order_msb8(a,b,c,d,e,f,g,h) a,b,c,d,e,f,g,h
|
|
#else
|
|
#error "Unknown endian. Please specify in nall/intrinsics.hpp"
|
|
#endif
|
|
|
|
#endif
|