Skip to content

Conversation

jmr
Copy link
Member

@jmr jmr commented Jun 25, 2024

  • Replace S2Testing::Random, which was based on random(3), with
    new s2random:: namespace, based on abseil-cpp's random library.
    This removes the use of global state.
  • Use int64_t instead of int64, etc.
  • constexpr fixes
  • Reworked S2ClosestEdgeQuery
  • Remove some old SWIG workarounds.

jmr added 3 commits June 21, 2024 16:14
* Replace S2Testing::Random, which was based on random(3), with
  new s2random:: namespace, based on abseil-cpp's random library.
  This removes the use of global state.
* Use int64_t instead of int64, etc.
* constexpr fixes
* Reworked S2ClosestEdgeQuery
* Replace S2Testing::Random, which was based on random(3), with
  new s2random:: namespace, based on abseil-cpp's random library.
  This removes the use of global state.
* Use int64_t instead of int64, etc.
* constexpr fixes
* Reworked S2ClosestEdgeQuery
* Remove some old SWIG workarounds.

Merge branch 'google3-update-2024-06-21' into update-2024-06-21
This SWIG macro controls whether `int64_t` is `long long` or `long`.
Previously, this was defined for all 64-bit platforms.

MacOS and Windows use `long long` for `int64_t`, while Linux and most other
Unices use `long`.

This has only been tested with Linux, but conditional definitions like
this are what I'm finding in web searches.
@jmr jmr merged commit 755fe37 into google:master Jun 29, 2024
@rschu1ze rschu1ze mentioned this pull request Jul 4, 2024
jmr pushed a commit that referenced this pull request Jul 5, 2024
PR #367 forgot to adjust a few types which are under the IS_BIG_ENDIAN define.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant