/prebuilts/go/linux-x86/src/go/token/ |
position.go | 28 func (pos *Position) IsValid() bool { return pos.Line > 0 } 37 func (pos Position) String() string { 38 s := pos.Filename 39 if pos.IsValid() { 43 s += fmt.Sprintf("%d:%d", pos.Line, pos.Column) 51 // Pos is a compact encoding of a source position within a file set. 55 // The Pos value for a given file is a number in the range [base, base+size], 59 // To create the Pos value for a specific source offset (measured in bytes) [all...] |
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/ |
Ps2KbdCtrller.c | 609 UINTN Pos;
620 for (Index = 0, Pos = Queue->Head; Index < Count; Index++, Pos = (Pos + 1) % KEYBOARD_SCAN_CODE_MAX_COUNT) {
621 Buf[Index] = Queue->Buffer[Pos];
[all...] |
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/ |
BaseUefiTianoCustomDecompressLib.c | 267 UINT32 Pos;
290 Pos = Val;
292 Pos = (UINT32) ((1U << (Val - 1)) + GetBits (Sd, (UINT16) (Val - 1)));
295 return Pos;
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/ |
Ps2KbdCtrller.c | 609 UINTN Pos;
620 for (Index = 0, Pos = Queue->Head; Index < Count; Index++, Pos = (Pos + 1) % KEYBOARD_SCAN_CODE_MAX_COUNT) {
621 Buf[Index] = Queue->Buffer[Pos];
[all...] |
/device/linaro/bootloader/edk2/MdePkg/Library/UefiFileHandleLib/ |
UefiFileHandleLib.c | [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
DxeTpmMeasureBootLib.c | 322 UINTN Pos;
580 Pos = Index;
581 while ((Pos > 0) && (Section->PointerToRawData < SectionHeader[Pos - 1].PointerToRawData)) {
582 CopyMem (&SectionHeader[Pos], &SectionHeader[Pos - 1], sizeof(EFI_IMAGE_SECTION_HEADER));
583 Pos--;
585 CopyMem (&SectionHeader[Pos], Section, sizeof(EFI_IMAGE_SECTION_HEADER));
[all...] |
/external/clang/lib/Basic/ |
Module.cpp | 226 llvm::StringMap<unsigned>::const_iterator Pos = SubModuleIndex.find(Name); 227 if (Pos == SubModuleIndex.end()) 230 return SubModules[Pos->getValue()];
|
/external/clang/lib/Frontend/Rewrite/ |
InclusionRewriter.cpp | 220 const char *Pos = strchr(FromFile.getBufferStart(), '\n'); 221 if (!Pos) 223 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r') 225 if (Pos + 1 < FromFile.getBufferEnd() && Pos[1] == '\r')
|
/external/clang/lib/Lex/ |
PreprocessingRecord.cpp | 91 int Pos = std::distance(iterator(this, 0), PPEI); 92 if (Pos < 0) { 93 if (unsigned(-Pos-1) >= LoadedPreprocessedEntities.size()) { 98 unsigned LoadedIndex = LoadedPreprocessedEntities.size()+Pos; 116 if (unsigned(Pos) >= PreprocessedEntities.size()) { 120 return isPreprocessedEntityIfInFileID(PreprocessedEntities[Pos], 361 llvm::DenseMap<const MacroInfo *, MacroDefinitionRecord *>::iterator Pos = 363 if (Pos == MacroDefinitions.end()) 366 return Pos->second;
|
/external/llvm/include/llvm/Support/ |
raw_ostream.h | 328 uint64_t Pos = tell(); 329 // /dev/null always reports a pos of 0, so we cannot perform this check 331 if (Pos) 332 assert(Size + Offset <= Pos && "We don't support extending the stream"); 352 uint64_t pos; member in class:llvm::raw_fd_ostream 363 uint64_t current_pos() const override { return pos; }
|
/external/llvm/lib/CodeGen/ |
RenameIndependentSubregs.cpp | 189 SlotIndex Pos = LIS->getInstructionIndex(*MO.getParent()); 190 Pos = MO.isDef() ? Pos.getRegSlot(MO.isEarlyClobber()) 191 : Pos.getBaseIndex(); 192 const VNInfo *VNI = SR.getVNInfoAt(Pos); 224 SlotIndex Pos = LIS->getInstructionIndex(MI); 233 LiveRange::const_iterator I = SR.find(Pos); 279 static bool subRangeLiveAt(const LiveInterval &LI, SlotIndex Pos) { 281 if (SR.liveAt(Pos)) 343 SlotIndex Pos = LIS->getInstructionIndex(*MO.getParent()) [all...] |
/external/llvm/lib/Fuzzer/ |
FuzzerUtil.cpp | 192 for (size_t Pos = L; Pos <= R; Pos++) { 193 uint8_t V = (uint8_t)Str[Pos]; 197 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) { 198 U->push_back(Str[Pos + 1]); 199 Pos++; 203 if (Pos + 3 <= R && Str[Pos + 1] == 'x [all...] |
/external/llvm/lib/MC/ |
ELFObjectWriter.cpp | 402 size_t Pos = AliasName.find('@'); 403 if (Pos == StringRef::npos) 411 StringRef Rest = AliasName.substr(Pos); 864 size_t Pos = Name.find("@@@"); 865 if (Pos != StringRef::npos) { 866 Buf += Name.substr(0, Pos); 868 Buf += Name.substr(Pos + Skip); [all...] |
/external/llvm/lib/Object/ |
ArchiveWriter.cpp | 224 int Pos = Out.tell(); 226 printWithSpacePadding(Out, Pos - StartOffset, 10); 227 Out.seek(Pos); 305 unsigned Pos = Out.tell(); 308 printWithSpacePadding(Out, Pos - MemberHeaderSize - HeaderStartOffset, 10); 318 Out.seek(Pos); 367 unsigned Pos = Out.tell(); 368 MemberOffset.push_back(Pos);
|
/external/llvm/lib/Support/ |
FoldingSet.cpp | 93 unsigned Pos = 0; 99 Pos = (Units + 1) * 4; 107 for (Pos += 4; Pos <= Size; Pos += 4) { 108 unsigned V = ((unsigned char)String[Pos - 4] << 24) | 109 ((unsigned char)String[Pos - 3] << 16) | 110 ((unsigned char)String[Pos - 2] << 8) | 111 (unsigned char)String[Pos - 1]; 115 for (Pos += 4; Pos <= Size; Pos += 4) [all...] |
/external/llvm/lib/Target/AMDGPU/ |
R600OptimizeVectorRegisters.cpp | 183 MachineBasicBlock::iterator Pos = RSI->Instr; 184 MachineBasicBlock &MBB = *Pos->getParent(); 185 DebugLoc DL = Pos->getDebugLoc(); 197 MachineInstr *Tmp = BuildMI(MBB, Pos, DL, TII->get(AMDGPU::INSERT_SUBREG), 215 BuildMI(MBB, Pos, DL, TII->get(AMDGPU::COPY), Reg).addReg(SrcVec);
|
/external/llvm/lib/Target/ARM/ |
Thumb2ITBlockPass.cpp | 214 unsigned Mask = 0, Pos = 3; 221 for (; MBBI != E && Pos && 232 Mask |= (NCC & 1) << Pos; 250 --Pos; 255 Mask |= (1 << Pos);
|
/external/llvm/lib/Target/Hexagon/ |
BitTracker.h | 77 // Abstraction of a reference to bit at position Pos from a register Reg. 79 BitRef(unsigned R = 0, uint16_t P = 0) : Reg(R), Pos(P) {} 81 // If Reg is 0, disregard Pos. 82 return Reg == BR.Reg && (Reg == 0 || Pos == BR.Pos); 85 uint16_t Pos; 129 // number is 0. In such case the Pos field of the reference is ignored. 133 // one in which V will be contained. If the RefI.Pos refers to the posi- 146 BitValue(unsigned Reg, uint16_t Pos) : Type(Ref), RefI(Reg, Pos) {} [all...] |
/external/llvm/lib/Target/Mips/ |
MipsLongBranch.cpp | 256 MachineBasicBlock::iterator Pos; 296 Pos = LongBrMBB->begin(); 298 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) 300 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA) 319 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT) 321 MIBundleBuilder(*LongBrMBB, Pos) 328 Pos = BalTgtMBB->begin(); 330 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT) 332 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA) 337 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP [all...] |
/external/llvm/lib/Target/NVPTX/ |
NVPTXInferAddressSpaces.cpp | 466 auto Pos = InferredAddrSpace->find(User); 469 if (Pos == InferredAddrSpace->end()) 475 if (Pos->second == AddressSpace::ADDRESS_SPACE_GENERIC)
|
/external/llvm/lib/Target/X86/ |
X86OptimizeLEAs.cpp | 445 unsigned Pos = 0; 452 InstrPos[&MI] = Pos += 2;
|
/external/llvm/lib/Transforms/Scalar/ |
NaryReassociate.cpp | 526 auto Pos = SeenExprs.find(CandidateExpr); 527 if (Pos == SeenExprs.end()) 530 auto &Candidates = Pos->second;
|
/external/llvm/tools/dsymutil/ |
MachOUtils.cpp | 512 uint64_t Pos = OutFile.tell(); 513 Writer.WriteZeros(alignTo(Pos, Sec.getAlignment()) - Pos);
|
/external/lzma/CPP/7zip/Archive/7z/ |
7zDecode.cpp | 123 UInt64 Pos;
159 if (_pos != _glob->Pos)
162 _glob->Pos = _pos;
168 _glob->Pos = _pos;
201 if (_pos != _glob->Pos)
204 _glob->Pos = _pos;
210 _glob->Pos = _pos;
470 // lockedInStream.Pos = (UInt64)(Int64)-1;
471 // RINOK(inStream->Seek(0, STREAM_SEEK_CUR, &lockedInStream.Pos));
472 RINOK(inStream->Seek(startPos + packPositions[0], STREAM_SEEK_SET, &lockedInStreamSpec->Pos));
[all...] |
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
LzmaBench.cs | 64 UInt32 Pos;
75 Pos = 0;
96 while (Pos < BufferSize)
98 if (GetRndBit() == 0 || Pos < 1)
99 Buffer[Pos++] = (Byte)RG.GetRnd(8);
109 while (Rep0 >= Pos);
113 for (UInt32 i = 0; i < len && Pos < BufferSize; i++, Pos++)
114 Buffer[Pos] = Buffer[Pos - Rep0]; [all...] |