HomeSort by relevance Sort by last modified time
    Searched refs:Bits (Results 1 - 25 of 549) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/src/utils/
SkFloatUtils.h 57 /** Bits is a unsigned integer the same size as the floating point number. */
58 typedef typename SkTypeWithSize<sizeof(RawType) * CHAR_BIT>::UInt Bits;
60 /** # of bits in a number. */
63 /** # of fraction bits in a number. */
66 /** # of exponent bits in a number. */
70 static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1);
72 /** The mask for the fraction bits. */
73 static const Bits kFractionBitMask =
74 ~static_cast<Bits>(0) >> (kExponentBitCount + 1)
129 Bits bits; member in union:SkFloatingPoint::FloatingPointUnion
    [all...]
  /prebuilts/go/darwin-x86/src/math/big/
bits_test.go 5 // This file implements the Bits type used for testing Float operations
17 // A Bits value b represents a finite floating-point number x of the form
22 // used to form fractions. A Bits value is normalized if each b[i] occurs at
23 // most once. For instance Bits{0, 0, 1} is not normalized but represents the
24 // same floating-point number as Bits{2}, which is normalized. The zero (nil)
25 // value of Bits is a ready to use Bits value and represents the value 0.
26 type Bits []int
28 func (x Bits) add(y Bits) Bits
    [all...]
  /prebuilts/go/linux-x86/src/math/big/
bits_test.go 5 // This file implements the Bits type used for testing Float operations
17 // A Bits value b represents a finite floating-point number x of the form
22 // used to form fractions. A Bits value is normalized if each b[i] occurs at
23 // most once. For instance Bits{0, 0, 1} is not normalized but represents the
24 // same floating-point number as Bits{2}, which is normalized. The zero (nil)
25 // value of Bits is a ready to use Bits value and represents the value 0.
26 type Bits []int
28 func (x Bits) add(y Bits) Bits
    [all...]
  /prebuilts/go/darwin-x86/src/go/internal/gccgoimporter/testdata/
conversions.go 5 const Bits = Units("bits")
  /prebuilts/go/linux-x86/src/go/internal/gccgoimporter/testdata/
conversions.go 5 const Bits = Units("bits")
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
PackedVector.h 30 static T getValue(const llvm::BitVector &Bits, unsigned Idx) {
33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
37 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) {
40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i);
47 static T getValue(const llvm::BitVector &Bits, unsigned Idx) {
50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
51 if (Bits[(Idx << (BitNum-1)) + BitNum-1])
56 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) {
59 Bits.set((Idx << (BitNum-1)) + BitNum-1);
63 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i)
    [all...]
BitVector.h 31 BitWord *Bits; // Actual bits.
32 unsigned Size; // Size of bitvector in bits.
47 WordRef = &b.Bits[Idx / BITWORD_SIZE];
74 Bits = 0;
77 /// BitVector ctor - Creates a bitvector of specified number of bits. All
78 /// bits are initialized to the specified value.
81 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
82 init_words(Bits, Capacity, t);
90 Bits = 0
    [all...]
  /dalvik/dx/junit-tests/com/android/dx/util/
BitsTest.java 23 assertEquals(label(0), 0, Bits.makeBitSet(0).length);
26 assertEquals(label(i), 1, Bits.makeBitSet(i).length);
30 assertEquals(label(i), 2, Bits.makeBitSet(i).length);
38 assertEquals(label(i), expect, Bits.makeBitSet(i).length);
49 Bits.getMax(new int[expect]));
54 int[] bits = Bits.makeBitSet(100); local
57 assertFalse(label(i), Bits.get(bits, i));
62 int[] bits = Bits.makeBitSet(100) local
73 int[] bits = Bits.makeBitSet(100); local
86 int[] bits = Bits.makeBitSet(50); local
103 int[] bits = Bits.makeBitSet(100); local
131 int[] bits = Bits.makeBitSet(100); local
146 int[] bits = Bits.makeBitSet(100); local
171 int[] bits = Bits.makeBitSet(i); local
190 int[] bits = Bits.makeBitSet(i); local
213 int[] bits = new int[100]; local
221 int[] bits = new int[100]; local
229 int[] bits = new int[100]; local
237 int[] bits = new int[100]; local
248 int[] bits = new int[100]; local
259 int[] bits = new int[100]; local
270 int[] bits = new int[100]; local
278 int[] bits = new int[100]; local
289 int[] bits = new int[100]; local
    [all...]
  /art/compiler/utils/arm/
constants_arm.h 42 // 4 bits option for the dmb instruction.
229 // bits.
249 // Get the raw instruction bits.
254 // Set the raw instruction bits to value.
259 // Read one particular bit out of the instruction bits.
264 // Read a bit field out of the instruction bits.
265 int Bits(int shift, int count) const {
274 return static_cast<Condition>(Bits(kConditionShift, kConditionBits));
276 int TypeField() const { return Bits(kTypeShift, kTypeBits); }
279 Bits(kRnShift, kRnBits));
    [all...]
  /external/elfutils/libelf/
gelf_xlate.c 61 bit. We need only functions for 16, 32, and 64 bits. The
67 #define FETCH(Bits, ptr) (*(const uint##Bits##_t *) ptr)
68 #define STORE(Bits, ptr, val) (*(uint##Bits##_t *) ptr = val)
79 #define FETCH(Bits, ptr) (((const union unaligned *) ptr)->u##Bits)
80 #define STORE(Bits, ptr, val) (((union unaligned *) ptr)->u##Bits = val)
90 #define FUNDAMENTAL(NAME, Name, Bits) \
    [all...]
  /external/llvm/include/llvm/ADT/
PackedVector.h 30 static T getValue(const BitVectorTy &Bits, unsigned Idx) {
33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
37 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) {
40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i);
47 static T getValue(const BitVectorTy &Bits, unsigned Idx) {
50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
51 if (Bits[(Idx << (BitNum-1)) + BitNum-1])
56 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) {
59 Bits.set((Idx << (BitNum-1)) + BitNum-1);
63 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i)
    [all...]
PointerEmbeddedInt.h 21 /// intended to allow embedding integers where fewer bits are required than
30 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT>
36 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
37 "Cannot embed more bits than we have in a pointer!");
41 // number of bits desired for the integer.
42 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
44 // We also want to be able to mask out the preserved bits for asserts.
45 Mask = static_cast<uintptr_t>(-1) << Bits
64 assert((std::is_signed<IntT>::value ? llvm::isInt<Bits>(I)
65 : llvm::isUInt<Bits>(I)) &
    [all...]
  /external/llvm/lib/Target/AArch64/Utils/
AArch64BaseInfo.cpp 94 uint32_t Bits;
100 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2;
102 return Bits;
105 std::string AArch64SysReg::genericRegisterString(uint32_t Bits) {
106 assert(Bits < 0x10000);
107 uint32_t Op0 = (Bits >> 14) & 0x3;
108 uint32_t Op1 = (Bits >> 11) & 0x7;
109 uint32_t CRn = (Bits >> 7) & 0xf;
110 uint32_t CRm = (Bits >> 3) & 0xf;
111 uint32_t Op2 = Bits & 0x7
    [all...]
  /dalvik/dexgen/src/com/android/dexgen/util/
BitIntSet.java 27 int[] bits; field in class:BitIntSet
35 bits = Bits.makeBitSet(max);
41 Bits.set(bits, value, true);
50 if (value >= Bits.getMax(bits)) {
51 int[] newBits = Bits.makeBitSet(
52 Math.max(value + 1, 2 * Bits.getMax(bits)));
    [all...]
  /dalvik/dx/src/com/android/dx/util/
BitIntSet.java 27 int[] bits; field in class:BitIntSet
35 bits = Bits.makeBitSet(max);
41 Bits.set(bits, value, true);
50 if (value >= Bits.getMax(bits)) {
51 int[] newBits = Bits.makeBitSet(
52 Math.max(value + 1, 2 * Bits.getMax(bits)));
    [all...]
  /device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseXApicLib/
BaseXApicLib.c 82 return (UINTN)(LShiftU64 ((UINT64) ApicBaseMsr.Bits.ApicBaseHigh, 32)) +
83 (((UINTN)ApicBaseMsr.Bits.ApicBaseLow) << 12);
113 ApicBaseMsr.Bits.ApicBaseLow = (UINT32) (BaseAddress >> 12);
114 ApicBaseMsr.Bits.ApicBaseHigh = (UINT32) (RShiftU64((UINT64) BaseAddress, 32));
195 // Save existing contents of ICR high 32 bits
205 } while (IcrLowReg.Bits.DeliveryStatus != 0);
218 } while (IcrLowReg.Bits.DeliveryStatus != 0);
259 ASSERT (ApicBaseMsr.Bits.En != 0);
260 ASSERT (ApicBaseMsr.Bits.Extd == 0);
386 IcrLow.Bits.DeliveryMode = LOCAL_APIC_DELIVERY_MODE_FIXED;
    [all...]
  /device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/
ArchDebugSupport.c 50 IdtEntry[Index].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler;
51 IdtEntry[Index].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16);
52 IdtEntry[Index].Bits.Selector = CodeSegment;
53 IdtEntry[Index].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32;
57 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler;
58 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16);
59 IdtEntry[DEBUG_TIMER_VECTOR].Bits.Selector = CodeSegment;
60 IdtEntry[DEBUG_TIMER_VECTOR].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32;
91 return (VOID *) (((UINTN)IdtEntry[ExceptionNum].Bits.OffsetLow) |
92 (((UINTN)IdtEntry[ExceptionNum].Bits.OffsetHigh) << 16));
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/
X86GetInterruptState.c 44 return (BOOLEAN)(EFlags.Bits.IF == 1);
  /device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/
