Home
last modified time | relevance | path

Searched refs:signum (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DAdoptingModifierStore.java50 public void setModifier(int signum, StandardPlural plural, Modifier mod) { in setModifier() argument
52 mods[getModIndex(signum, plural)] = mod; in setModifier()
59 public Modifier getModifierWithoutPlural(int signum) { in getModifierWithoutPlural() argument
62 return signum == 0 ? zero : signum < 0 ? negative : positive; in getModifierWithoutPlural()
65 public Modifier getModifier(int signum, StandardPlural plural) { in getModifier() argument
68 return mods[getModIndex(signum, plural)]; in getModifier()
71 private static int getModIndex(int signum, StandardPlural plural) { in getModIndex() argument
72 assert signum >= -1 && signum <= 1; in getModIndex()
74 return plural.ordinal() * 3 + (signum + 1); in getModIndex()
DMutablePatternModifier.java53 int signum; field in MutablePatternModifier
128 public void setNumberProperties(int signum, StandardPlural plural) { in setNumberProperties() argument
130 this.signum = signum; in setNumberProperties()
244 micros.modMiddle = pm.getModifierWithoutPlural(quantity.signum()); in applyToMicros()
250 micros.modMiddle = pm.getModifier(quantity.signum(), plural); in applyToMicros()
279 setNumberProperties(fq.signum(), copy.getStandardPlural(rules)); in processQuantity()
281 setNumberProperties(fq.signum(), null); in processQuantity()
374 signum, in prepareAffix()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DAdoptingModifierStore.java48 public void setModifier(int signum, StandardPlural plural, Modifier mod) { in setModifier() argument
50 mods[getModIndex(signum, plural)] = mod; in setModifier()
57 public Modifier getModifierWithoutPlural(int signum) { in getModifierWithoutPlural() argument
60 return signum == 0 ? zero : signum < 0 ? negative : positive; in getModifierWithoutPlural()
63 public Modifier getModifier(int signum, StandardPlural plural) { in getModifier() argument
66 return mods[getModIndex(signum, plural)]; in getModifier()
69 private static int getModIndex(int signum, StandardPlural plural) { in getModIndex() argument
70 assert signum >= -1 && signum <= 1; in getModIndex()
72 return plural.ordinal() * 3 + (signum + 1); in getModIndex()
DMutablePatternModifier.java51 int signum; field in MutablePatternModifier
126 public void setNumberProperties(int signum, StandardPlural plural) { in setNumberProperties() argument
128 this.signum = signum; in setNumberProperties()
239 micros.modMiddle = pm.getModifierWithoutPlural(quantity.signum()); in applyToMicros()
245 micros.modMiddle = pm.getModifier(quantity.signum(), plural); in applyToMicros()
274 setNumberProperties(fq.signum(), copy.getStandardPlural(rules)); in processQuantity()
276 setNumberProperties(fq.signum(), null); in processQuantity()
369 signum, in prepareAffix()
/external/ltp/testcases/kernel/syscalls/ptrace/
Dptrace05.c57 int signum; in main() local
72 for (signum = start_signum; signum <= end_signum; signum++) { in main()
74 if (signum >= __SIGRTMIN && signum < SIGRTMIN) in main()
84 signum); in main()
85 if (kill(getpid(), signum) < 0) { in main()
88 signum); in main()
103 exit((signum == 0 ? 0 : 2)); in main()
110 switch (signum) { in main()
/external/python/cpython3/Modules/
Dfaulthandler.c43 int signum; member
106 static void faulthandler_user(int signum);
298 (void)sigaction(handler->signum, &handler->previous, NULL); in faulthandler_disable_fatal_handler()
300 (void)signal(handler->signum, handler->previous); in faulthandler_disable_fatal_handler()
319 faulthandler_fatal_error(int signum) in faulthandler_fatal_error() argument
331 if (handler->signum == signum) in faulthandler_fatal_error()
351 if (signum == SIGSEGV) { in faulthandler_fatal_error()
359 raise(signum); in faulthandler_fatal_error()
413 if (handler->signum == SIGSEGV) { in faulthandler_exc_handler()
460 err = sigaction(handler->signum, &action, &handler->previous); in faulthandler_enable()
[all …]
/external/compiler-rt/test/asan/TestCases/Posix/
Dallow_user_segv.cc14 void User_OnSIGSEGV(int signum, siginfo_t *siginfo, void *context) { in User_OnSIGSEGV() argument
17 if (signum == SIGBUS) in User_OnSIGSEGV()
19 else if (signum == SIGSEGV) in User_OnSIGSEGV()
26 original_sigaction.sa_sigaction(signum, siginfo, context); in User_OnSIGSEGV()
28 original_sigaction.sa_handler(signum); in User_OnSIGSEGV()
36 int InstallHandler(int signum, struct sigaction *original_sigaction) { in InstallHandler() argument
40 if (sigaction(signum, &user_sigaction, original_sigaction)) { in InstallHandler()
/external/icu/icu4c/source/i18n/
Dnumber_modifiers.h292 void adoptModifier(int8_t signum, StandardPlural::Form plural, const Modifier *mod) { in adoptModifier() argument
293 U_ASSERT(mods[getModIndex(signum, plural)] == nullptr); in adoptModifier()
294 mods[getModIndex(signum, plural)] = mod; in adoptModifier()
301 void adoptModifierWithoutPlural(int8_t signum, const Modifier *mod) { in adoptModifierWithoutPlural() argument
302 U_ASSERT(mods[getModIndex(signum, DEFAULT_STANDARD_PLURAL)] == nullptr); in adoptModifierWithoutPlural()
303 mods[getModIndex(signum, DEFAULT_STANDARD_PLURAL)] = mod; in adoptModifierWithoutPlural()
307 const Modifier *getModifier(int8_t signum, StandardPlural::Form plural) const U_OVERRIDE { in getModifier() argument
308 const Modifier* modifier = mods[getModIndex(signum, plural)]; in getModifier()
310 modifier = mods[getModIndex(signum, DEFAULT_STANDARD_PLURAL)]; in getModifier()
316 const Modifier *getModifierWithoutPlural(int8_t signum) const { in getModifierWithoutPlural() argument
[all …]
Dnumber_patternmodifier.cpp45 void MutablePatternModifier::setNumberProperties(int8_t signum, StandardPlural::Form plural) { in setNumberProperties() argument
46 fSignum = signum; in setNumberProperties()
134 micros.modMiddle = pm->getModifierWithoutPlural(quantity.signum()); in applyToMicros()
140 micros.modMiddle = pm->getModifier(quantity.signum(), plural); in applyToMicros()
144 const Modifier* ImmutablePatternModifier::getModifier(int8_t signum, StandardPlural::Form plural) c… in getModifier() argument
146 return pm->getModifierWithoutPlural(signum); in getModifier()
148 return pm->getModifier(signum, plural); in getModifier()
169 nonConstThis->setNumberProperties(fq.signum(), utils::getStandardPlural(fRules, copy)); in processQuantity()
171 nonConstThis->setNumberProperties(fq.signum(), StandardPlural::Form::COUNT); in processQuantity()
/external/toybox/toys/posix/
Dkill.c59 int signum; local
66 int signum = sig_to_num(*args); local
69 if (signum>=0) s = num_to_sig(signum&127);
84 if (!arg || -1 == (signum = sig_to_num(arg)))
86 } else signum = SIGTERM;
127 kill(procpid, signum);
144 if (*tmp || kill(pid, signum) < 0) error_msg("unknown pid '%s'", arg);
/external/e2fsprogs/e2fsck/
Dsigcatcher.c334 static void die_signal_handler(int signum, siginfo_t *siginfo, in die_signal_handler() argument
339 fprintf(stderr, "Signal (%d) %s ", signum, in die_signal_handler()
340 lookup_table_fallback(signum, sig_table)); in die_signal_handler()
346 else if (signum == SIGILL) in die_signal_handler()
350 else if (signum == SIGFPE) in die_signal_handler()
354 else if (signum == SIGSEGV) in die_signal_handler()
358 else if (signum == SIGBUS) in die_signal_handler()
362 else if (signum == SIGCHLD) in die_signal_handler()
369 (signum == SIGILL || signum == SIGFPE || in die_signal_handler()
370 signum == SIGSEGV || signum == SIGBUS)) in die_signal_handler()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dcompare-signs.ll92 %signum = or i32 %l, %r
93 %c = icmp slt i32 %signum, 1
105 %signum = or <2 x i32> %l, %r
106 %c = icmp slt <2 x i32> %signum, <i32 1, i32 1>
118 %signum = or i64 %l, %r
119 %c = icmp slt i64 %signum, 1
131 %signum = or i64 %l, %r
132 %signum.trunc = trunc i64 %signum to i32
133 %c = icmp slt i32 %signum.trunc, 1
145 %signum = or <2 x i64> %l, %r
[all …]
/external/ltp/include/lapi/
Dsafe_rt_signal.h12 int signum, const struct sigaction *act, in safe_rt_sigaction() argument
17 ret = ltp_rt_sigaction(signum, act, oact, sigsetsize); in safe_rt_sigaction()
21 file, lineno, signum, act, oact, sigsetsize); in safe_rt_sigaction()
27 #define SAFE_RT_SIGACTION(signum, act, oldact, sigsetsize) \ argument
28 safe_rt_sigaction(__FILE__, __LINE__, signum, act, oldact, sigsetsize)
/external/webrtc/webrtc/base/
Dphysicalsocketserver.cc836 bool IsSignalSet(int signum) const { in IsSignalSet()
837 ASSERT(signum < static_cast<int>(arraysize(received_signal_))); in IsSignalSet()
838 if (signum < static_cast<int>(arraysize(received_signal_))) { in IsSignalSet()
839 return received_signal_[signum]; in IsSignalSet()
846 void ClearSignal(int signum) { in ClearSignal() argument
847 ASSERT(signum < static_cast<int>(arraysize(received_signal_))); in ClearSignal()
848 if (signum < static_cast<int>(arraysize(received_signal_))) { in ClearSignal()
849 received_signal_[signum] = false; in ClearSignal()
862 void OnPosixSignalReceived(int signum) { in OnPosixSignalReceived() argument
863 if (signum >= static_cast<int>(arraysize(received_signal_))) { in OnPosixSignalReceived()
[all …]
/external/v8/src/trap-handler/
Dhandler-inside-linux.cc62 bool TryHandleSignal(int signum, siginfo_t* info, ucontext_t* context) { in TryHandleSignal() argument
64 if (signum != SIGSEGV) { in TryHandleSignal()
111 void HandleSignal(int signum, siginfo_t* info, void* context) { in HandleSignal() argument
114 if (!TryHandleSignal(signum, info, uc)) { in HandleSignal()
125 raise(signum); in HandleSignal()
/external/llvm/test/Transforms/InstCombine/
Dcompare-signs.ll65 %signum = or i32 %l, %r
66 %c = icmp slt i32 %signum, 1
78 %signum = or i64 %l, %r
79 %c = icmp slt i64 %signum, 1
91 %signum = or i64 %l, %r
92 %signum.trunc = trunc i64 %signum to i32
93 %c = icmp slt i32 %signum.trunc, 1
/external/toybox/toys/lsb/
Dkillall.c30 int signum;
48 kill(pid, TT.signum);
58 printf("Killed %s(%d) with signal %d\n", name, pid, TT.signum);
68 TT.signum = SIGTERM; in killall_main()
76 if (0 > (TT.signum = sig_to_num(TT.s ? TT.s : (*TT.names)+1))) { in killall_main()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DAffixMatcher.java101 for (int signum = 1; signum >= -1; signum--) { in createMatchers()
105 signum, in createMatchers()
116 signum, in createMatchers()
124 if (signum == 1) { in createMatchers()
133 int flags = (signum == -1) ? ParsedNumber.FLAG_NEGATIVE : 0; in createMatchers()
140 if (signum == 1 || !Objects.equals(prefix, posPrefix)) { in createMatchers()
143 if (signum == 1 || !Objects.equals(suffix, posSuffix)) { in createMatchers()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DAffixMatcher.java103 for (int signum = 1; signum >= -1; signum--) { in createMatchers()
107 signum, in createMatchers()
118 signum, in createMatchers()
126 if (signum == 1) { in createMatchers()
135 int flags = (signum == -1) ? ParsedNumber.FLAG_NEGATIVE : 0; in createMatchers()
142 if (signum == 1 || !Objects.equals(prefix, posPrefix)) { in createMatchers()
145 if (signum == 1 || !Objects.equals(suffix, posSuffix)) { in createMatchers()
/external/compiler-rt/lib/esan/
Desan_interceptors.cpp379 INTERCEPTOR(signal_handler_t, signal, int signum, signal_handler_t handler) { in INTERCEPTOR() argument
381 COMMON_INTERCEPTOR_ENTER(ctx, signal, signum, handler); in INTERCEPTOR()
383 if (!processSignal(signum, handler, &result)) in INTERCEPTOR()
386 return REAL(signal)(signum, handler); in INTERCEPTOR()
395 DECLARE_REAL(int, sigaction, int signum, const struct sigaction *act, in DECLARE_REAL() argument
397 INTERCEPTOR(int, sigaction, int signum, const struct sigaction *act, in DECLARE_REAL()
400 COMMON_INTERCEPTOR_ENTER(ctx, sigaction, signum, act, oldact); in DECLARE_REAL()
401 if (!processSigaction(signum, act, oldact)) in DECLARE_REAL()
404 return REAL(sigaction)(signum, act, oldact); in DECLARE_REAL()
409 int real_sigaction(int signum, const void *act, void *oldact) { in real_sigaction() argument
[all …]
/external/ltp/testcases/kernel/syscalls/fork/
Dfork12.c54 static void fork12_sigs(int signum);
123 static void fork12_sigs(int signum) in fork12_sigs() argument
125 if (signum == SIGQUIT) { in fork12_sigs()
129 "Unexpected signal %d received.", signum); in fork12_sigs()
/external/autotest/client/common_lib/cros/
Dadb_keepalive.py28 def _signal_handler(signum, frame): argument
29 logging.info('Received %s, shutting down', _signum_to_name[signum])
116 signum = getattr(signal, attr) variable
117 _signum_to_name[signum] = attr
118 signal.signal(signum, _signal_handler)
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_utils_PositionUtils.txt6 …Line 63) signum(beginLineWithoutConsideringAnnotation(a) - beginLineWithoutConsideringAnnotation(b…
9 …Line 65) signum(beginColumnWithoutConsideringAnnotation(a) - beginColumnWithoutConsideringAnnotati…
12 Line 71) signum(a.getBegin().line - b.getBegin().line) ==> java.lang.Integer.signum(int)
15 Line 73) signum(a.getBegin().column - b.getBegin().column) ==> java.lang.Integer.signum(int)
/external/python/cpython3/Lib/test/eintrdata/
Deintr_tester.py49 def sighandler(self, signum, frame): argument
391 signum = signal.SIGUSR1
394 old_handler = signal.signal(signum, lambda *args: None)
395 self.addCleanup(signal.signal, signum, old_handler)
400 'signum = %s' % int(signum),
406 old_mask = signal.pthread_sigmask(signal.SIG_BLOCK, [signum])
407 self.addCleanup(signal.pthread_sigmask, signal.SIG_UNBLOCK, [signum])
412 wait_func(signum)
420 def wait_func(signum): argument
421 signal.sigwaitinfo([signum])
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.cc627 int internal_sigaction_norestorer(int signum, const void *act, void *oldact) { in internal_sigaction_norestorer() argument
653 uptr result = internal_syscall(SYSCALL(rt_sigaction), (uptr)signum, in internal_sigaction_norestorer()
675 int internal_sigaction_syscall(int signum, const void *act, void *oldact) { in internal_sigaction_syscall() argument
677 return internal_sigaction_norestorer(signum, act, oldact); in internal_sigaction_syscall()
685 return internal_sigaction_norestorer(signum, (const void *)&u_adjust, in internal_sigaction_syscall()
713 void internal_sigdelset(__sanitizer_sigset_t *set, int signum) { in internal_sigdelset() argument
714 signum -= 1; in internal_sigdelset()
715 CHECK_GE(signum, 0); in internal_sigdelset()
716 CHECK_LT(signum, sizeof(*set) * 8); in internal_sigdelset()
718 const uptr idx = signum / (sizeof(k_set->sig[0]) * 8); in internal_sigdelset()
[all …]

12345678910>>...18