static daddr_t msf2hsg(bcd_t *msf, int relative) { daddr_t blkno; blkno = bcd2bin(M_msf(msf)) * 75 * 60 + bcd2bin(S_msf(msf)) * 75 + bcd2bin(F_msf(msf)); if (!relative) blkno -= 150; return blkno; }
static int msf2hsg(bcd_t *msf, int relative) { return (bcd2bin(M_msf(msf)) * 60 + bcd2bin(S_msf(msf))) * 75 + bcd2bin(F_msf(msf)) - (!relative) * 150; }