Share via


BitOperations.RoundUpToPowerOf2 메서드

정의

오버로드

RoundUpToPowerOf2(UInt32)

지정된 UInt32 값을 2의 전원으로 반올림합니다.

RoundUpToPowerOf2(UInt64)

지정된 UInt64 값을 2의 전원으로 반올림합니다.

RoundUpToPowerOf2(UIntPtr)

지정된 정수 값을 2의 강력한 값으로 반올림합니다.

RoundUpToPowerOf2(UInt32)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

중요

이 API는 CLS 규격이 아닙니다.

지정된 UInt32 값을 2의 전원으로 반올림합니다.

public:
 static System::UInt32 RoundUpToPowerOf2(System::UInt32 value);
[System.CLSCompliant(false)]
public static uint RoundUpToPowerOf2 (uint value);
[<System.CLSCompliant(false)>]
static member RoundUpToPowerOf2 : uint32 -> uint32
Public Shared Function RoundUpToPowerOf2 (value As UInteger) As UInteger

매개 변수

value
UInt32

2의 전원으로 반올림할 값입니다.

반환

보다 크거나 같은 value두 개의 가장 작은 전력입니다. 가 0이거나 결과 오버플로가 발생하면 value 는 0을 반환합니다.

특성

적용 대상

RoundUpToPowerOf2(UInt64)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

중요

이 API는 CLS 규격이 아닙니다.

지정된 UInt64 값을 2의 전원으로 반올림합니다.

public:
 static System::UInt64 RoundUpToPowerOf2(System::UInt64 value);
[System.CLSCompliant(false)]
public static ulong RoundUpToPowerOf2 (ulong value);
[<System.CLSCompliant(false)>]
static member RoundUpToPowerOf2 : uint64 -> uint64
Public Shared Function RoundUpToPowerOf2 (value As ULong) As ULong

매개 변수

value
UInt64

2의 전원으로 반올림할 값입니다.

반환

보다 크거나 같은 value두 개의 가장 작은 전력입니다.

가 0이거나 결과 오버플로가 발생하면 value 는 0을 반환합니다.

특성

적용 대상

RoundUpToPowerOf2(UIntPtr)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

중요

이 API는 CLS 규격이 아닙니다.

지정된 정수 값을 2의 강력한 값으로 반올림합니다.

public:
 static UIntPtr RoundUpToPowerOf2(UIntPtr value);
[System.CLSCompliant(false)]
public static UIntPtr RoundUpToPowerOf2 (UIntPtr value);
[<System.CLSCompliant(false)>]
static member RoundUpToPowerOf2 : unativeint -> unativeint
Public Shared Function RoundUpToPowerOf2 (value As UIntPtr) As UIntPtr

매개 변수

value
UIntPtr

unativeint

값입니다.

반환

UIntPtr

unativeint

보다 크거나 같은 value2의 가장 작은 전력입니다. 가 0이거나 결과 오버플로가 발생하면 value 는 0을 반환합니다.

특성

적용 대상