_div64
The _div64
intrinsic divides a 64-bit integer by a 32-bit integer. The return value holds the quotient, and the intrinsic returns the remainder through a pointer parameter. _div64
is Microsoft-specific.
Syntax
int _div64(
__int64 dividend,
int divisor,
int* remainder
);
Parameters
dividend
[in] The 64-bit integer to divide.
divisor
[in] The 32-bit integer to divide by.
remainder
[out] The 32-bit integer bits of the remainder.
Return value
The 32 bits of the quotient.
Remarks
The _div64
intrinsic divides dividend by divisor. It stores the remainder in the 32-bit integer pointed to by remainder, and returns the 32 bits of the quotient.
The _div64
intrinsic is available starting in Visual Studio 2019 RTM.
Requirements
Intrinsic | Architecture | Header |
---|---|---|
_div64 |
x86, x64 | <immintrin.h> |
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho