#include <stddef.h>#include <stdio.h>Include dependency graph for builtin.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | _builtin_h 1 |
| #define | __attribute__(x) |
Typedefs | |
| typedef void(* | one_arg_error_handler_t )(const char *) |
| typedef void(* | two_arg_error_handler_t )(const char *, const char *) |
Functions | |
| long | gcd (long, long) |
| long | lg (unsigned long) |
| double | pow (double, long) |
| long | pow (long, long) |
| double | start_timer () |
| double | return_elapsed_time (double last_time=0.0) |
| char * | dtoa (double x, char cvt= 'g', int width=0, int prec=6) |
| unsigned int | hashpjw (const char *) |
| unsigned int | multiplicativehash (int) |
| unsigned int | foldhash (double) |
| void | default_one_arg_error_handler (const char *) __attribute__((noreturn)) |
| void | default_two_arg_error_handler (const char *, const char *) __attribute__((noreturn)) |
| two_arg_error_handler_t | set_lib_error_handler (two_arg_error_handler_t f) |
| short | abs (short arg) |
| int | sign (long arg) |
| int | sign (double arg) |
| long | sqr (long arg) |
| double | sqr (double arg) |
| int | even (long arg) |
| int | odd (long arg) |
| long | lcm (long x, long y) |
| void | clearbit (long &x, long b) |
| int | testbit (long x, long b) |
Variables | |
| two_arg_error_handler_t | lib_error_handler |
| void( | setbit )(long &x, long b) |
|
|
|
|
|
|
|
|
Definition at line 40 of file builtin.h. Referenced by set_intVec_error_handler(). |
|
|
|
|
|
Definition at line 68 of file builtin.h.
00069 {
00070 return (arg < 0)? -arg : arg;
00071 }
|
|
||||||||||||
|
Definition at line 115 of file builtin.h.
00116 {
00117 x &= ~(1 << b);
00118 }
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
Definition at line 95 of file builtin.h.
00096 {
00097 return !(arg & 1);
00098 }
|
|
|
|
|
||||||||||||
|
Referenced by lcm(). |
|
|
|
|
||||||||||||
|
Definition at line 105 of file builtin.h. References gcd().
00106 {
00107 return x / gcd(x, y) * y;
00108 }
|
Here is the call graph for this function:

|
|
|
|
|
|
|
|
Definition at line 100 of file builtin.h.
00101 {
00102 return (arg & 1);
00103 }
|
|
||||||||||||
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Definition at line 78 of file builtin.h.
00079 {
00080 return (arg == 0.0) ? 0 : ( (arg > 0.0) ? 1 : -1 );
00081 }
|
|
|
Definition at line 73 of file builtin.h.
00074 {
00075 return (arg == 0) ? 0 : ( (arg > 0) ? 1 : -1 );
00076 }
|
|
|
Definition at line 89 of file builtin.h.
00090 {
00091 return arg * arg;
00092 }
|
|
|
Definition at line 83 of file builtin.h.
00084 {
00085 return arg * arg;
00086 }
|
|
|
|
|
||||||||||||
|
Definition at line 120 of file builtin.h.
00121 {
00122 return ((x & (1 << b)) != 0);
00123 }
|
|
|
|
|
|
Definition at line 110 of file builtin.h.
00111 {
00112 x |= (1 << b);
00113 }
|
1.3.3