| /src/external/gpl3/gdb/dist/sim/testsuite/bfin/ |
| fact.s | 1 # Blackfin testcase for factorial 8 .macro factorial num:req answer:req 19 factorial 1 1 20 factorial 2 2 21 factorial 3 6 22 factorial 4 24 23 factorial 5 120 24 factorial 6 720 25 factorial 7 5040 26 factorial 8 4032 [all...] |
| /src/external/gpl3/gdb.old/dist/sim/testsuite/bfin/ |
| fact.s | 1 # Blackfin testcase for factorial 8 .macro factorial num:req answer:req 19 factorial 1 1 20 factorial 2 2 21 factorial 3 6 22 factorial 4 24 23 factorial 5 120 24 factorial 6 720 25 factorial 7 5040 26 factorial 8 4032 [all...] |
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
| run.c | 11 int factorial (int); 19 printf ("%d\n", factorial (1)); /* commands.exp: hw local_var out of scope */ 22 printf ("usage: factorial <number>\n"); 25 printf ("%d\n", factorial (atoi (argv[1]))); 31 int factorial (int value) function 36 value *= factorial (value - 1);
|
| sepdebug.c | 36 int factorial(int); 42 fprintf (stderr, "usage: factorial <number>\n"); 45 printf ("%d\n", factorial (atoi ("6"))); /* set breakpoint 1 here */ 55 int factorial (int value) function 58 value *= factorial (value - 1);
|
| break.c | 38 int factorial(int); 44 fprintf (stderr, "usage: factorial <number>\n"); 47 printf ("%d\n", factorial (atoi ("6"))); /* set breakpoint 1 here */ 61 int factorial (int value) function 64 value *= factorial (value - 1);
|
| until.exp | 45 # Rerun up to factorial, outer invocation 46 if { ![runto factorial] } { 53 # inner invocations of factorial() are completed and we are back at this 57 "factorial.*value=720.*at.*${srcfile}:$bp_location19.*return \\(value\\).*" \ 58 "until factorial, recursive function"
|
| commands.exp | 43 if { ![runto factorial] } { 121 runto_or_return factorial 152 runto_or_return factorial 176 runto_or_return factorial 204 runto_or_return factorial 210 gdb_test "break factorial" "Breakpoint.*at.*" 250 runto_or_return factorial 256 gdb_test "break factorial if value == 5" "Breakpoint.*at.*" 273 "Continuing.*.*.*Breakpoint \[0-9\]*, factorial \\(value=5\\).*at.*\[0-9\]*\[ \]*if \\(value > 1\\) \{.*\[0-9\]*\[ \]*value \\*= factorial \\(value - 1\\);.* [all...] |
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/ |
| run.c | 11 int factorial (int); 19 printf ("%d\n", factorial (1)); /* commands.exp: hw local_var out of scope */ 22 printf ("usage: factorial <number>\n"); 25 printf ("%d\n", factorial (atoi (argv[1]))); 31 int factorial (int value) function 36 value *= factorial (value - 1);
|
| sepdebug.c | 36 int factorial(int); 42 fprintf (stderr, "usage: factorial <number>\n"); 45 printf ("%d\n", factorial (atoi ("6"))); /* set breakpoint 1 here */ 55 int factorial (int value) function 58 value *= factorial (value - 1);
|
| break.c | 38 int factorial(int); 44 fprintf (stderr, "usage: factorial <number>\n"); 47 printf ("%d\n", factorial (atoi ("6"))); /* set breakpoint 1 here */ 61 int factorial (int value) function 64 value *= factorial (value - 1);
|
| until.exp | 45 # Rerun up to factorial, outer invocation 46 if { ![runto factorial] } { 53 # inner invocations of factorial() are completed and we are back at this 57 "factorial.*value=720.*at.*${srcfile}:$bp_location19.*return \\(value\\).*" \ 58 "until factorial, recursive function"
|
| commands.exp | 43 if { ![runto factorial] } { 121 runto_or_return factorial 152 runto_or_return factorial 176 runto_or_return factorial 204 runto_or_return factorial 210 gdb_test "break factorial" "Breakpoint.*at.*" 250 runto_or_return factorial 256 gdb_test "break factorial if value == 5" "Breakpoint.*at.*" 273 "Continuing.*.*.*Breakpoint \[0-9\]*, factorial \\(value=5\\).*at.*\[0-9\]*\[ \]*if \\(value > 1\\) \{.*\[0-9\]*\[ \]*value \\*= factorial \\(value - 1\\);.* [all...] |
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/ |
| until-reverse.c | 31 int factorial(int); 45 factorial (atoi ("6")); /* set breakpoint 1 here */ 56 int factorial (int value) function 59 value *= factorial (value - 1);
|
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.reverse/ |
| until-reverse.c | 31 int factorial(int); 45 factorial (atoi ("6")); /* set breakpoint 1 here */ 56 int factorial (int value) function 59 value *= factorial (value - 1);
|
| /src/external/gpl3/gcc/dist/gcc/jit/docs/examples/tut04-toyvm/ |
| Makefile | 0 factorial: toyvm 2 ./toyvm factorial.toy 10
|
| /src/external/gpl3/gcc.old/dist/gcc/jit/docs/examples/tut04-toyvm/ |
| Makefile | 0 factorial: toyvm 2 ./toyvm factorial.toy 10
|
| /src/external/lgpl3/gmp/dist/tests/cxx/ |
| t-ops2z.cc | 83 ASSERT_ALWAYS(factorial(mpz_class(3))==6); 84 ASSERT_ALWAYS(factorial(mpz_class(5)-1)==24); 85 ASSERT_ALWAYS(mpz_class::factorial(mpz_class(3))==6); 86 ASSERT_ALWAYS(mpz_class::factorial(mpz_class(2)*2)==24); 87 ASSERT_ALWAYS(mpz_class::factorial(3)==6); 88 ASSERT_ALWAYS(mpz_class::factorial(3ul)==6); 89 ASSERT_ALWAYS(mpz_class::factorial(3.f)==6); 91 try { ret=factorial(-mpz_class(3)); ASSERT_ALWAYS(0); } 93 try { ret=mpz_class::factorial(-2); ASSERT_ALWAYS(0); } 95 try { ret=factorial(mpz_class(1)<<300); ASSERT_ALWAYS(0); [all...] |
| /src/external/bsd/lutok/dist/examples/ |
| bindings.cpp | 49 /// Calculates the factorial of a given number. 51 /// \param i The postivie number to calculate the factorial of. 53 /// \return The factorial of i. 55 factorial(const int i) function 62 return i * factorial(i - 1); 66 /// A custom factorial function for Lua. 68 /// \pre stack(-1) contains the number to calculate the factorial of. 82 throw std::runtime_error("Argument to factorial must be an integer"); 85 throw std::runtime_error("Argument to factorial must be positive"); 86 state.push_integer(factorial(i)) [all...] |
| /src/external/bsd/jemalloc/dist/test/unit/ |
| math.c | 28 factorial(unsigned x) { function 45 (double)factorial(x-1), MAX_REL_ERR, MAX_ABS_ERR), 46 "Incorrect factorial result for x=%u", x);
|
| /src/external/bsd/jemalloc.old/dist/test/unit/ |
| math.c | 28 factorial(unsigned x) { function 45 (double)factorial(x-1), MAX_REL_ERR, MAX_ABS_ERR), 46 "Incorrect factorial result for x=%u", x);
|
| /src/external/gpl3/gdb/dist/sim/testsuite/ft32/ |
| basic.s | 632 call factorial 635 call factorial 638 call factorial 641 call factorial 644 call factorial 647 call factorial 650 call factorial 653 call factorial 874 factorial: label 880 call factorial [all...] |
| /src/external/gpl3/gdb.old/dist/sim/testsuite/ft32/ |
| basic.s | 632 call factorial 635 call factorial 638 call factorial 641 call factorial 644 call factorial 647 call factorial 650 call factorial 653 call factorial 874 factorial: label 880 call factorial [all...] |
| /src/external/lgpl3/mpfr/lib/libmpfr/ |
| Makefile | 99 factorial.c \
|
| /src/external/gpl3/gcc.old/dist/libphobos/src/std/algorithm/ |
| comparison.d | 1985 int factorial(int n) 1990 n * factorial(n - 1) // n! = n * (n - 1)! for n >= 0 1993 assert(factorial(3) == 6); 1997 assertThrown!Exception(factorial(-9));
|
| /src/external/lgpl3/gmp/dist/ |
| gmpxx.h | 1243 throw std::domain_error ("factorial(negative)"); 1251 throw std::domain_error ("factorial(negative)"); 1253 throw std::bad_alloc(); // or std::overflow_error ("factorial")? 1751 __GMP_DECLARE_UNARY_STATIC_MEMFUN(mpz_t, factorial, __gmp_fac_function) 3343 __GMP_DEFINE_UNARY_FUNCTION_1(mpz_t, factorial, __gmp_fac_function) 3375 __GMP_DEFINE_UNARY_STATIC_MEMFUN(mpz_t, mpz_class::factorial, __gmp_fac_function)
|