[roll] Roll fuchsia [zx][time] Add `-duration` and `int64_t*duration` operators

The operator `duration * int64_t` already exists. This CL makes that
operator commutative. This CL also adds a negation operator which is
equivalent to `zx_duration_mul_int64(duration, -1)`. On trunk, clang
optimizes this identically to a manual implementation of negation.
https://godbolt.org/z/a3Wf9ar4n
https://godbolt.org/z/1dq4raq81

Tests are added, which reveal pre-existing behavior that may be
surprising:

```
zx::duration::infinite() * -1 == zx::duration::infinite_past() + 1
```

Arguably, negating infinity should produce -infinity. I've left the
behavior as-is for backwards-compatibility.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/717122
Original-Revision: 573cf87f88460cc7d9606eeb0c29d63341d0e0ff
GitOrigin-RevId: 491b536692154249cd67442d0d0bb6a34f7062ae
Change-Id: Ic3ebb8f20e31df3c931e19831c778820d90a341f
1 file changed
tree: 05d2fe7539927e736313ebf3a54409f318f223e4
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
  13. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.