US Patent:
20030172238, Sep 11, 2003
Inventors:
Alexander Tessarolo - Sydney, AU
Randall Preskitt - Garland TX, US
International Classification:
G06F012/00
Abstract:
Logic for or atomically testing and setting one or more bits stored in a memory location, in a single operation, disables one or more interrupts, access a number stored in a memory location, copies the number from the memory location to a working register, tests a particular bit of the number copied from the memory location, sets or clears a bit flag to reflect the state of the particular bit copied from the memory location for access in one or more subsequent operations, sets the particular bit of the number copied from the memory location, and copies the number from the working register to the memory location. Logic for atomically testing and clearing one or more bits stored in a memory location, in a single operation, disables one or more interrupts, accesses a number stored in a memory location, copies the number from the memory location to a working register, tests a particular bit of the number copied from the memory location, sets or clears a bit flag to reflect the state of the particular bit copied from the memory location for access in one or more subsequent operations, clears the particular bit of the number copied from the memory location, and copies the number from the working register to the memory location.