diff options
author | 2022-04-24 14:14:49 +1000 | |
---|---|---|
committer | 2022-04-24 14:14:49 +1000 | |
commit | 25c64006b7ca4bbb0d575b46c6c5c4f214dac7ed (patch) | |
tree | 6f0399117a96c25ad14dcd80990b0262a6953592 /src/lib/util/cdrom.h | |
parent | 6c247d5a92b46292ee54554b41df32f7a56372f3 (diff) |
srcclean in preparation for 0.243
Diffstat (limited to 'src/lib/util/cdrom.h')
-rw-r--r-- | src/lib/util/cdrom.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/util/cdrom.h b/src/lib/util/cdrom.h index b74b50a8190..8e911e92e91 100644 --- a/src/lib/util/cdrom.h +++ b/src/lib/util/cdrom.h @@ -184,11 +184,11 @@ public: static inline uint32_t lba_to_msf_alt(int lba) { uint32_t ret = 0; - + ret |= ((lba / (60 * 75))&0xff)<<16; ret |= (((lba / 75) % 60)&0xff)<<8; ret |= ((lba % 75)&0xff)<<0; - + return ret; } @@ -210,17 +210,17 @@ private: static constexpr int SYNC_OFFSET = 0x000; /** @brief 12 bytes. */ static constexpr int SYNC_NUM_BYTES = 12; - + /** @brief offset within sector. */ static constexpr int MODE_OFFSET = 0x00f; - + /** @brief offset within sector. */ static constexpr int ECC_P_OFFSET = 0x81c; /** @brief 2 lots of 86. */ static constexpr int ECC_P_NUM_BYTES = 86; /** @brief 24 bytes each. */ static constexpr int ECC_P_COMP = 24; - + /** @brief The ECC q offset. */ static constexpr int ECC_Q_OFFSET = ECC_P_OFFSET + 2 * ECC_P_NUM_BYTES; /** @brief 2 lots of 52. */ |