/*
 * Copyright (C) 2019 Intel Corporation.  All rights reserved.
 *
 * 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.
 */

#ifndef _BH_TYPES_H
#define _BH_TYPES_H

#include "bh_config.h"

typedef unsigned char uint8;
typedef char int8;
typedef unsigned short uint16;
typedef short int16;
typedef unsigned int uint32;
typedef int int32;
typedef float float32;
typedef double float64;

#define BYTES_OF_UINT8  1
#define BYTES_OF_UINT16 2
#define BYTES_OF_UINT32 4
#define BYTES_OF_UINT64 8

#define BYTES_OF_BOOLEAN 1
#define BYTES_OF_BYTE    1
#define BYTES_OF_CHAR    2
#define BYTES_OF_SHORT   2
#define BYTES_OF_INT     4
#define BYTES_OF_FLOAT   4
#define BYTES_OF_LONG    8
#define BYTES_OF_DOUBLE  8

#include "bh_platform.h"

#ifndef __cplusplus
#define true 1
#define false 0
#endif

#endif

