/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | FormatTokenSource.h | 27 // Enables traversal of a token stream, resetting the position in a token 39 // Must not be called directly at the position directly after insertTokens() 52 // Gets the current position in the token stream, to be used by setPosition(). 54 // Note that the value of the position is not meaningful, and specifically 59 // Position, and return the token at that position in the stream. 60 virtual FormatToken *setPosition(unsigned Position) = 0; 62 // Insert the given tokens before the current position. 89 : Tokens(Tokens), Position(-1) {} in IndexedTokenSource() 92 if (Position >= 0 && isEOF()) { in getNextToken() 95 dbgToken(Position); in getNextToken() [all …]
|
/freebsd/contrib/less/ |
H A D | position.c | 12 * Routines dealing with the "position" table. 13 * This is a table which tells the position (in the input file) of the 16 * {{ The position table is scrolled by moving all the entries. 22 #include "position.h" 24 static POSITION *table = NULL; /* The position table */ 31 * Return the starting file position of a line displayed on the screen. 39 public POSITION position(int sindex) in position() function 57 * Add a new file position to the bottom of the position table. 59 public void add_forw_pos(POSITION pos) in add_forw_pos() 64 * Scroll the position table up. in add_forw_pos() [all …]
|
H A D | funcs.h | 46 public int ch_seek(POSITION pos); 50 public POSITION ch_length(void); 51 public POSITION ch_tell(void); 150 public POSITION filesize(int f); 159 public void forw(int n, POSITION pos, int force, int only_last, int nblank); 160 public void back(int n, POSITION pos, int force, int only_last); 187 public POSITION forw_line_seg(POSITION curr_pos, int skipeol, int rscroll, int nochop); 188 public POSITION forw_line(POSITION curr_pos); 189 public POSITION back_line(POSITION curr_pos); 190 public void set_attnpos(POSITION pos); [all …]
|
H A D | jump.c | 16 #include "position.h" 30 POSITION pos; in jump_forw() 31 POSITION end_pos; in jump_forw() 39 if (position(sc_height-1) == end_pos) in jump_forw() 46 * because the position table has been cleared by pos_clear below. in jump_forw() 51 * Position the last line in the file at the last screen line. in jump_forw() 62 if (position(sc_height-1) != end_pos) in jump_forw() 72 POSITION end; in jump_forw_buffered() 89 POSITION pos; in jump_back() 93 * Find the position of the specified line. in jump_back() [all …]
|
H A D | input.c | 29 extern POSITION start_attnpos; 30 extern POSITION end_attnpos; 39 * base Position of first char in line. 46 static void init_status_col(POSITION base_pos, POSITION disp_pos, POSITION edisp_pos, POSITION eol_… in init_status_col() 78 * A "current" position is passed and a "new" position is returned. 79 * The current position is the position of the first character of 80 * a line. The new position is the position of the first character 83 public POSITION forw_line_seg(POSITION curr_pos, int skipeol, int rscroll, int nochop) in forw_line_seg() 85 POSITION base_pos; in forw_line_seg() 86 POSITION new_pos; in forw_line_seg() [all …]
|
H A D | search.c | 16 #include "position.h" 34 extern POSITION start_attnpos; 35 extern POSITION end_attnpos; 50 static POSITION prep_startpos; 51 static POSITION prep_endpos; 52 extern POSITION xxpos; 72 POSITION hl_startpos; 73 POSITION hl_endpos; 248 POSITION pos; in repaint_hilite() 271 pos = position(sindex); in repaint_hilite() [all …]
|
H A D | forwback.c | 17 #include "position.h" 74 POSITION pos; in eof_displayed() 91 pos = position(BOTTOM_PLUS_ONE); in eof_displayed() 100 POSITION pos; in entire_file_displayed() 107 pos = position(0); in entire_file_displayed() 129 static POSITION forw_line_pfx(POSITION pos, int pfx, int skipeol) in forw_line_pfx() 153 if (ln+1 == header_lines && position(0) != ch_zero()) in set_attr_header() 163 POSITION pos = ch_zero(); /* header lines are at beginning of file */ in overlay_header() 188 pos = position(ln); in overlay_header() 208 * starting at position pos in the input file. [all …]
|
H A D | linenum.c | 14 * Finding the line number of a given file position is rather tricky. 30 * position in the file. As a side effect, it calls add_lnum 38 * Structure to keep track of a line number and the associated file position. 45 POSITION pos; /* File position */ 46 POSITION gap; /* Gap between prev and next */ 52 * ("Distance" means difference in file position.) In other words, the 98 anchor.pos = (POSITION)0; in clr_linenum() 120 * The specified position (pos) should be the file position of the 123 public void add_lnum(LINENUM linenum, POSITION pos) in add_lnum() 129 POSITION mingap; in add_lnum() [all …]
|
/freebsd/sys/contrib/ck/include/spinlock/ |
H A D | anderson.h | 43 unsigned int position; member 65 slots[0].position = 0; in ck_spinlock_anderson_init() 68 slots[i].position = i; in ck_spinlock_anderson_init() 93 unsigned int position; in ck_spinlock_anderson_locked() local 96 position = ck_pr_load_uint(&lock->next) & lock->mask; in ck_spinlock_anderson_locked() 97 r = ck_pr_load_uint(&lock->slots[position].locked); in ck_spinlock_anderson_locked() 106 unsigned int position, next; in ck_spinlock_anderson_lock() local 115 position = ck_pr_load_uint(&lock->next); in ck_spinlock_anderson_lock() 118 if (position == UINT_MAX) in ck_spinlock_anderson_lock() 121 next = position + 1; in ck_spinlock_anderson_lock() [all …]
|
H A D | ticket.h | 89 CK_SPINLOCK_TICKET_TYPE request, position; in ck_spinlock_ticket_locked() local 92 position = request & CK_SPINLOCK_TICKET_MASK; in ck_spinlock_ticket_locked() 96 return request != position; in ck_spinlock_ticket_locked() 102 CK_SPINLOCK_TICKET_TYPE request, position; in ck_spinlock_ticket_lock() local 108 position = request & CK_SPINLOCK_TICKET_MASK; in ck_spinlock_ticket_lock() 111 while (request != position) { in ck_spinlock_ticket_lock() 113 position = CK_SPINLOCK_TICKET_LOAD(&ticket->value) & in ck_spinlock_ticket_lock() 124 CK_SPINLOCK_TICKET_TYPE request, position; in ck_spinlock_ticket_lock_pb() local 131 position = request & CK_SPINLOCK_TICKET_MASK; in ck_spinlock_ticket_lock_pb() 134 while (request != position) { in ck_spinlock_ticket_lock_pb() [all …]
|
/freebsd/contrib/unbound/sldns/ |
H A D | sbuffer.h | 113 * to the current end of a buffer, read from the current position, and 118 /** The current position used for reading/writing */ 186 * is set to the capacity and the position is set to 0. 201 * the buffer. The buffer's limit is set to the current position and 202 * the position is set to 0. 216 * position is reset to 0. 227 * returns the current position in the buffer (as a number of bytes) 229 * \return the current position 238 * sets the buffer's position to MARK. The position must be less than 251 * changes the buffer's position by COUNT bytes. The position must not [all …]
|
/freebsd/contrib/ldns/ldns/ |
H A D | buffer.h | 45 * to the current end of a buffer, read from the current position, and 52 /** The current position used for reading/writing */ 112 * is set to the capacity and the position is set to 0. 127 * the buffer. The buffer's limit is set to the current position and 128 * the position is set to 0. 143 * position is reset to 0. 154 * returns the current position in the buffer (as a number of bytes) 156 * \return the current position 165 * sets the buffer's position to MARK. The position must be less than 178 * changes the buffer's position by COUNT bytes. The position must not [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | argon2-core.h | 110 * Argon2 position: where we construct the block right now. Used to distribute 130 * Computes absolute position of reference block in the lane following a skewed 133 * @param position Pointer to the current position 134 * @param pseudo_rand 32-bit pseudo-random value used to determine the position 140 const argon2_position_t *position, uint32_t pseudo_rand, in index_alpha() argument 157 if (position->pass == 0) { in index_alpha() 159 if (position->slice == 0) { in index_alpha() 162 position->index - 1; /* all but the previous */ in index_alpha() 167 position->slice * instance->segment_length + in index_alpha() 168 position->index - 1; in index_alpha() [all …]
|
H A D | argon2-fill-block-ref.c | 107 * @param position Pointer to the current position 113 const argon2_position_t *position, uint64_t *pseudo_rands) in generate_addresses() argument 121 if (instance != NULL && position != NULL) { in generate_addresses() 122 input_block.v[0] = position->pass; in generate_addresses() 123 input_block.v[1] = position->lane; in generate_addresses() 124 input_block.v[2] = position->slice; in generate_addresses() 144 fill_segment_ref(const argon2_instance_t *instance, argon2_position_t position) in fill_segment_ref() argument 147 /* Pseudo-random values that determine the reference block position */ in fill_segment_ref() 160 (position.pass != 0 || position.slice >= ARGON2_SYNC_POINTS / 2)) { in fill_segment_ref() 167 generate_addresses(instance, &position, pseudo_rands); in fill_segment_ref() [all …]
|
H A D | argon2-fill-block-avx2.c | 102 const argon2_position_t *position, uint64_t *pseudo_rands) in generate_addresses() argument 110 if (instance != NULL && position != NULL) { in generate_addresses() 111 input_block.v[0] = position->pass; in generate_addresses() 112 input_block.v[1] = position->lane; in generate_addresses() 113 input_block.v[2] = position->slice; in generate_addresses() 145 argon2_position_t position) in fill_segment_avx2() argument 154 /* Pseudo-random values that determine the reference block position */ in fill_segment_avx2() 162 (position.pass != 0 || position.slice >= ARGON2_SYNC_POINTS / 2)) { in fill_segment_avx2() 169 generate_addresses(instance, &position, pseudo_rands); in fill_segment_avx2() 174 if ((0 == position.pass) && (0 == position.slice)) { in fill_segment_avx2() [all …]
|
H A D | argon2-fill-block-avx512f.c | 107 const argon2_position_t *position, uint64_t *pseudo_rands) in generate_addresses() argument 115 if (instance != NULL && position != NULL) { in generate_addresses() 116 input_block.v[0] = position->pass; in generate_addresses() 117 input_block.v[1] = position->lane; in generate_addresses() 118 input_block.v[2] = position->slice; in generate_addresses() 150 argon2_position_t position) in fill_segment_avx512f() argument 159 /* Pseudo-random values that determine the reference block position */ in fill_segment_avx512f() 167 (position.pass != 0 || position.slice >= ARGON2_SYNC_POINTS / 2)) { in fill_segment_avx512f() 174 generate_addresses(instance, &position, pseudo_rands); in fill_segment_avx512f() 179 if ((0 == position.pass) && (0 == position.slice)) { in fill_segment_avx512f() [all …]
|
H A D | argon2-fill-block-ssse3.c | 101 const argon2_position_t *position, uint64_t *pseudo_rands) in generate_addresses() argument 109 if (instance != NULL && position != NULL) { in generate_addresses() 110 input_block.v[0] = position->pass; in generate_addresses() 111 input_block.v[1] = position->lane; in generate_addresses() 112 input_block.v[2] = position->slice; in generate_addresses() 144 argon2_position_t position) in fill_segment_ssse3() argument 153 /* Pseudo-random values that determine the reference block position */ in fill_segment_ssse3() 161 (position.pass != 0 || position.slice >= ARGON2_SYNC_POINTS / 2)) { in fill_segment_ssse3() 168 generate_addresses(instance, &position, pseudo_rands); in fill_segment_ssse3() 173 if ((0 == position.pass) && (0 == position.slice)) { in fill_segment_ssse3() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZLongBranch.cpp | 121 // Used to keep track of the current position while iterating over the blocks. 123 // The address that we assume this position has. 150 void skipNonTerminators(BlockPosition &Position, MBBInfo &Block); 151 void skipTerminator(BlockPosition &Position, TerminatorInfo &Terminator, 179 // Position describes the state immediately before Block. Update Block 180 // accordingly and move Position to the end of the block's non-terminator 182 void SystemZLongBranch::skipNonTerminators(BlockPosition &Position, in skipNonTerminators() argument 184 if (Log2(Block.Alignment) > Position.KnownBits) { in skipNonTerminators() 187 Position.Address += in skipNonTerminators() 188 (Block.Alignment.value() - (uint64_t(1) << Position.KnownBits)); in skipNonTerminators() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
H A D | FileWriter.h | 38 /// position. 44 /// position. The value will be byte swapped if needed to match the byte 51 /// position. The value will be byte swapped if needed to match the byte 58 /// position. The value will be byte swapped if needed to match the byte 65 /// current file position. 71 /// current file position. 77 /// position. 83 /// position. The entire contents of Str will be written into the steam at 84 /// the current file position and then an extra NULL termation byte will be 92 /// function will save the current file position, see [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | YAMLParser.cpp | 197 StringRef::iterator Position= Range.begin(); in decodeUTF8() local 201 if (Position < End && (*Position & 0x80) == 0) { in decodeUTF8() 202 return std::make_pair(*Position, 1); in decodeUTF8() 206 if (Position + 1 < End && ((*Position & 0xE0) == 0xC0) && in decodeUTF8() 207 ((*(Position + 1) & 0xC0) == 0x80)) { in decodeUTF8() 208 uint32_t codepoint = ((*Position & 0x1F) << 6) | in decodeUTF8() 209 (*(Position + 1) & 0x3F); in decodeUTF8() 215 if (Position in decodeUTF8() 266 setError(const Twine & Message,StringRef::iterator Position) setError() argument 299 decodeUTF8(StringRef::iterator Position) decodeUTF8() argument 918 skip_nb_char(StringRef::iterator Position) skip_nb_char() argument 943 skip_b_break(StringRef::iterator Position) skip_b_break() argument 957 skip_s_space(StringRef::iterator Position) skip_s_space() argument 965 skip_s_white(StringRef::iterator Position) skip_s_white() argument 973 skip_ns_char(StringRef::iterator Position) skip_ns_char() argument 982 skip_while(SkipWhileFunc Func,StringRef::iterator Position) skip_while() argument 1045 isBlankOrBreak(StringRef::iterator Position) isBlankOrBreak() argument 1053 for (const auto *Position = Line.begin(); Position != Line.end(); ++Position) isLineEmpty() local 1359 wasEscaped(StringRef::iterator First,StringRef::iterator Position) wasEscaped() argument [all...] |
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | FormatString.h | 41 void setPosition(const char *position) { in setPosition() argument 42 assert(position); in setPosition() 44 this->position = position; in setPosition() 47 assert(position); in getPosition() 48 return position; in getPosition() 60 const char *position; variable 89 : Position(nullptr), kind(None) {} in LengthModifier() 91 : Position(pos), kind(k) {} in LengthModifier() 94 return Position; in getStart() 118 const char *Position; [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/struct/ |
H A D | err.D_DECL_COMBO.StructWithoutColon.d | 41 int position; member 46 int position; variable 52 int position; member 63 rec.position = 1; 66 pir.position = 2; 69 "rec.content: %c\nrec.position: %d\npir.content: %c\npir.position: %d", 70 rec.content, rec.position, pir.content, pir.position);
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.index.d | 35 int position; member 92 command[i + k].position = -400; 98 command[i + k].position = -1; 104 command[i + k].position = 0; 110 command[i + k].position = strlen(command[j].str) / 2; 116 command[i + k].position = strlen(command[j].str); 122 command[i + k].position = strlen(command[j].str) + 1; 128 command[i + k].position = strlen(command[j].str) + 2; 134 command[i + k].position = 400; 187 command[i].substr, command[i].position); [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/union/ |
H A D | err.D_DECL_COMBO.UnionWithoutColon1.d | 41 int position; member 47 int position; member 57 rec.position = 1; 60 pir.position = 2; 63 "rec.content: %c\nrec.position: %d\npir.content: %c\npir.position: %d", 64 rec.content, rec.position, pir.content, pir.position);
|
H A D | err.D_DECL_COMBO.UnionWithoutColon.d | 41 int position; member 47 int position; variable 58 rec.position = 1; 61 pir.position = 2; 64 "rec.content: %c\nrec.position: %d\npir.content: %c\npir.position: %d", 65 rec.content, rec.position, pir.content, pir.position);
|