File: test-expr.c

package info (click to toggle)
faucc 20160511-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,460 kB
  • ctags: 2,914
  • sloc: ansic: 38,788; yacc: 1,602; xml: 519; sh: 436; lex: 378; makefile: 125
file content (21 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * $Id: test-expr.c,v 1.2 2012/02/23 07:19:19 vrsieh Exp $
 */

#include <inttypes.h>

#define expr(t)	\
t \
expr_ ## t(t x, t y) \
{ \
	return x + y - x * y / x; \
}

expr(int8_t)
expr(uint8_t)
expr(int16_t)
expr(uint16_t)
expr(int32_t)
expr(uint32_t)
expr(int64_t)
expr(uint64_t)