X86GetInterruptState.c 38 return (BOOLEAN)(1 == EFlags.Bits.IF);
  /device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/
ArchDebugSupport.c 50 IdtEntry[Index].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler;
51 IdtEntry[Index].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16);
52 IdtEntry[Index].Bits.OffsetUpper = (UINT32)((UINTN)InterruptHandler >> 32);
53 IdtEntry[Index].Bits.Selector = CodeSegment;
54 IdtEntry[Index].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32;
58 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler;
59 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16);
60 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetUpper = (UINT32)((UINTN)InterruptHandler >> 32);
61 IdtEntry[DEBUG_TIMER_VECTOR].Bits.Selector = CodeSegment;
62 IdtEntry[DEBUG_TIMER_VECTOR].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32;
    [all...]
  /device/linaro/bootloader/edk2/ArmPkg/Include/Chipset/
ArmCortexA5x.h 41 IN UINT64 Bits
47 IN UINT64 Bits
  /device/linaro/bootloader/edk2/ArmPkg/Library/ArmLib/Common/
ArmLib.c 27 IN UINT32 Bits
31 val |= Bits;
38 IN UINT32 Bits
42 val &= ~Bits;
53 IN UINTN Bits
58 Value |= Bits;
65 IN UINTN Bits
70 Value &= ~Bits;
  /device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/X64/
IntHandlerFuncs.c 41 InterruptHandler = IdtEntry[InterruptType].Bits.OffsetLow +
42 (((UINTN)IdtEntry[InterruptType].Bits.OffsetHigh) << 16) +
43 (((UINTN)IdtEntry[InterruptType].Bits.OffsetUpper) << 32);
77 IdtEntry[1].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler;
78 IdtEntry[1].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16);
79 IdtEntry[1].Bits.OffsetUpper = (UINT32)((UINTN)InterruptHandler >> 32);
80 IdtEntry[1].Bits.Selector = CodeSegment;
81 IdtEntry[1].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32;
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/IA32/
SetIdtEntry.c 54 IdtEntry->Bits.OffsetLow = (UINT16)S3DebugBuffer;
55 IdtEntry->Bits.Selector = (UINT16)AsmReadCs ();
56 IdtEntry->Bits.Reserved_0 = 0;
57 IdtEntry->Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32;
58 IdtEntry->Bits.OffsetHigh = (UINT16)(S3DebugBuffer >> 16);
  /external/clang/lib/Basic/
LangOptions.cpp 19 #define LANGOPT(Name, Bits, Default, Description) Name = Default;
20 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) set##Name(Default);
25 #define LANGOPT(Name, Bits, Default, Description)
26 #define BENIGN_LANGOPT(Name, Bits, Default, Description) Name = Default;
27 #define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) \

Completed in 991 milliseconds

1 2 3 4 5 6 7 8 91011>>