Home
last modified time | relevance | path

Searched refs:typ (Results 1 – 25 of 100) sorted by relevance

1234

/openbsd/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_access.cpp32 ev->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccess()
45 evex->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccess()
68 ev->is_read = !!(typ & kAccessRead); in TryTraceMemoryAccessRange()
69 ev->is_free = !!(typ & kAccessFree); in TryTraceMemoryAccessRange()
164 if (typ & kAccessSlotLocked) in DoReportRace()
167 if (typ & kAccessSlotLocked) in DoReportRace()
177 if (!(typ & kAccessRead)) { in ContainsSameAccess()
247 if (!(typ & kAccessRead)) { in ContainsSameAccess()
326 if (typ & kAccessCheckOnly) in CheckRaces()
395 AccessType typ; in DumpShadow() local
[all …]
H A Dtsan_shadow.h68 (!!(typ & kAccessRead) << kIsReadShift) | in Shadow()
72 DCHECK_EQ(part_.is_read_, !!(typ & kAccessRead)); in Shadow()
91 if (typ) { in GetAccess()
94 *typ |= kAccessAtomic; in GetAccess()
96 *typ |= kAccessFree; in GetAccess()
101 bool IsBothReadsOrAtomic(AccessType typ) const { in IsBothReadsOrAtomic() argument
102 u32 is_read = !!(typ & kAccessRead); in IsBothReadsOrAtomic()
103 u32 is_atomic = !!(typ & kAccessAtomic); in IsBothReadsOrAtomic()
112 bool IsRWWeakerOrEqual(AccessType typ) const { in IsRWWeakerOrEqual() argument
113 u32 is_read = !!(typ & kAccessRead); in IsRWWeakerOrEqual()
[all …]
H A Dtsan_suppressions.cpp67 static const char *conv(ReportType typ) { in conv() argument
68 switch (typ) { in conv()
106 uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp) { in IsSuppressed() argument
111 const char *stype = conv(typ); in IsSuppressed()
125 uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp) { in IsSuppressed() argument
130 const char *stype = conv(typ); in IsSuppressed()
H A Dtsan_rtl_report.cpp140 switch (typ) { in ShouldReport()
161 rep_->typ = typ; in ScopedReportBase()
181 AccessType typ; in AddMemoryAccess() local
182 s.GetAccess(&addr0, &size, &typ); in AddMemoryAccess()
188 mop->write = !(typ & kAccessRead); in AddMemoryAccess()
189 mop->atomic = typ & kAccessAtomic; in AddMemoryAccess()
347 : ScopedReportBase(typ, tag) {} in ScopedReport()
440 static_cast<int>(typ)); in RestoreStack()
481 bool is_read = typ & kAccessRead; in RestoreStack()
482 bool is_atomic = typ & kAccessAtomic; in RestoreStack()
[all …]
/openbsd/lib/libform/
H A Dfld_def.c91 if (typ != 0 && (typ->status & _HAS_ARGS) != 0) in _nc_Make_Argument()
94 if ((typ->status & _LINKED_TYPE) != 0) in _nc_Make_Argument()
111 assert(typ->makearg != (void *)0); in _nc_Make_Argument()
138 if (typ != 0 && (typ->status & _HAS_ARGS) != 0) in _nc_Copy_Argument()
141 if ((typ->status & _LINKED_TYPE) != 0) in _nc_Copy_Argument()
155 if (typ->copyarg != (void *)0) in _nc_Copy_Argument()
184 if (typ != 0 && (typ->status & _HAS_ARGS) != 0) in _nc_Free_Argument()
186 if ((typ->status & _LINKED_TYPE) != 0) in _nc_Free_Argument()
190 _nc_Free_Argument(typ->left, argp->left); in _nc_Free_Argument()
197 if (typ->freearg != (void *)0) in _nc_Free_Argument()
[all …]
H A Dfld_newftyp.c126 free_fieldtype(FIELDTYPE *typ) in free_fieldtype() argument
128 T((T_CALLED("free_fieldtype(%p)"), (void *)typ)); in free_fieldtype()
130 if (!typ) in free_fieldtype()
133 if (typ->ref != 0) in free_fieldtype()
136 if (typ->status & _RESIDENT) in free_fieldtype()
139 if (typ->status & _LINKED_TYPE) in free_fieldtype()
141 if (typ->left) in free_fieldtype()
142 typ->left->ref--; in free_fieldtype()
143 if (typ->right) in free_fieldtype()
144 typ->right->ref--; in free_fieldtype()
[all …]
H A Dfld_ftchoice.c52 set_fieldtype_choice(FIELDTYPE *typ, in FORM_EXPORT()
59 (void *)typ, in FORM_EXPORT()
63 if (!typ || !next_choice || !prev_choice) in FORM_EXPORT()
66 SetStatus(typ, _HAS_CHOICE); in FORM_EXPORT()
68 typ->enum_next.onext = next_choice; in FORM_EXPORT()
69 typ->enum_prev.oprev = prev_choice; in FORM_EXPORT()
71 typ->next = next_choice; in FORM_EXPORT()
72 typ->prev = prev_choice; in FORM_EXPORT()
H A Dfrm_hook.c40 #define GEN_HOOK_SET_FUNCTION( typ, name ) \ argument
41 FORM_IMPEXP int NCURSES_API set_ ## typ ## _ ## name (FORM *form, Form_Hook func)\
44 T((T_CALLED("set_" #typ"_"#name"(%p,%s)"), (void *) form, TR_FUNC_ARG(0, func)));\
45 (Normalize_Form( form ) -> typ ## name) = func ;\
50 #define GEN_HOOK_GET_FUNCTION( typ, name ) \ argument
51 FORM_IMPEXP Form_Hook NCURSES_API typ ## _ ## name ( const FORM *form )\
53 T((T_CALLED(#typ "_" #name "(%p)"), (const void *) form));\
54 returnFormHook( Normalize_Form( form ) -> typ ## name );\
H A Dfld_arg.c66 set_fieldtype_arg(FIELDTYPE *typ, in FORM_EXPORT()
74 (void *)typ, in FORM_EXPORT()
79 if (typ != 0 && make_arg != (void *)0) in FORM_EXPORT()
81 SetStatus(typ, _HAS_ARGS); in FORM_EXPORT()
82 typ->makearg = make_arg; in FORM_EXPORT()
83 typ->copyarg = copy_arg; in FORM_EXPORT()
84 typ->freearg = free_arg; in FORM_EXPORT()
H A Dfty_generic.c168 GenericArgument(const FIELDTYPE *typ, in GenericArgument() argument
173 if (typ != 0 && (typ->status & _HAS_ARGS) != 0 && err != 0 && argiterator != 0) in GenericArgument()
175 if (typ->status & _LINKED_TYPE) in GenericArgument()
182 p->left = GenericArgument(typ->left, argiterator, err); in GenericArgument()
183 p->right = GenericArgument(typ->right, argiterator, err); in GenericArgument()
191 assert(typ->genericarg != (void *)0); in GenericArgument()
192 if (typ->genericarg == 0) in GenericArgument()
200 !(res = (TypeArgument *)typ->genericarg(argp))) in GenericArgument()
/openbsd/games/hack/
H A Ddef.rm.h83 #define IS_WALL(typ) ((typ) <= VWALL) argument
84 #define IS_ROCK(typ) ((typ) < POOL) /* absolutely nonaccessible */ argument
85 #define ACCESSIBLE(typ) ((typ) >= DOOR) /* good position */ argument
86 #define IS_ROOM(typ) ((typ) >= ROOM) /* ROOM or STAIRS */ argument
87 #define ZAP_POS(typ) ((typ) > DOOR) argument
108 unsigned typ:5; member
H A Dhack.vault.c130 if(!crm->typ) crm->seen = 0; in restfakecorr()
196 while(levl[x][y].typ == ROOM) { in invault()
245 levl[x][y].typ = DOOR; in invault()
253 int x,y,dx,dy,gx,gy,nx,ny,typ; in gd_move() local
273 if(!IS_WALL(typ = (crm = &levl[nx][ny])->typ) && typ != POOL) { in gd_move()
284 crm->typ = (typ == SCORR) ? CORR : DOOR; in gd_move()
297 while((typ = (crm = &levl[nx][ny])->typ) != 0) { in gd_move()
302 crm->typ = DOOR; in gd_move()
314 crm->typ = DOOR; in gd_move()
317 crm->typ = CORR; in gd_move()
[all …]
H A Dhack.mklev.c374 if(levl[x][y].typ == DOOR || levl[x][y].typ == SDOOR) in finddpos()
389 if(levl[x-1][y].typ == DOOR || levl[x+1][y].typ == DOOR || in okdoor()
390 levl[x][y+1].typ == DOOR || levl[x][y-1].typ == DOOR || in okdoor()
391 levl[x-1][y].typ == SDOOR || levl[x+1][y].typ == SDOOR || in okdoor()
393 (levl[x][y].typ != HWALL && levl[x][y].typ != VWALL) || in okdoor()
612 if(crm->typ != CORR && crm->typ != SCORR) { in join()
626 if(!crm->typ || crm->typ == CORR || crm->typ == SCORR) { in join()
635 if(!crm->typ || crm->typ == CORR || crm->typ == SCORR) { in join()
644 if(!crm->typ || crm->typ == CORR || crm->typ == SCORR) in join()
652 if(!crm->typ || crm->typ == CORR || crm->typ == SCORR) in join()
[all …]
H A Dhack.search.c77 for(lx = u.ux; (num = levl[lx-1][(int)u.uy].typ) && num != CORR; lx--) ; in findit()
78 for(hx = u.ux; (num = levl[hx+1][(int)u.uy].typ) && num != CORR; hx++) ; in findit()
79 for(ly = u.uy; (num = levl[(int)u.ux][ly-1].typ) && num != CORR; ly--) ; in findit()
84 if (levl[(int)zx][(int)zy].typ == SDOOR) { in findit()
85 levl[(int)zx][(int)zy].typ = DOOR; in findit()
88 } else if (levl[(int)zx][(int)zy].typ == SCORR) { in findit()
89 levl[(int)zx][(int)zy].typ = CORR; in findit()
123 if(levl[(int)x][(int)y].typ == SDOOR) { in dosearch()
125 levl[(int)x][(int)y].typ = DOOR; in dosearch()
129 } else if(levl[(int)x][(int)y].typ == SCORR) { in dosearch()
[all …]
H A Dhack.zap.c293 room->typ = ROOM; in dozap()
297 if(room->typ == HWALL || room->typ == VWALL || in dozap()
298 room->typ == SDOOR || room->typ == LDOOR){ in dozap()
299 room->typ = DOOR; in dozap()
302 if(room->typ == SCORR || !room->typ) { in dozap()
303 room->typ = CORR; in dozap()
375 int typ; in bhit() local
384 typ = levl[(int)bhitpos.x][(int)bhitpos.y].typ; in bhit()
398 if (!ZAP_POS(typ)) { in bhit()
523 lev->typ = ROOM; in buzz()
[all …]
H A Dhack.mkmaze.c85 levl[x][y].typ = (x%2 && y%2) ? 0 : HWALL; in makemaz()
92 levl[x][y].typ = in makemaz()
117 switch(levl[x][y].typ) { in makemaz()
148 levl[(int)xupstair][(int)yupstair].typ = STAIRS; in makemaz()
158 levl[x][y].typ = ROOM; in walkfrom()
166 levl[x][y].typ = ROOM; in walkfrom()
188 if(x<3 || y<3 || x>COLNO-3 || y>ROWNO-3 || levl[x][y].typ != 0) in okay()
H A Dhack.apply.c274 if(!ZAP_POS(levl[bchx][bchy].typ)) { in bchit()
364 } else if(!lev->typ || lev->typ == SCORR) { in dig()
365 lev->typ = CORR; in dig()
367 } else if(lev->typ == HWALL || lev->typ == VWALL in dig()
368 || lev->typ == SDOOR) { in dig()
369 lev->typ = xdnstair ? DOOR : ROOM; in dig()
378 if(IS_WALL(levl[dpx][dpy].typ)) { in dig()
451 (IS_ROCK(levl[rx][ry].typ) in use_pick_axe()
477 if(lev->typ == DOOR) in use_pick_axe()
480 else if(!IS_ROCK(lev->typ) in use_pick_axe()
H A Dhack.read.c399 if((num = lev->typ) == 0) in doread()
402 lev->typ = CORR; in doread()
406 lev->typ = DOOR; in doread()
518 levl[(int)u.ux][(int)u.uy].typ == CORR || in litroom()
537 if (levl[(int)u.ux][(int)u.uy].typ == CORR) { in litroom()
554 if (levl[(int)u.ux][(int)u.uy].typ == DOOR) { in litroom()
555 if (IS_ROOM(levl[(int)u.ux][(int)u.uy+1].typ)) in litroom()
557 else if(IS_ROOM(levl[(int)u.ux][u.uy-1].typ)) in litroom()
560 if(IS_ROOM(levl[u.ux+1][(int)u.uy].typ)) in litroom()
562 else if(IS_ROOM(levl[u.ux-1][(int)u.uy].typ)) in litroom()
[all …]
H A Dhack.c221 if(IS_ROCK(tmpr->typ) || in domove()
222 (u.dx && u.dy && (tmpr->typ == DOOR || ust->typ == DOOR))){ in domove()
252 if (levl[(int)rx][(int)ry].typ == POOL) { in domove()
253 levl[(int)rx][(int)ry].typ = ROOM; in domove()
324 if(tmpr->typ == DOOR || in domove()
330 if(tmpr->typ == POOL && !Levitation) in domove()
345 if(tmpr->typ == DOOR) in domove()
347 else if(ust->typ == DOOR) in domove()
357 if(tmpr->typ == DOOR) { in domove()
554 if(!levl[x][y].typ) continue; in lookaround()
[all …]
/openbsd/lib/libmenu/
H A Dm_hook.c46 #define GEN_HOOK_SET_FUNCTION( typ, name ) \ argument
47 MENU_EXPORT(int) NCURSES_API set_ ## typ ## _ ## name (MENU *menu, Menu_Hook func )\
50 T((T_CALLED("set_" #typ "_" #name "(%p,%s)"), (void *) menu, TR_FUNC_ARG(0, func)));\
51 (Normalize_Menu(menu) -> typ ## name = func );\
56 #define GEN_HOOK_GET_FUNCTION( typ, name ) \ argument
57 MENU_EXPORT(Menu_Hook) NCURSES_API typ ## _ ## name ( const MENU *menu )\
59 T((T_CALLED(#typ "_" #name "(%p)"), (const void *) menu));\
60 returnMenuHook(Normalize_Menu(menu) -> typ ## name);\
/openbsd/sys/kern/
H A Dsubr_kubsan.c35 #define NBITS(typ) (1 << ((typ)->t_info >> 1)) argument
36 #define SIGNED(typ) ((typ)->t_info & 1) argument
423 switch (NBITS(typ)) { in kubsan_deserialize_int()
439 switch (NBITS(typ)) { in kubsan_deserialize_uint()
478 switch (typ->t_kind) { in kubsan_format_int()
480 if (SIGNED(typ)) { in kubsan_format_int()
481 int64_t i = kubsan_deserialize_int(typ, val); in kubsan_format_int()
484 uint64_t u = kubsan_deserialize_uint(typ, val); in kubsan_format_int()
489 snprintf(buf, bufsiz, "%#x<NaN>", typ->t_kind); in kubsan_format_int()
765 return (SIGNED(typ) && kubsan_deserialize_int(typ, val) < 0); in is_negative()
[all …]
/openbsd/sbin/init/
H A Dinit.c498 struct ttyent *typ; in f_single_user() local
528 typ = getttynam("console"); in f_single_user()
530 if (typ && (typ->ty_status & TTY_SECURE) == 0 && pp && in f_single_user()
841 typ->ty_name == 0 || in new_session()
842 typ->ty_getty == 0) in new_session()
882 if (asprintf(&sp->se_getty, "%s %s", typ->ty_getty, typ->ty_name) == -1) in setupargv()
891 if (typ->ty_window) { in setupargv()
918 struct ttyent *typ; in f_read_ttys() local
936 while ((typ = getttyent())) in f_read_ttys()
1192 struct ttyent *typ; in f_clean_ttys() local
[all …]
/openbsd/gnu/llvm/llvm/bindings/ocaml/executionengine/
H A Dllvm_executionengine.mli78 (** [get_global_value_address id typ ee] returns a pointer to the
79 identifier [id] as type [typ], which will be a pointer type for a
84 val get_global_value_address : string -> 'a Ctypes.typ -> llexecutionengine -> 'a
86 (** [get_function_address fn typ ee] returns a pointer to the function
87 [fn] as type [typ], which will be a pointer type for a function
88 (e.g. [(int -> int) typ]), and which will be live as long as [fn]
92 val get_function_address : string -> 'a Ctypes.typ -> llexecutionengine -> 'a
/openbsd/lib/libcrypto/asn1/
H A Dtasn_new.c270 ASN1_TYPE *typ; in ASN1_primitive_new() local
300 typ = malloc(sizeof(ASN1_TYPE)); in ASN1_primitive_new()
301 if (typ != NULL) { in ASN1_primitive_new()
302 typ->value.ptr = NULL; in ASN1_primitive_new()
303 typ->type = V_ASN1_UNDEF; in ASN1_primitive_new()
305 *pval = (ASN1_VALUE *)typ; in ASN1_primitive_new()
/openbsd/gnu/usr.bin/binutils/gas/config/
H A Dxtensa-relax.h82 OpType typ; /* CONSTANT: op_data is a constant. member
93 OpType typ; member
117 InstrType typ; member

1234