Sha256: 1b6309452f2371c91db71d274726367a11faa73a046506e7c5f66064a14a65ec

Contents?: true

Size: 922 Bytes

Versions: 10

Compression:

Stored size: 922 Bytes

Contents

/*
 * Copyright 2017-2018 Uber Technologies, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** @file mathExtensions.h
 * @brief   Math functions that should've been in math.h but aren't
 */

#ifndef MATHEXTENSIONS_H
#define MATHEXTENSIONS_H

/**
 * MAX returns the maximum of two values.
 */
#define MAX(a, b) (((a) > (b)) ? (a) : (b))

// Internal functions
int _ipow(int base, int exp);

#endif

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
h3-3.7.2 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.7.1 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.6.2 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.6.1 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.6.0 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.5.1 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.5.0 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.4.4 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.4.0 ext/h3/src/src/h3lib/include/mathExtensions.h
h3-3.3.1 ext/h3/src/src/h3lib/include/mathExtensions.h