You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Renamed datatypes/decimal.* into csdecimal to avoid collision with MDB.
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#ifndef UTILS_COLWIDTH_H
|
||||
#define UTILS_COLWIDTH_H
|
||||
|
||||
#include "branchpred.h"
|
||||
|
||||
namespace utils
|
||||
{
|
||||
@ -34,10 +35,12 @@ namespace utils
|
||||
return width <= MAXLEGACYWIDTH;
|
||||
}
|
||||
|
||||
// WIP MCOL-641 Replace with template
|
||||
/** @brief Map a DECIMAL precision to data width in bytes */
|
||||
inline uint8_t widthByPrecision(unsigned p)
|
||||
{
|
||||
if (LIKELY(p > 18 && p < 39))
|
||||
return 16;
|
||||
|
||||
switch (p)
|
||||
{
|
||||
case 1:
|
||||
@ -70,6 +73,7 @@ namespace utils
|
||||
return 16;
|
||||
}
|
||||
}
|
||||
|
||||
inline uint8_t precisionByWidth(unsigned w)
|
||||
{
|
||||
switch(w)
|
||||
|
Reference in New Issue
Block a user