exercise6_5

command
v0.0.0-...-ec09f47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

The type of each word used by IntSet is uint64, but 64-bit airthmetic may be ineffictinetn on a 32-bit platform. Modify the program to use the uint type, which is the most efficent unsigned interger type for the platform. Instead of dividying by 64, define a constant holding the effective size of unint in bits, 32, or 64. You can use the perhaps too-clever expression 32 << (^uint(0) >> 63) for this purpose.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL