You've already forked hackerlibultra
mirror of
https://github.com/HackerN64/hackerlibultra.git
synced 2026-01-21 10:37:53 -08:00
* set build options * remove COMPARE and MDOERN_* switches * remove tools makefile * AR patching is gone too since we want a fullly decomped version * AR is modern * remove cwd changes * edit my own tool to fix compile errors * compile files generated with my own tool instead of the originals * inline modern_gcc makefile * port mips toolchain detection logic * add util.mk for find-command * remove forced AR order and strip/mdebug removal commands * add -mabi=32 to as flags * formatting changes * add clang format files * formatting changes * make libgultra CI work * install mips gcc too * add format check tools * Add formatting to CI * Add CI (#4) * make libgultra CI work * install mips gcc too * remove make setup --------- Co-authored-by: someone2639 <someone2639@gmail.com> * we don't use clang-tidy * use 120 width for formatting * a * address clang-tidy messing up * test * align consecutive macros and declarations * only align macros for now * SpaceAfterCStyleCast: false * format headers too * remove cast space switch because its false by default * pointers on left * AlignConsecutiveBitFields: true * install clang-format and clang-tidy on gh actions * and clang-tools * show diff in format check tool * make CI work --------- Co-authored-by: someone2639 <someone2639@gmail.com> 🙏
82 lines
2.8 KiB
C
82 lines
2.8 KiB
C
#ifndef _ULTRATYPES_H_
|
|
#define _ULTRATYPES_H_
|
|
|
|
/**************************************************************************
|
|
* *
|
|
* Copyright (C) 1995, Silicon Graphics, Inc. *
|
|
* *
|
|
* These coded instructions, statements, and computer programs contain *
|
|
* unpublished proprietary information of Silicon Graphics, Inc., and *
|
|
* are protected by Federal copyright law. They may not be disclosed *
|
|
* to third parties or copied or duplicated in any form, in whole or *
|
|
* in part, without the prior written consent of Silicon Graphics, Inc. *
|
|
* *
|
|
**************************************************************************/
|
|
|
|
/*************************************************************************
|
|
*
|
|
* File: ultratypes.h
|
|
*
|
|
* This file contains various types used in Ultra64 interfaces.
|
|
*
|
|
* $Revision: 1.6 $
|
|
* $Date: 1997/12/17 04:02:06 $
|
|
* $Source: /exdisk2/cvs/N64OS/Master/cvsmdev2/PR/include/ultratypes.h,v $
|
|
*
|
|
**************************************************************************/
|
|
|
|
/**********************************************************************
|
|
* General data types for R4300
|
|
*/
|
|
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
|
|
|
|
typedef unsigned char u8; /* unsigned 8-bit */
|
|
typedef unsigned short u16; /* unsigned 16-bit */
|
|
typedef unsigned long u32; /* unsigned 32-bit */
|
|
typedef unsigned long long u64; /* unsigned 64-bit */
|
|
|
|
typedef signed char s8; /* signed 8-bit */
|
|
typedef short s16; /* signed 16-bit */
|
|
typedef long s32; /* signed 32-bit */
|
|
typedef long long s64; /* signed 64-bit */
|
|
|
|
typedef volatile unsigned char vu8; /* unsigned 8-bit */
|
|
typedef volatile unsigned short vu16; /* unsigned 16-bit */
|
|
typedef volatile unsigned long vu32; /* unsigned 32-bit */
|
|
typedef volatile unsigned long long vu64; /* unsigned 64-bit */
|
|
|
|
typedef volatile signed char vs8; /* signed 8-bit */
|
|
typedef volatile short vs16; /* signed 16-bit */
|
|
typedef volatile long vs32; /* signed 32-bit */
|
|
typedef volatile long long vs64; /* signed 64-bit */
|
|
|
|
typedef float f32; /* single prec floating point */
|
|
typedef double f64; /* double prec floating point */
|
|
|
|
#if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEF)
|
|
#define _SIZE_T
|
|
#define _SIZE_T_DEF /* exeGCC size_t define label */
|
|
#if (_MIPS_SZLONG == 32)
|
|
typedef unsigned int size_t;
|
|
#endif
|
|
#if (_MIPS_SZLONG == 64)
|
|
typedef unsigned long size_t;
|
|
#endif
|
|
#endif
|
|
|
|
#endif /* _LANGUAGE_C */
|
|
|
|
#ifndef TRUE
|
|
#define TRUE 1
|
|
#endif
|
|
|
|
#ifndef FALSE
|
|
#define FALSE 0
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL 0
|
|
#endif
|
|
|
|
#endif /* _ULTRATYPES_H_ */
|