Skip to content

First stab at cleaning up experimental.h deps#9812

Merged
zwoop merged 1 commit intoapache:masterfrom
zwoop:FirstStepOnExperimental
Jun 27, 2023
Merged

First stab at cleaning up experimental.h deps#9812
zwoop merged 1 commit intoapache:masterfrom
zwoop:FirstStepOnExperimental

Conversation

@zwoop
Copy link
Contributor

@zwoop zwoop commented Jun 8, 2023

No description provided.

@zwoop zwoop added this to the 10.0.0 milestone Jun 8, 2023
@zwoop zwoop requested review from SolidWallOfCode and bneradt June 8, 2023 22:41
@zwoop zwoop force-pushed the FirstStepOnExperimental branch 3 times, most recently from 108cbe7 to b810cd2 Compare June 9, 2023 16:07
@zwoop zwoop force-pushed the FirstStepOnExperimental branch from b810cd2 to c91eb01 Compare June 9, 2023 16:59
@zwoop
Copy link
Contributor Author

zwoop commented Jun 12, 2023

[approve ci centos]

@bryancall bryancall self-requested a review June 12, 2023 22:22
#define TS_HRTIME_USECOND (1000 * TS_HRTIME_NSECOND)
#define TS_HRTIME_NSECOND (1LL)

#define TS_HRTIME_SECONDS(_x) ((_x)*TS_HRTIME_SECOND)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not constexpr TSHRTime TS_HRTIME_SECONDS(TSHRTIME nsec) { return nsec * TS_HRTIME_SECOND); } ?

Copy link
Contributor

@bryancall bryancall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can switch the defines to constexpr. Still better than before.

@zwoop zwoop merged commit 434a42a into apache:master Jun 27, 2023
@zwoop zwoop deleted the FirstStepOnExperimental branch June 27, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants