i128.h
1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**************************************************************************
* *
* Copyright (C) 1994, 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: i128.h
* Creator: hsa@sgi.com
* Create Date: Wed Mar 9 16:55:14 PST 1994
*
* Include file for 128-bit wide operations.
*
*/
#ifndef _i128_h_
#define _i128_h_ 1
#include <stdio.h>
#include "rsp.h"
extern void Set128(i128 *x, i128 *y);
extern void Set128bytes(i128 *x, u8 *y, int elem, int count);
extern void Set128By8(i128 *x, u8 y, int elem);
extern u8 Get128By8(i128 *x, int elem);
extern void Set128By16(i128 *x, u16 y, int elem);
extern u16 Get128By16(i128 *x, int elem);
extern void Set128By32(i128 *x, u32 y, int elem);
extern u32 Get128By32(i128 *x, int elem);
extern void Set128By64(i128 *x, u64 y, int elem);
extern u64 Get128By64(i128 *x, int elem);
extern void Print128(FILE *out, i128 x);
#endif