Skip to content

Commit 318ce7f

Browse files
GH-48866: Use ARROW_FORCE_INLINE and hide normalize_subseconds_to_millis by static keywoard
1 parent a707b48 commit 318ce7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/src/gandiva/precompiled/time.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ extern "C" {
2828
#include "./time_constants.h"
2929
#include "./time_fields.h"
3030
#include "./types.h"
31+
#include "arrow/util/macros.h"
3132

3233
#define MINS_IN_HOUR 60
3334
#define SECONDS_IN_MINUTE 60
@@ -568,8 +569,8 @@ bool is_valid_time(const int hours, const int minutes, const int seconds) {
568569

569570
// Normalize sub-seconds value to milliseconds precision (3 digits).
570571
// Truncates if more than 3 digits are provided, pads with zeros if fewer than 3 digits
571-
FORCE_INLINE
572-
int32_t normalize_subseconds_to_millis(int32_t subseconds, int32_t num_digits) {
572+
ARROW_FORCE_INLINE
573+
static int32_t normalize_subseconds_to_millis(int32_t subseconds, int32_t num_digits) {
573574
if (num_digits <= 0 || num_digits == 3) {
574575
// No need to adjust
575576
return subseconds;

0 commit comments

Comments
 (0)