Merge pull request #26220 from 78andyp/blurayfixes
[xbmc.git] / xbmc / utils / Literals.h
blobce567d5be4cb3b9756cc9381ff7e2dd7db59c9fe
1 /*
2 * Copyright (C) 2014-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 constexpr unsigned long long int operator"" _kib (unsigned long long int val)
13 return val * 1024ull;
16 constexpr unsigned long long int operator"" _kb (unsigned long long int val)
18 return val * 1000ull;
21 constexpr unsigned long long int operator"" _mib (unsigned long long int val)
23 return val * 1024ull * 1024ull;
26 constexpr unsigned long long int operator"" _mb (unsigned long long int val)
28 return val * 1000ull * 1000ull;