File: test-expr.c

package info (click to toggle)
faucc 20120707-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,424 kB
  • ctags: 2,909
  • sloc: ansic: 38,774; yacc: 1,600; xml: 519; lex: 378; sh: 178; makefile: 127
file content (21 lines) | stat: -rw-r--r-- 285 bytes parent folder | download
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)