mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 02:50:32 +00:00
f3e67da937
byuu says: Changelog: - added \~130 new PAL games to icarus (courtesy of Smarthuman and aquaman) - added all three Korean-localized games to icarus - sfc: removed SuperDisc emulation (it was going nowhere) - sfc: fixed MSU1 regression where the play/repeat flags were not being cleared on track select - nall: cryptography support added; will be used to sign future databases (validation will always be optional) - minor shims to fix compilation issues due to nall changes The real magic is that we now have 25-30% of the PAL SNES library in icarus! Signing will be tricky. Obviously if I put the public key inside the higan archive, then all anyone has to do is change that public key for their own releases. And if you download from my site (which is now over HTTPS), then you don't need the signing to verify integrity. I may just put the public key on my site on my site and leave it at that, we'll see.
70 lines
1.3 KiB
C++
70 lines
1.3 KiB
C++
#pragma once
|
|
|
|
//multi-precision arithmetic
|
|
//warning: each size is quadratically more expensive than the size before it!
|
|
|
|
#include <nall/stdint.hpp>
|
|
#include <nall/string.hpp>
|
|
#include <nall/range.hpp>
|
|
#include <nall/traits.hpp>
|
|
|
|
#include <nall/arithmetic/unsigned.hpp>
|
|
|
|
#if !defined(__SIZEOF_INT128__)
|
|
#define PairBits 128
|
|
#define TypeBits 64
|
|
#define HalfBits 32
|
|
#include <nall/arithmetic/natural.hpp>
|
|
#undef PairBits
|
|
#undef TypeBits
|
|
#undef HalfBits
|
|
#endif
|
|
|
|
#define PairBits 256
|
|
#define TypeBits 128
|
|
#define HalfBits 64
|
|
#include <nall/arithmetic/natural.hpp>
|
|
#undef PairBits
|
|
#undef TypeBits
|
|
#undef HalfBits
|
|
|
|
#define PairBits 512
|
|
#define TypeBits 256
|
|
#define HalfBits 128
|
|
#include <nall/arithmetic/natural.hpp>
|
|
#undef PairBits
|
|
#undef TypeBits
|
|
#undef HalfBits
|
|
|
|
#define PairBits 1024
|
|
#define TypeBits 512
|
|
#define HalfBits 256
|
|
#include <nall/arithmetic/natural.hpp>
|
|
#undef PairBits
|
|
#undef TypeBits
|
|
#undef HalfBits
|
|
|
|
#define PairBits 2048
|
|
#define TypeBits 1024
|
|
#define HalfBits 512
|
|
#include <nall/arithmetic/natural.hpp>
|
|
#undef PairBits
|
|
#undef TypeBits
|
|
#undef HalfBits
|
|
|
|
#define PairBits 4096
|
|
#define TypeBits 2048
|
|
#define HalfBits 1024
|
|
#include <nall/arithmetic/natural.hpp>
|
|
#undef PairBits
|
|
#undef TypeBits
|
|
#undef HalfBits
|
|
|
|
#define PairBits 8192
|
|
#define TypeBits 4096
|
|
#define HalfBits 2048
|
|
#include <nall/arithmetic/natural.hpp>
|
|
#undef PairBits
|
|
#undef TypeBits
|
|
#undef HalfBits
|