MCPcopy Create free account
hub / github.com/MariaDB/server / pack_time

Function pack_time

sql/sql_time.cc:1044–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042
1043
1044longlong pack_time(const MYSQL_TIME *my_time)
1045{
1046 return ((((((my_time->year * 13ULL +
1047 my_time->month) * 32ULL +
1048 my_time->day) * 24ULL +
1049 my_time->hour) * 60ULL +
1050 my_time->minute) * 60ULL +
1051 my_time->second) * 1000000ULL +
1052 my_time->second_part) * (my_time->neg ? -1 : 1);
1053}
1054
1055#define get_one(WHERE, FACTOR) WHERE= (ulong)(packed % FACTOR); packed/= FACTOR
1056

Callers 12

cmp_not_nullMethod · 0.85
my_time_compareFunction · 0.85
vers_set_hist_partMethod · 0.85
val_datetime_packedMethod · 0.85
val_time_packedMethod · 0.85
store_TIMEMethod · 0.85
make_sort_key_partMethod · 0.85
to_packedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected