Go to the documentation of this file.
45 sprintf(
fmt,
"%%0%d%s", chars,
base == 16 ? PRIxMAX : PRIdMAX);
54 if (t.tv_sec < 0 && t.tv_nsec != 0) {
59 (*writer)(
arg,
".", 1);
70 fprintf(
stderr,
"far future ");
75 fprintf(
stderr,
"far future ");
82 fprintf(
stderr,
"far past ");
88 fprintf(
stderr,
"far past ");
94 for (
i = 1;
i != 1000 * 1000 * 1000;
i *= 10) {
120 for (
i = -1;
i > -1000 * 1000 * 1000;
i *= 7) {
135 for (
i = -100;
i <= 100;
i++) {
136 for (j = -100; j <= 100; j++) {
137 for (
k = 1;
k <= 10000000;
k *= 10) {
146 fprintf(
stderr,
"i %d j %d sum %d sumt ",
i, j,
sum);
155 fprintf(
stderr,
"i %d j %d diff %d diff ",
i, j,
diff);
194 for (
i = 0;
i !=
sizeof(infinity) /
sizeof(infinity[0]);
i++) {
195 for (j = 0; j !=
sizeof(addend) /
sizeof(addend[0]); j++) {
201 for (
k = -200;
k <= 200;
k++) {
257 int main(
int argc,
char* argv[]) {
GPRAPI int gpr_time_similar(gpr_timespec a, gpr_timespec b, gpr_timespec threshold)
GPRAPI gpr_timespec gpr_time_0(gpr_clock_type type)
int main(int argc, char *argv[])
double sum(const T &container, F functor)
static void test_cmp_extreme(void)
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
static void test_sticky_infinities(void)
GPRAPI gpr_timespec gpr_time_from_nanos(int64_t ns, gpr_clock_type clock_type)
GPRAPI int gpr_time_cmp(gpr_timespec a, gpr_timespec b)
GPRAPI gpr_timespec gpr_time_sub(gpr_timespec a, gpr_timespec b)
static void ts_to_s(gpr_timespec t, void(*writer)(void *arg, const char *buf, size_t len), void *arg)
static void test_values(void)
gpr_clock_type clock_type
static void i_to_s(intmax_t x, int base, int chars, void(*writer)(void *arg, const char *buf, size_t len), void *arg)
GPRAPI gpr_timespec gpr_inf_past(gpr_clock_type type)
static void test_add_sub(void)
GTEST_API_ const char * fmt
GPRAPI gpr_timespec gpr_time_add(gpr_timespec a, gpr_timespec b)
GPRAPI gpr_timespec gpr_convert_clock_type(gpr_timespec t, gpr_clock_type clock_type)
GPRAPI gpr_timespec gpr_time_from_micros(int64_t us, gpr_clock_type clock_type)
static void to_fp(void *arg, const char *buf, size_t len)
GPRAPI gpr_timespec gpr_time_from_millis(int64_t ms, gpr_clock_type clock_type)
static void test_similar(void)
static void test_convert_extreme(void)
static void test_overflow(void)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:36