linux/include/linux/units.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_UNITS_H
#define _LINUX_UNITS_H

#include <linux/bits.h>
#include <linux/math.h>

/* Metric prefixes in accordance with Système international (d'unités) */
#define PETA
#define TERA
#define GIGA
#define MEGA
#define KILO
#define HECTO
#define DECA
#define DECI
#define CENTI
#define MILLI
#define MICRO
#define NANO
#define PICO
#define FEMTO

#define NANOHZ_PER_HZ
#define MICROHZ_PER_HZ
#define MILLIHZ_PER_HZ

#define HZ_PER_KHZ
#define HZ_PER_MHZ

#define KHZ_PER_MHZ
#define KHZ_PER_GHZ

#define MILLIWATT_PER_WATT
#define MICROWATT_PER_MILLIWATT
#define MICROWATT_PER_WATT

#define BYTES_PER_KBIT
#define BYTES_PER_MBIT
#define BYTES_PER_GBIT

#define ABSOLUTE_ZERO_MILLICELSIUS

static inline long milli_kelvin_to_millicelsius(long t)
{}

static inline long millicelsius_to_milli_kelvin(long t)
{}

#define MILLIDEGREE_PER_DEGREE
#define MILLIDEGREE_PER_DECIDEGREE

static inline long kelvin_to_millicelsius(long t)
{}

static inline long millicelsius_to_kelvin(long t)
{}

static inline long deci_kelvin_to_celsius(long t)
{}

static inline long celsius_to_deci_kelvin(long t)
{}

/**
 * deci_kelvin_to_millicelsius_with_offset - convert Kelvin to Celsius
 * @t: temperature value in decidegrees Kelvin
 * @offset: difference between Kelvin and Celsius in millidegrees
 *
 * Return: temperature value in millidegrees Celsius
 */
static inline long deci_kelvin_to_millicelsius_with_offset(long t, long offset)
{}

static inline long deci_kelvin_to_millicelsius(long t)
{}

static inline long millicelsius_to_deci_kelvin(long t)
{}

static inline long kelvin_to_celsius(long t)
{}

static inline long celsius_to_kelvin(long t)
{}

#endif /* _LINUX_UNITS_H */