aboutsummaryrefslogtreecommitdiffstats
path: root/src/nstime.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-01-19 18:15:45 -0800
committerJason Evans <jasone@canonware.com>2017-01-20 21:43:07 -0800
commitf408643a4c90d51ab8ddc1d68610650d5db87edf (patch)
treeb12815c633d56b792ab0171e923c6c5ab68b349c /src/nstime.c
parentc4c2592c834d8a37beb0a0d53842095160cbf9ee (diff)
downloadplatform_external_jemalloc_new-f408643a4c90d51ab8ddc1d68610650d5db87edf.tar.gz
platform_external_jemalloc_new-f408643a4c90d51ab8ddc1d68610650d5db87edf.tar.bz2
platform_external_jemalloc_new-f408643a4c90d51ab8ddc1d68610650d5db87edf.zip
Remove extraneous parens around return arguments.
This resolves #540.
Diffstat (limited to 'src/nstime.c')
-rw-r--r--src/nstime.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nstime.c b/src/nstime.c
index 66989a07..09cd7786 100644
--- a/src/nstime.c
+++ b/src/nstime.c
@@ -14,17 +14,17 @@ nstime_init2(nstime_t *time, uint64_t sec, uint64_t nsec) {
uint64_t
nstime_ns(const nstime_t *time) {
- return (time->ns);
+ return time->ns;
}
uint64_t
nstime_sec(const nstime_t *time) {
- return (time->ns / BILLION);
+ return time->ns / BILLION;
}
uint64_t
nstime_nsec(const nstime_t *time) {
- return (time->ns % BILLION);
+ return time->ns % BILLION;
}
void
@@ -34,7 +34,7 @@ nstime_copy(nstime_t *time, const nstime_t *source) {
int
nstime_compare(const nstime_t *a, const nstime_t *b) {
- return ((a->ns > b->ns) - (a->ns < b->ns));
+ return (a->ns > b->ns) - (a->ns < b->ns);
}
void
@@ -70,7 +70,7 @@ uint64_t
nstime_divide(const nstime_t *time, const nstime_t *divisor) {
assert(divisor->ns != 0);
- return (time->ns / divisor->ns);
+ return time->ns / divisor->ns;
}
#ifdef _WIN32
@@ -126,7 +126,7 @@ nstime_get(nstime_t *time) {
#endif
bool
nstime_monotonic(void) {
- return (NSTIME_MONOTONIC);
+ return NSTIME_MONOTONIC;
#undef NSTIME_MONOTONIC
}
#ifdef JEMALLOC_JET
@@ -149,10 +149,10 @@ nstime_update(nstime_t *time) {
/* Handle non-monotonic clocks. */
if (unlikely(nstime_compare(&old_time, time) > 0)) {
nstime_copy(time, &old_time);
- return (true);
+ return true;
}
- return (false);
+ return false;
}
#ifdef JEMALLOC_JET
#undef nstime_update