Skip to content

exact-int 24-bit int #47

Open
Open
@fineless71

Description

@fineless71

Some hardware has support for 24-bit ints, such as the eZ80 processor. Some Texas Instruments calculators use this processor (such as the TI-84 Plus CE) but exact-int doesn't give any way to use it's 24-bit ints. Could you consider adding 24-bit int support to exact-int? There's an overview of the CPU here, along with the size of its integers.

Secondly, (maybe this should be another issue), I think it would make sense to have a "min-int" mode (maybe via a define to enable it, or to have different macros along with the regular ones, eg. prefixed with m) where instead of the ints being exactly n-bits, it's only guaranteed to be at least that many bits. Most of the time, I wouldn't care if an int was bigger than I asked, only smaller. Otherwise, if you only need a 24-bit int and want to support both regular CPUs and awkward ones, you would need to check if 24-bit ints are supported, when all you care about is that it is at least that many bits. Eg. When you use a 24-bit int on a normal CPU, it would actually be 32-bits.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions