HomeSort by relevance Sort by last modified time
    Searched refs:Divisor (Results 51 - 75 of 126) sorted by null

1 23 4 5 6

  /external/llvm/lib/CodeGen/
TargetSchedule.cpp 38 static unsigned gcd(unsigned Dividend, unsigned Divisor) {
39 // Dividend and Divisor will be naturally swapped as needed.
40 while(Divisor) {
41 unsigned Rem = Dividend % Divisor;
42 Dividend = Divisor;
43 Divisor = Rem;
  /external/grpc-grpc/src/csharp/Grpc.Examples/
MathServiceImpl.cs 70 if (args.Divisor == 0)
77 long quotient = args.Dividend / args.Divisor;
78 long remainder = args.Dividend % args.Divisor;
  /device/linaro/bootloader/edk2/StdLib/LibC/CRT/Ia32/
umoddi3.S 40 # |-- Divisor --|
58 # Set up the local stack for Divisor parameter
  /device/linaro/bootloader/edk2/CorebootModulePkg/Library/BaseSerialPortLib16550/
BaseSerialPortLib16550.c 482 UINT32 Divisor;
496 // Calculate divisor for baud generator
499 Divisor = PcdGet32 (PcdSerialClockRate) / (PcdGet32 (PcdSerialBaudRate) * 16);
501 Divisor++;
523 if (CurrentDivisor != Divisor) {
540 SerialPortWriteRegister (SerialRegisterBase, R_UART_BAUD_HIGH, (UINT8) (Divisor >> 8));
541 SerialPortWriteRegister (SerialRegisterBase, R_UART_BAUD_LOW, (UINT8) (Divisor & 0xff));
951 UINTN Divisor;
1071 // Calculate divisor for baud generator
1074 Divisor = PcdGet32 (PcdSerialClockRate) / (SerialBaudRate * 16)
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/BaseSerialPortLib16550/
BaseSerialPortLib16550.c 482 UINT32 Divisor;
496 // Calculate divisor for baud generator
499 Divisor = PcdGet32 (PcdSerialClockRate) / (PcdGet32 (PcdSerialBaudRate) * 16);
501 Divisor++;
523 if (CurrentDivisor != Divisor) {
540 SerialPortWriteRegister (SerialRegisterBase, R_UART_BAUD_HIGH, (UINT8) (Divisor >> 8));
541 SerialPortWriteRegister (SerialRegisterBase, R_UART_BAUD_LOW, (UINT8) (Divisor & 0xff));
950 UINTN Divisor;
    [all...]
  /device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/PL011Uart/
PL011Uart.c 79 UINT32 Divisor;
193 Divisor = (UartClkInHz * 4) / *BaudRate;
194 Integer = Divisor >> FRACTION_PART_SIZE_IN_BITS;
195 Fractional = Divisor & FRACTION_PART_MASK;
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/
DivU64x32Remainder.S 31 # IN UINT32 Divisor,
DivU64x32.S 31 # IN UINT32 Divisor
DivU64x32.asm 31 ; IN UINT32 Divisor
DivU64x32Remainder.asm 31 ; IN UINT32 Divisor,
36 mov ecx, [esp + 12] ; ecx <- divisor
ModU64x32.S 31 # IN UINT32 Divisor
ModU64x32.asm 31 ; IN UINT32 Divisor
DivU64x64Remainder.asm 34 ; IN UINT64 Divisor,
39 mov ecx, [esp + 16] ; ecx <- divisor[32..63]
41 jnz _@DivRemU64x64 ; call _@DivRemU64x64 if Divisor > 2^32
55 mov ebx, dword ptr [esp + 24] ; ecx:ebx <- divisor
64 mov ecx, [esp + 28] ; ecx <- high dword of divisor
65 mul dword ptr [esp + 24] ; edx:eax <- quotient * divisor[0..31]
66 imul ecx, ebx ; ecx <- quotient * divisor[32..63]
67 add edx, ecx ; edx <- (quotient * divisor)[32..63]
79 sbb edx, dword ptr [esp + 28] ; edx:eax <- (quotient - 1) * divisor
  /device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/Ia32/
DivU64x32.S 29 # IN UINT32 Divisor
ModU64x32.S 29 # IN UINT32 Divisor
DivU64x32.asm 31 ; IN UINT32 Divisor
DivU64x32Remainder.asm 31 ; IN UINT32 Divisor,
36 mov ecx, [esp + 12] ; ecx <- divisor
DivU64x64Remainder.S 30 # IN UINT64 Divisor,
35 movl 16(%esp), %ecx # ecx <- divisor[32..63]
37 jnz Hard # call _@DivRemU64x64 if Divisor > 2^32
52 mov 24(%esp), %ebx # ecx:ebx <- divisor
61 movl 28(%esp), %ecx # ecx <- high dword of divisor
62 mull 24(%esp) # edx:eax <- quotient * divisor[0..31]
63 imull %ebx, %ecx # ecx <- quotient * divisor[32..63]
64 addl %ecx, %edx # edx <- (quotient * divisor)[32..63]
76 sbb 28(%esp), %edx # edx:eax <- (quotient - 1) * divisor
ModU64x32.asm 31 ; IN UINT32 Divisor
  /device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/
BaseLibInternals.h 195 unsigned value Divisor and generates a 64-bit unsigned quotient. This
199 @param Divisor A 32-bit unsigned value.
201 @return Dividend / Divisor
208 IN UINT32 Divisor
216 unsigned value Divisor and generates a 32-bit remainder. This function
220 @param Divisor A 32-bit unsigned value.
222 @return Dividend % Divisor
229 IN UINT32 Divisor
237 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
242 @param Divisor A 32-bit unsigned value.
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
TargetSchedule.cpp 48 static unsigned gcd(unsigned Dividend, unsigned Divisor) {
49 // Dividend and Divisor will be naturally swapped as needed.
50 while (Divisor) {
51 unsigned Rem = Dividend % Divisor;
52 Dividend = Divisor;
53 Divisor = Rem;
  /device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseXApicLib/
BaseXApicLib.c 721 UINT32 Divisor;
736 Divisor = (UINT32)((HighBitSet32 ((UINT32)DivideValue) - 1) & 0x7);
739 Dcr.Bits.DivideValue1 = (Divisor & 0x3);
740 Dcr.Bits.DivideValue2 = (Divisor >> 2);
775 UINT32 Divisor;
788 Divisor = Dcr.Bits.DivideValue1 | (Dcr.Bits.DivideValue2 << 2);
789 Divisor = (Divisor + 1) & 0x7;
790 *DivideValue = ((UINTN)1) << Divisor;
  /device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseXApicX2ApicLib/
BaseXApicX2ApicLib.c 816 UINT32 Divisor;
831 Divisor = (UINT32)((HighBitSet32 ((UINT32)DivideValue) - 1) & 0x7);
834 Dcr.Bits.DivideValue1 = (Divisor & 0x3);
835 Dcr.Bits.DivideValue2 = (Divisor >> 2);
870 UINT32 Divisor;
883 Divisor = Dcr.Bits.DivideValue1 | (Dcr.Bits.DivideValue2 << 2);
884 Divisor = (Divisor + 1) & 0x7;
885 *DivideValue = ((UINTN)1) << Divisor;
    [all...]
  /art/cmdline/
cmdline_types.h 95 template <size_t Divisor>
96 struct CmdlineType<Memory<Divisor>> : CmdlineTypeParser<Memory<Divisor>> {
97 using typename CmdlineTypeParser<Memory<Divisor>>::Result;
101 size_t val = ParseMemoryOption(arg.c_str(), Divisor);
106 + std::to_string(Divisor));
109 return Result::Success(Memory<Divisor>(val));
117 // "div" specifies a divisor, e.g. 1024 if the value must be a multiple
178 static const char* Name() { return Memory<Divisor>::Name(); }
  /device/linaro/bootloader/edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/
ldivmod.asm 25 ; IN UINT32 Divisor

Completed in 222 milliseconds

1 23 4 5 6