DoxigAlpha

addFeature

Adds the specified feature but not its dependencies.

Function parameters

Parameters

#
set:*Set

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
requiresLibC
Does this target require linking libc? This may be the case if the target has an unstable
cCharSignedness
Default signedness of `char` for the native C compiler for this target

Source

Implementation

#
pub fn addFeature(set: *Set, arch_feature_index: Index) void {
    const usize_index = arch_feature_index / @bitSizeOf(usize);
    const bit_index: ShiftInt = @intCast(arch_feature_index % @bitSizeOf(usize));
    set.ints[usize_index] |= @as(usize, 1) << bit_index;
}