mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-03-27 22:12:35 +01:00
byuu says: Changelog: - Emulator: use `(uintmax)-1 >> 1` for the units of time - MD: implemented 13 new 68K instructions (basically all of the remaining easy ones); 21 remain - nall: replaced `(u)intmax_t` (64-bit) with *actual* `(u)intmax` type (128-bit where available) - this extends to everything: atoi, string, etc. You can even print 128-bit variables if you like 22,552 opcodes still don't exist in the 68K map. Looking like quite a few entries will be blank once I finish.
22 lines
310 B
C++
22 lines
310 B
C++
#pragma once
|
|
|
|
namespace nall {
|
|
|
|
auto string::integer() const -> intmax {
|
|
return toInteger(data());
|
|
}
|
|
|
|
auto string::natural() const -> uintmax {
|
|
return toNatural(data());
|
|
}
|
|
|
|
auto string::hex() const -> uintmax {
|
|
return toHex(data());
|
|
}
|
|
|
|
auto string::real() const -> double {
|
|
return toReal(data());
|
|
}
|
|
|
|
}
|